Package org.apache.activemq.broker.jmx
Class ConnectorView
java.lang.Object
org.apache.activemq.broker.jmx.ConnectorView
- All Implemented Interfaces:
ConnectorViewMBean,org.apache.activemq.Service
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of current connectionsvoiddisable statistics gatheringvoidenable statistics gatheringorg.apache.activemq.command.BrokerInfolongbooleanReturns true if link stealing is enabled on this ConnectorbooleanReturns true if rebalancing cluster clients is enabledbooleanbooleanReturns true if statistics is enabledbooleanReturns true if updating cluster client URL is enabledbooleanReturns true if updating cluster client URL when brokers are removed is enabledvoidResets the statisticsvoidstart()voidstop()
-
Constructor Details
-
ConnectorView
-
-
Method Details
-
start
- Specified by:
startin interfaceorg.apache.activemq.Service- Throws:
Exception
-
getBrokerName
-
stop
- Specified by:
stopin interfaceorg.apache.activemq.Service- Throws:
Exception
-
getBrokerURL
-
getBrokerInfo
public org.apache.activemq.command.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
- 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.
-
getMaxConnectionExceededCount
public long getMaxConnectionExceededCount()- Specified by:
getMaxConnectionExceededCountin interfaceConnectorViewMBean- Returns:
- The number of occurrences the max connection count has been exceed
-
isStarted
public boolean isStarted()- Specified by:
isStartedin interfaceConnectorViewMBean- Returns:
- true if transport connector is started
-