Package org.apache.activemq.broker.jmx
Class BrokerView
java.lang.Object
org.apache.activemq.broker.jmx.BrokerView
- All Implemented Interfaces:
BrokerViewMBean,org.apache.activemq.Service
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConnector(String discoveryAddress) addNetworkConnector(String discoveryAddress) voidAdds a Queue destination to the broker.voidAdds a Topic destination to the broker.browseQueue(String queueName) createDurableSubscriber(String clientId, String subscriberName, String topicName, String selector) Creates a new durable topic subscribervoiddestroyDurableSubscriber(String clientId, String subscriberName) Destroys a durable subscribervoidvoidvoidgc()The Broker will flush it's caches so that the garbage collector can reclaim more memory.longintlongintlongintlongintlonglongintlongintlonglonglonglongintintlonglonglonglongintintintintlonggetVMURL()booleanbooleanbooleanisSlave()booleanbooleanqueryQueues(String filter, int page, int pageSize) Queue Query API, take a look atDestinationsViewFilterfor more informationqueryTopics(String filter, int page, int pageSize) Topic Query API, take a look atDestinationsViewFilterfor more informationvoidReloads log4j.properties from the classpath.booleanremoveConnector(String connectorName) booleanremoveNetworkConnector(String connectorName) voidremoveQueue(String name) Removes a Queue destination from the broker.voidremoveTopic(String name) Removes a Topic destination from the broker.voidvoidrestart()Restart the broker and all it's components.voidsetBroker(ManagedRegionBroker broker) voidsetJMSJobScheduler(ObjectName name) voidsetJobSchedulerStoreLimit(long limit) voidsetMaxUncommittedCount(int maxUncommittedCount) voidsetMemoryLimit(long limit) voidsetStoreLimit(long limit) voidsetTempLimit(long limit) voidstart()voidstop()Stop the broker and all it's components.voidstopGracefully(String connectorName, String queueName, long timeout, long pollInterval) voidterminateJVM(int exitCode) Shuts down the JVM.
-
Constructor Details
-
BrokerView
- Throws:
Exception
-
-
Method Details
-
getBroker
-
setBroker
-
getBrokerId
- Specified by:
getBrokerIdin interfaceBrokerViewMBean- Returns:
- The unique id of the broker.
-
getBrokerName
- Specified by:
getBrokerNamein interfaceBrokerViewMBean- Returns:
- The name of the broker.
-
getBrokerVersion
- Specified by:
getBrokerVersionin interfaceBrokerViewMBean- Returns:
- The name of the broker.
-
getUptime
- Specified by:
getUptimein interfaceBrokerViewMBean- Returns:
- Uptime of the broker.
-
getUptimeMillis
public long getUptimeMillis()- Specified by:
getUptimeMillisin interfaceBrokerViewMBean- Returns:
- Uptime of the broker in milliseconds.
-
getCurrentConnectionsCount
public int getCurrentConnectionsCount()- Specified by:
getCurrentConnectionsCountin interfaceBrokerViewMBean- Returns:
- The current number of active connections on this Broker.
-
getTotalConnectionsCount
public long getTotalConnectionsCount()- Specified by:
getTotalConnectionsCountin interfaceBrokerViewMBean- Returns:
- The total number of connections serviced since this Broker was started.
-
gc
Description copied from interface:BrokerViewMBeanThe Broker will flush it's caches so that the garbage collector can reclaim more memory.- Specified by:
gcin interfaceBrokerViewMBean- Throws:
Exception
-
start
- Specified by:
startin interfaceorg.apache.activemq.Service- Throws:
Exception
-
stop
Description copied from interface:BrokerViewMBeanStop the broker and all it's components.- Specified by:
stopin interfaceBrokerViewMBean- Specified by:
stopin interfaceorg.apache.activemq.Service- Throws:
Exception
-
restart
Description copied from interface:BrokerViewMBeanRestart the broker and all it's components.- Specified by:
restartin interfaceBrokerViewMBean- Throws:
Exception
-
stopGracefully
public void stopGracefully(String connectorName, String queueName, long timeout, long pollInterval) throws Exception - Specified by:
stopGracefullyin interfaceBrokerViewMBean- Throws:
Exception
-
getTotalEnqueueCount
public long getTotalEnqueueCount()- Specified by:
getTotalEnqueueCountin interfaceBrokerViewMBean
-
getTotalDequeueCount
public long getTotalDequeueCount()- Specified by:
getTotalDequeueCountin interfaceBrokerViewMBean
-
getTotalConsumerCount
public long getTotalConsumerCount()- Specified by:
getTotalConsumerCountin interfaceBrokerViewMBean
-
getTotalProducerCount
public long getTotalProducerCount()- Specified by:
getTotalProducerCountin interfaceBrokerViewMBean
-
getTotalMessageCount
public long getTotalMessageCount()- Specified by:
getTotalMessageCountin interfaceBrokerViewMBean
-
getAverageMessageSize
public long getAverageMessageSize()- Specified by:
getAverageMessageSizein interfaceBrokerViewMBean- Returns:
- the average size of a message (bytes)
-
getMaxMessageSize
public long getMaxMessageSize()- Specified by:
getMaxMessageSizein interfaceBrokerViewMBean- Returns:
- the max size of a message (bytes)
-
getMinMessageSize
public long getMinMessageSize()- Specified by:
getMinMessageSizein interfaceBrokerViewMBean- Returns:
- the min size of a message (bytes)
-
getTotalMessagesCached
public long getTotalMessagesCached() -
getMemoryPercentUsage
public int getMemoryPercentUsage()- Specified by:
getMemoryPercentUsagein interfaceBrokerViewMBean
-
getMemoryLimit
public long getMemoryLimit()- Specified by:
getMemoryLimitin interfaceBrokerViewMBean
-
setMemoryLimit
public void setMemoryLimit(long limit) - Specified by:
setMemoryLimitin interfaceBrokerViewMBean
-
getStoreLimit
public long getStoreLimit()- Specified by:
getStoreLimitin interfaceBrokerViewMBean
-
getStorePercentUsage
public int getStorePercentUsage()- Specified by:
getStorePercentUsagein interfaceBrokerViewMBean
-
getTempLimit
public long getTempLimit()- Specified by:
getTempLimitin interfaceBrokerViewMBean
-
getTempPercentUsage
public int getTempPercentUsage()- Specified by:
getTempPercentUsagein interfaceBrokerViewMBean
-
getJobSchedulerStoreLimit
public long getJobSchedulerStoreLimit()- Specified by:
getJobSchedulerStoreLimitin interfaceBrokerViewMBean
-
getJobSchedulerStorePercentUsage
public int getJobSchedulerStorePercentUsage()- Specified by:
getJobSchedulerStorePercentUsagein interfaceBrokerViewMBean
-
setStoreLimit
public void setStoreLimit(long limit) - Specified by:
setStoreLimitin interfaceBrokerViewMBean
-
setTempLimit
public void setTempLimit(long limit) - Specified by:
setTempLimitin interfaceBrokerViewMBean
-
setJobSchedulerStoreLimit
public void setJobSchedulerStoreLimit(long limit) - Specified by:
setJobSchedulerStoreLimitin interfaceBrokerViewMBean
-
resetStatistics
public void resetStatistics()- Specified by:
resetStatisticsin interfaceBrokerViewMBean
-
enableStatistics
public void enableStatistics()- Specified by:
enableStatisticsin interfaceBrokerViewMBean
-
disableStatistics
public void disableStatistics()- Specified by:
disableStatisticsin interfaceBrokerViewMBean
-
isStatisticsEnabled
public boolean isStatisticsEnabled()- Specified by:
isStatisticsEnabledin interfaceBrokerViewMBean
-
isPersistent
public boolean isPersistent()- Specified by:
isPersistentin interfaceBrokerViewMBean
-
terminateJVM
public void terminateJVM(int exitCode) Description copied from interface:BrokerViewMBeanShuts down the JVM.- Specified by:
terminateJVMin interfaceBrokerViewMBean- Parameters:
exitCode- the exit code that will be reported by the JVM process when it exits.
-
getTopics
- Specified by:
getTopicsin interfaceBrokerViewMBean
-
getTotalTopicsCount
public int getTotalTopicsCount()- Specified by:
getTotalTopicsCountin interfaceBrokerViewMBean
-
getTotalManagedTopicsCount
public int getTotalManagedTopicsCount()- Specified by:
getTotalManagedTopicsCountin interfaceBrokerViewMBean
-
getTotalTemporaryTopicsCount
public int getTotalTemporaryTopicsCount()- Specified by:
getTotalTemporaryTopicsCountin interfaceBrokerViewMBean
-
getQueues
- Specified by:
getQueuesin interfaceBrokerViewMBean
-
getTotalQueuesCount
public int getTotalQueuesCount()- Specified by:
getTotalQueuesCountin interfaceBrokerViewMBean
-
getTotalManagedQueuesCount
public int getTotalManagedQueuesCount()- Specified by:
getTotalManagedQueuesCountin interfaceBrokerViewMBean
-
getTotalTemporaryQueuesCount
public int getTotalTemporaryQueuesCount()- Specified by:
getTotalTemporaryQueuesCountin interfaceBrokerViewMBean
-
queryQueues
Description copied from interface:BrokerViewMBeanQueue Query API, take a look atDestinationsViewFilterfor more information- Specified by:
queryQueuesin interfaceBrokerViewMBean- Throws:
IOException
-
queryTopics
Description copied from interface:BrokerViewMBeanTopic Query API, take a look atDestinationsViewFilterfor more information- Specified by:
queryTopicsin interfaceBrokerViewMBean- Throws:
IOException
-
browseQueue
public CompositeData[] browseQueue(String queueName) throws OpenDataException, MalformedObjectNameException - Specified by:
browseQueuein interfaceBrokerViewMBean- Throws:
OpenDataExceptionMalformedObjectNameException
-
getTemporaryTopics
- Specified by:
getTemporaryTopicsin interfaceBrokerViewMBean
-
getTemporaryQueues
- Specified by:
getTemporaryQueuesin interfaceBrokerViewMBean
-
getTopicSubscribers
- Specified by:
getTopicSubscribersin interfaceBrokerViewMBean
-
getDurableTopicSubscribers
- Specified by:
getDurableTopicSubscribersin interfaceBrokerViewMBean
-
getQueueSubscribers
- Specified by:
getQueueSubscribersin interfaceBrokerViewMBean
-
getTemporaryTopicSubscribers
- Specified by:
getTemporaryTopicSubscribersin interfaceBrokerViewMBean
-
getTemporaryQueueSubscribers
- Specified by:
getTemporaryQueueSubscribersin interfaceBrokerViewMBean
-
getInactiveDurableTopicSubscribers
- Specified by:
getInactiveDurableTopicSubscribersin interfaceBrokerViewMBean
-
getTopicProducers
- Specified by:
getTopicProducersin interfaceBrokerViewMBean
-
getQueueProducers
- Specified by:
getQueueProducersin interfaceBrokerViewMBean
-
getTemporaryTopicProducers
- Specified by:
getTemporaryTopicProducersin interfaceBrokerViewMBean
-
getTemporaryQueueProducers
- Specified by:
getTemporaryQueueProducersin interfaceBrokerViewMBean
-
getDynamicDestinationProducers
- Specified by:
getDynamicDestinationProducersin interfaceBrokerViewMBean
-
addConnector
- Specified by:
addConnectorin interfaceBrokerViewMBean- Throws:
Exception
-
addNetworkConnector
- Specified by:
addNetworkConnectorin interfaceBrokerViewMBean- Throws:
Exception
-
removeConnector
- Specified by:
removeConnectorin interfaceBrokerViewMBean- Throws:
Exception
-
removeNetworkConnector
- Specified by:
removeNetworkConnectorin interfaceBrokerViewMBean- Throws:
Exception
-
addTopic
Description copied from interface:BrokerViewMBeanAdds a Topic destination to the broker.- Specified by:
addTopicin interfaceBrokerViewMBean- Parameters:
name- The name of the Topic- Throws:
Exception
-
addQueue
Description copied from interface:BrokerViewMBeanAdds a Queue destination to the broker.- Specified by:
addQueuein interfaceBrokerViewMBean- Parameters:
name- The name of the Queue- Throws:
Exception
-
removeTopic
Description copied from interface:BrokerViewMBeanRemoves a Topic destination from the broker.- Specified by:
removeTopicin interfaceBrokerViewMBean- Parameters:
name- The name of the Topic- Throws:
Exception
-
removeQueue
Description copied from interface:BrokerViewMBeanRemoves a Queue destination from the broker.- Specified by:
removeQueuein interfaceBrokerViewMBean- Parameters:
name- The name of the Queue- Throws:
Exception
-
createDurableSubscriber
public ObjectName createDurableSubscriber(String clientId, String subscriberName, String topicName, String selector) throws Exception Description copied from interface:BrokerViewMBeanCreates a new durable topic subscriber- Specified by:
createDurableSubscriberin interfaceBrokerViewMBean- Parameters:
clientId- the JMS client IDsubscriberName- the durable subscriber nametopicName- the name of the topic to subscribe toselector- a selector or null- Returns:
- the object name of the MBean registered in JMX
- Throws:
Exception
-
destroyDurableSubscriber
Description copied from interface:BrokerViewMBeanDestroys a durable subscriber- Specified by:
destroyDurableSubscriberin interfaceBrokerViewMBean- Parameters:
clientId- the JMS client IDsubscriberName- the durable subscriber name- Throws:
Exception
-
reloadLog4jProperties
Description copied from interface:BrokerViewMBeanReloads log4j.properties from the classpath. This methods calls org.apache.activemq.transport.TransportLoggerControl.reloadLog4jProperties- Specified by:
reloadLog4jPropertiesin interfaceBrokerViewMBean- Throws:
Throwable
-
getTransportConnectors
- Specified by:
getTransportConnectorsin interfaceBrokerViewMBean
-
getTransportConnectorByType
- Specified by:
getTransportConnectorByTypein interfaceBrokerViewMBean
-
getVMURL
- Specified by:
getVMURLin interfaceBrokerViewMBean
-
getDataDirectory
- Specified by:
getDataDirectoryin interfaceBrokerViewMBean
-
getJMSJobScheduler
- Specified by:
getJMSJobSchedulerin interfaceBrokerViewMBean
-
setJMSJobScheduler
-
isSlave
public boolean isSlave()- Specified by:
isSlavein interfaceBrokerViewMBean
-
isDedicatedTaskRunner
public boolean isDedicatedTaskRunner()- Specified by:
isDedicatedTaskRunnerin interfaceBrokerViewMBean
-
isVirtualThreadTaskRunner
public boolean isVirtualThreadTaskRunner()- Specified by:
isVirtualThreadTaskRunnerin interfaceBrokerViewMBean
-
getMaxUncommittedCount
public int getMaxUncommittedCount()- Specified by:
getMaxUncommittedCountin interfaceBrokerViewMBean
-
setMaxUncommittedCount
public void setMaxUncommittedCount(int maxUncommittedCount) - Specified by:
setMaxUncommittedCountin interfaceBrokerViewMBean
-
getTotalMaxUncommittedExceededCount
public long getTotalMaxUncommittedExceededCount()- Specified by:
getTotalMaxUncommittedExceededCountin interfaceBrokerViewMBean
-