Package org.apache.activemq.broker.jmx
Interface BrokerViewMBean
- All Superinterfaces:
org.apache.activemq.Service
- All Known Implementing Classes:
BrokerView
public interface BrokerViewMBean
extends org.apache.activemq.Service
-
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.longintlongintlongintlongintlonglongintlongintlonglonglonglongintintlonglonglongintintintintlonggetVMURL()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.voidsetJobSchedulerStoreLimit(long limit) voidsetMaxUncommittedCount(int maxUncommittedCount) voidsetMemoryLimit(long limit) voidsetStoreLimit(long limit) voidsetTempLimit(long limit) 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.Methods inherited from interface org.apache.activemq.Service
start
-
Method Details
-
getBrokerId
String getBrokerId()- Returns:
- The unique id of the broker.
-
getBrokerName
String getBrokerName()- Returns:
- The name of the broker.
-
getBrokerVersion
String getBrokerVersion()- Returns:
- The name of the broker.
-
getUptime
String getUptime()- Returns:
- Uptime of the broker.
-
getUptimeMillis
long getUptimeMillis()- Returns:
- Uptime of the broker in milliseconds.
-
getCurrentConnectionsCount
int getCurrentConnectionsCount()- Returns:
- The current number of active connections on this Broker.
-
getTotalConnectionsCount
long getTotalConnectionsCount()- Returns:
- The total number of connections serviced since this Broker was started.
-
gc
The Broker will flush it's caches so that the garbage collector can reclaim more memory.- Throws:
Exception
-
resetStatistics
void resetStatistics() -
enableStatistics
void enableStatistics() -
disableStatistics
void disableStatistics() -
isStatisticsEnabled
boolean isStatisticsEnabled() -
getTotalEnqueueCount
long getTotalEnqueueCount() -
getTotalDequeueCount
long getTotalDequeueCount() -
getTotalConsumerCount
long getTotalConsumerCount() -
getTotalProducerCount
long getTotalProducerCount() -
getTotalMessageCount
long getTotalMessageCount() -
getAverageMessageSize
long getAverageMessageSize() -
getMaxMessageSize
long getMaxMessageSize() -
getMinMessageSize
long getMinMessageSize() -
getMemoryPercentUsage
int getMemoryPercentUsage() -
getMemoryLimit
long getMemoryLimit() -
setMemoryLimit
void setMemoryLimit(long limit) -
getStorePercentUsage
int getStorePercentUsage() -
getStoreLimit
long getStoreLimit() -
setStoreLimit
void setStoreLimit(long limit) -
getTempPercentUsage
int getTempPercentUsage() -
getTempLimit
long getTempLimit() -
setTempLimit
void setTempLimit(long limit) -
getJobSchedulerStorePercentUsage
int getJobSchedulerStorePercentUsage() -
getJobSchedulerStoreLimit
long getJobSchedulerStoreLimit() -
setJobSchedulerStoreLimit
void setJobSchedulerStoreLimit(long limit) -
isPersistent
boolean isPersistent() -
isSlave
boolean isSlave() -
terminateJVM
void terminateJVM(int exitCode) Shuts down the JVM.- Parameters:
exitCode- the exit code that will be reported by the JVM process when it exits.
-
stop
Stop the broker and all it's components.- Specified by:
stopin interfaceorg.apache.activemq.Service- Throws:
Exception
-
restart
Restart the broker and all it's components.- Throws:
Exception
-
stopGracefully
void stopGracefully(String connectorName, String queueName, long timeout, long pollInterval) throws Exception - Throws:
Exception
-
getTopics
ObjectName[] getTopics() -
getTotalTopicsCount
int getTotalTopicsCount() -
getTotalManagedTopicsCount
int getTotalManagedTopicsCount() -
getTotalTemporaryTopicsCount
int getTotalTemporaryTopicsCount() -
getQueues
ObjectName[] getQueues() -
getTotalQueuesCount
int getTotalQueuesCount() -
getTotalManagedQueuesCount
int getTotalManagedQueuesCount() -
getTotalTemporaryQueuesCount
int getTotalTemporaryQueuesCount() -
queryQueues
Queue Query API, take a look atDestinationsViewFilterfor more information- Throws:
IOException
-
queryTopics
Topic Query API, take a look atDestinationsViewFilterfor more information- Throws:
IOException
-
browseQueue
CompositeData[] browseQueue(String queueName) throws OpenDataException, MalformedObjectNameException -
getTemporaryTopics
ObjectName[] getTemporaryTopics() -
getTemporaryQueues
ObjectName[] getTemporaryQueues() -
getTopicSubscribers
ObjectName[] getTopicSubscribers() -
getDurableTopicSubscribers
ObjectName[] getDurableTopicSubscribers() -
getInactiveDurableTopicSubscribers
ObjectName[] getInactiveDurableTopicSubscribers() -
getQueueSubscribers
ObjectName[] getQueueSubscribers() -
getTemporaryTopicSubscribers
ObjectName[] getTemporaryTopicSubscribers() -
getTemporaryQueueSubscribers
ObjectName[] getTemporaryQueueSubscribers() -
getTopicProducers
ObjectName[] getTopicProducers() -
getQueueProducers
ObjectName[] getQueueProducers() -
getTemporaryTopicProducers
ObjectName[] getTemporaryTopicProducers() -
getTemporaryQueueProducers
ObjectName[] getTemporaryQueueProducers() -
getDynamicDestinationProducers
ObjectName[] getDynamicDestinationProducers() -
addConnector
- Throws:
Exception
-
addNetworkConnector
- Throws:
Exception
-
removeConnector
- Throws:
Exception
-
removeNetworkConnector
- Throws:
Exception
-
addTopic
Adds a Topic destination to the broker.- Parameters:
name- The name of the Topic- Throws:
Exception
-
addQueue
Adds a Queue destination to the broker.- Parameters:
name- The name of the Queue- Throws:
Exception
-
removeTopic
Removes a Topic destination from the broker.- Parameters:
name- The name of the Topic- Throws:
Exception
-
removeQueue
Removes a Queue destination from the broker.- Parameters:
name- The name of the Queue- Throws:
Exception
-
createDurableSubscriber
ObjectName createDurableSubscriber(String clientId, String subscriberName, String topicName, String selector) throws Exception Creates a new durable topic subscriber- 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
Destroys a durable subscriber- Parameters:
clientId- the JMS client IDsubscriberName- the durable subscriber name- Throws:
Exception
-
reloadLog4jProperties
Reloads log4j.properties from the classpath. This methods calls org.apache.activemq.transport.TransportLoggerControl.reloadLog4jProperties- Throws:
Throwable
-
getVMURL
String getVMURL() -
getTransportConnectors
-
getTransportConnectorByType
-
getDataDirectory
String getDataDirectory() -
getJMSJobScheduler
ObjectName getJMSJobScheduler() -
getMaxUncommittedCount
int getMaxUncommittedCount() -
setMaxUncommittedCount
void setMaxUncommittedCount(int maxUncommittedCount) -
getTotalMaxUncommittedExceededCount
long getTotalMaxUncommittedExceededCount() -
isDedicatedTaskRunner
boolean isDedicatedTaskRunner() -
isVirtualThreadTaskRunner
boolean isVirtualThreadTaskRunner()
-