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 intconnectionCount()Returns the number of current connectionsvoiddisableStatistics()disable statistics gatheringvoidenableStatistics()enable statistics gatheringBrokerInfogetBrokerInfo()StringgetBrokerName()StringgetBrokerURL()StringgetUpdateClusterFilter()booleanisAllowLinkStealingEnabled()Returns true if link stealing is enabled on this ConnectorbooleanisRebalanceClusterClients()Returns true if rebalancing cluster clients is enabledbooleanisStatisticsEnabled()Returns true if statistics is enabledbooleanisUpdateClusterClients()Returns true if updating cluster client URL is enabledbooleanisUpdateClusterClientsOnRemove()Returns true if updating cluster client URL when brokers are removed is enabledvoidresetStatistics()Resets the statisticsvoidstart()voidstop()
-
-
-
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:
resetStatisticsin interfaceConnectorViewMBean
-
enableStatistics
public void enableStatistics()
enable statistics gathering- Specified by:
enableStatisticsin interfaceConnectorViewMBean
-
disableStatistics
public void disableStatistics()
disable statistics gathering- Specified by:
disableStatisticsin interfaceConnectorViewMBean
-
isStatisticsEnabled
public boolean isStatisticsEnabled()
Returns true if statistics is enabled- Specified by:
isStatisticsEnabledin interfaceConnectorViewMBean- Returns:
- true if statistics is enabled
-
connectionCount
public int connectionCount()
Returns the number of current connections- Specified by:
connectionCountin interfaceConnectorViewMBean
-
isUpdateClusterClients
public boolean isUpdateClusterClients()
Returns true if updating cluster client URL is enabled- Specified by:
isUpdateClusterClientsin interfaceConnectorViewMBean- Returns:
- true if update cluster client URL is enabled
-
isRebalanceClusterClients
public boolean isRebalanceClusterClients()
Returns true if rebalancing cluster clients is enabled- Specified by:
isRebalanceClusterClientsin 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:
isUpdateClusterClientsOnRemovein interfaceConnectorViewMBean- Returns:
- true if update cluster client URL when brokers are removed is enabled
-
getUpdateClusterFilter
public String getUpdateClusterFilter()
- Specified by:
getUpdateClusterFilterin 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:ConnectorViewMBeanReturns true if link stealing is enabled on this Connector- Specified by:
isAllowLinkStealingEnabledin interfaceConnectorViewMBean- Returns:
- true if link stealing is enabled.
-
-