Package org.apache.activemq.broker.view
Class MessageBrokerView
java.lang.Object
org.apache.activemq.broker.view.MessageBrokerView
A view into the running Broker
-
Constructor Summary
ConstructorsConstructorDescriptionMessageBrokerView(String brokerName) Create a view of a running BrokerMessageBrokerView(BrokerService brokerService) Create a view of a running Broker -
Method Summary
Modifier and TypeMethodDescriptionSet<org.apache.activemq.command.ActiveMQDestination>Retrieve a set of all Destinations be used by the BrokergetDestinationView(String destinationName) It will be assumed the destinationName is prepended with topic:// or queue:// - but will default to a QueuegetDestinationView(String destinationName, byte type) Get the BrokerDestinationView associated with destinationgetDestinationView(org.apache.activemq.command.ActiveMQDestination activeMQDestination) Get the BrokerDestinationView associated with destinationintintgetQueueDestinationView(String destinationName) Get the BrokerDestinationView associated with the queueSet<org.apache.activemq.command.ActiveMQQueue>Retrieve a set of all Queues be used by the BrokerintintSet<org.apache.activemq.command.ActiveMQTempQueue>Retrieve a set of all TemporaryQueues be used by the BrokerSet<org.apache.activemq.command.ActiveMQTempTopic>Retrieve a set of all TemporaryTopics be used by the BrokergetTopicDestinationView(String destinationName) Get the BrokerDestinationView associated with the topicSet<org.apache.activemq.command.ActiveMQTopic>Retrieve a set of all Topics be used by the Brokerboolean
-
Constructor Details
-
MessageBrokerView
Create a view of a running Broker- Parameters:
brokerService-
-
MessageBrokerView
Create a view of a running Broker- Parameters:
brokerName-
-
-
Method Details
-
getBrokerName
- Returns:
- the brokerName
-
getBrokerId
- Returns:
- the unique id of the Broker
-
getMemoryPercentUsage
public int getMemoryPercentUsage()- Returns:
- the memory used by the Broker as a percentage
-
getStorePercentUsage
public int getStorePercentUsage()- Returns:
- the space used by the Message Store as a percentage
-
getTempPercentUsage
public int getTempPercentUsage()- Returns:
- the space used by the store for temporary messages as a percentage
-
getJobSchedulerStorePercentUsage
public int getJobSchedulerStorePercentUsage()- Returns:
- the space used by the store of scheduled messages
-
isPersistent
public boolean isPersistent()- Returns:
- true if the Broker isn't using an in-memory store only for messages
-
getBrokerService
-
getDestinations
Retrieve a set of all Destinations be used by the Broker- Returns:
- all Destinations
-
getTopics
Retrieve a set of all Topics be used by the Broker- Returns:
- all Topics
-
getQueues
Retrieve a set of all Queues be used by the Broker- Returns:
- all Queues
-
getTempTopics
Retrieve a set of all TemporaryTopics be used by the Broker- Returns:
- all TemporaryTopics
-
getTempQueues
Retrieve a set of all TemporaryQueues be used by the Broker- Returns:
- all TemporaryQueues
-
getDestinationView
It will be assumed the destinationName is prepended with topic:// or queue:// - but will default to a Queue- Parameters:
destinationName-- Returns:
- the BrokerDestinationView associated with the destinationName
- Throws:
Exception
-
getTopicDestinationView
Get the BrokerDestinationView associated with the topic- Parameters:
destinationName-- Returns:
- BrokerDestinationView
- Throws:
Exception
-
getQueueDestinationView
Get the BrokerDestinationView associated with the queue- Parameters:
destinationName-- Returns:
- BrokerDestinationView
- Throws:
Exception
-
getDestinationView
Get the BrokerDestinationView associated with destination- Parameters:
destinationName-type- expects either ActiveMQDestination.QUEUE_TYPE, ActiveMQDestination.TOPIC_TYPE etc- Returns:
- BrokerDestinationView
- Throws:
Exception
-
getDestinationView
public BrokerDestinationView getDestinationView(org.apache.activemq.command.ActiveMQDestination activeMQDestination) throws Exception Get the BrokerDestinationView associated with destination- Parameters:
activeMQDestination-- Returns:
- BrokerDestinationView
- Throws:
Exception
-