Package org.apache.activemq.broker.jmx
Class ConnectorView
- java.lang.Object
-
- org.apache.activemq.broker.jmx.ConnectorView
-
- All Implemented Interfaces:
ConnectorViewMBean
,Service
public class ConnectorView extends Object implements ConnectorViewMBean
-
-
Constructor Summary
Constructors Constructor Description ConnectorView(Connector connector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
connectionCount()
Returns the number of current connectionsvoid
disableStatistics()
disable statistics gatheringvoid
enableStatistics()
enable statistics gatheringBrokerInfo
getBrokerInfo()
String
getBrokerName()
String
getBrokerURL()
String
getUpdateClusterFilter()
boolean
isAllowLinkStealingEnabled()
Returns true if link stealing is enabled on this Connectorboolean
isRebalanceClusterClients()
Returns true if rebalancing cluster clients is enabledboolean
isStatisticsEnabled()
Returns true if statistics is enabledboolean
isUpdateClusterClients()
Returns true if updating cluster client URL is enabledboolean
isUpdateClusterClientsOnRemove()
Returns true if updating cluster client URL when brokers are removed is enabledvoid
resetStatistics()
Resets the statisticsvoid
start()
void
stop()
-
-
-
Constructor Detail
-
ConnectorView
public ConnectorView(Connector connector)
-
-
Method Detail
-
start
public void start() throws Exception
-
getBrokerName
public String getBrokerName()
-
getBrokerURL
public String getBrokerURL()
-
getBrokerInfo
public BrokerInfo getBrokerInfo()
-
resetStatistics
public void resetStatistics()
Resets the statistics- Specified by:
resetStatistics
in interfaceConnectorViewMBean
-
enableStatistics
public void enableStatistics()
enable statistics gathering- Specified by:
enableStatistics
in interfaceConnectorViewMBean
-
disableStatistics
public void disableStatistics()
disable statistics gathering- Specified by:
disableStatistics
in interfaceConnectorViewMBean
-
isStatisticsEnabled
public boolean isStatisticsEnabled()
Returns true if statistics is enabled- Specified by:
isStatisticsEnabled
in interfaceConnectorViewMBean
- Returns:
- true if statistics is enabled
-
connectionCount
public int connectionCount()
Returns the number of current connections- Specified by:
connectionCount
in interfaceConnectorViewMBean
-
isUpdateClusterClients
public boolean isUpdateClusterClients()
Returns true if updating cluster client URL is enabled- Specified by:
isUpdateClusterClients
in interfaceConnectorViewMBean
- Returns:
- true if update cluster client URL is enabled
-
isRebalanceClusterClients
public boolean isRebalanceClusterClients()
Returns true if rebalancing cluster clients is enabled- Specified by:
isRebalanceClusterClients
in interfaceConnectorViewMBean
- Returns:
- true if rebalance cluster clients is enabled
-
isUpdateClusterClientsOnRemove
public boolean isUpdateClusterClientsOnRemove()
Returns true if updating cluster client URL when brokers are removed is enabled- Specified by:
isUpdateClusterClientsOnRemove
in interfaceConnectorViewMBean
- Returns:
- true if update cluster client URL when brokers are removed is enabled
-
getUpdateClusterFilter
public String getUpdateClusterFilter()
- Specified by:
getUpdateClusterFilter
in interfaceConnectorViewMBean
- Returns:
- The comma separated string of regex patterns to match broker names for cluster client updates
-
isAllowLinkStealingEnabled
public boolean isAllowLinkStealingEnabled()
Description copied from interface:ConnectorViewMBean
Returns true if link stealing is enabled on this Connector- Specified by:
isAllowLinkStealingEnabled
in interfaceConnectorViewMBean
- Returns:
- true if link stealing is enabled.
-
-