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.BrokerInfointReturns the number of current connectionslongintReturns the number of maximum consumers allowed per-connectionintReturns the number of maximum producers allowed per-connectiongetName()getURI()booleanReturns true if link stealing is enabled on this ConnectorbooleanbooleanbooleanReturns true the status monitor is enabledbooleanReturns 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
-
getBrokerName
- Specified by:
getBrokerNamein interfaceConnectorViewMBean
-
stop
-
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
-
isAutoStart
public boolean isAutoStart()- Specified by:
isAutoStartin interfaceConnectorViewMBean- Returns:
- true if transport connector auto start is enabled
-
isStarted
public boolean isStarted()- Specified by:
isStartedin interfaceConnectorViewMBean- Returns:
- true if transport connector is started
-
getConnectURI
- Specified by:
getConnectURIin interfaceConnectorViewMBean- Returns:
- The direct connect uri
-
getPublishableConnectURI
- Specified by:
getPublishableConnectURIin interfaceConnectorViewMBean- Returns:
- The publishable connect uri
-
getBrokerInfoString
- Specified by:
getBrokerInfoStringin interfaceConnectorViewMBean
-
isEnableStatusMonitor
public boolean isEnableStatusMonitor()Returns true the status monitor is enabled- Specified by:
isEnableStatusMonitorin interfaceConnectorViewMBean- Returns:
- true if status monitor is enabled
-
getURI
- Specified by:
getURIin interfaceConnectorViewMBean
-
getDiscoveryURI
- Specified by:
getDiscoveryURIin interfaceConnectorViewMBean
-
isAuditNetworkProducers
public boolean isAuditNetworkProducers()- Specified by:
isAuditNetworkProducersin interfaceConnectorViewMBean
-
getMaximumProducersAllowedPerConnection
public int getMaximumProducersAllowedPerConnection()Returns the number of maximum producers allowed per-connection- Specified by:
getMaximumProducersAllowedPerConnectionin interfaceConnectorViewMBean
-
getMaximumConsumersAllowedPerConnection
public int getMaximumConsumersAllowedPerConnection()Returns the number of maximum consumers allowed per-connection- Specified by:
getMaximumConsumersAllowedPerConnectionin interfaceConnectorViewMBean
-
getConnectionCount
public int getConnectionCount()Returns the number of current connections- Specified by:
getConnectionCountin interfaceConnectorViewMBean
-
getName
- Specified by:
getNamein interfaceConnectorViewMBean
-