Package org.apache.activemq.web
Interface BrokerFacade
-
- All Known Implementing Classes:
BrokerFacadeSupport,LocalBrokerFacade,RemoteJMXBrokerFacade,SingletonBrokerFacade
public interface BrokerFacadeA facade for either a local in JVM broker or a remote broker over JMX
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.activemq.broker.jmx.BrokerViewMBeangetBrokerAdmin()Admin view of the broker.StringgetBrokerName()The name of the active broker (f.e.org.apache.activemq.broker.jmx.ConnectionViewMBeangetConnection(String connectionName)A specific connection to the broker.Collection<org.apache.activemq.broker.jmx.ConnectionViewMBean>getConnections()All connections to all transport connectors of the broker.Collection<String>getConnections(String connectorName)The names of all connections to a specific transport connectors of the broker.org.apache.activemq.broker.jmx.ConnectorViewMBeangetConnector(String name)A transport connectors.Collection<String>getConnectors()The names of all transport connectors of the broker (f.e. openwire, ssl)Collection<org.apache.activemq.broker.jmx.SubscriptionViewMBean>getConsumersOnConnection(String connectionName)Returns all consumers of a connection.Collection<org.apache.activemq.broker.jmx.DurableSubscriptionViewMBean>getDurableTopicSubscribers()Active durable subscribers to topics of the broker.Collection<org.apache.activemq.broker.jmx.DurableSubscriptionViewMBean>getInactiveDurableTopicSubscribers()Inactive durable subscribers to topics of the broker.org.apache.activemq.broker.jmx.JobSchedulerViewMBeangetJobScheduler()Get the JobScheduler MBeanCollection<org.apache.activemq.broker.jmx.NetworkBridgeViewMBean>getNetworkBridges()The brokers network bridges.Collection<org.apache.activemq.broker.jmx.NetworkConnectorViewMBean>getNetworkConnectors()The brokers network connectors.Collection<org.apache.activemq.broker.jmx.SubscriptionViewMBean>getNonDurableTopicSubscribers()All active non-durable subscribers to a topic.org.apache.activemq.broker.jmx.QueueViewMBeangetQueue(String name)Get the view of the queue with the specified name.Collection<org.apache.activemq.broker.jmx.SubscriptionViewMBean>getQueueConsumers(String queueName)All active consumers of a queue.Collection<org.apache.activemq.broker.jmx.ProducerViewMBean>getQueueProducers(String queueName)All active producers to a queue.Collection<org.apache.activemq.broker.jmx.QueueViewMBean>getQueues()All queues known to the broker.Collection<JobFacade>getScheduledJobs()Get the JobScheduler MBeanorg.apache.activemq.broker.jmx.TopicViewMBeangetTopic(String name)Get the view of the topic with the specified name.Collection<org.apache.activemq.broker.jmx.ProducerViewMBean>getTopicProducers(String queueName)All active producers to a topic.Collection<org.apache.activemq.broker.jmx.TopicViewMBean>getTopics()All topics known to the broker.Collection<org.apache.activemq.broker.jmx.SubscriptionViewMBean>getTopicSubscribers(String topicName)All active non-durable subscribers to a topic.booleanisJobSchedulerStarted()voidpurgeQueue(org.apache.activemq.command.ActiveMQDestination destination)Purges the given destination
-
-
-
Method Detail
-
getBrokerName
String getBrokerName() throws Exception
The name of the active broker (f.e. 'localhost' or 'my broker').- Returns:
- not
null - Throws:
Exception
-
getBrokerAdmin
org.apache.activemq.broker.jmx.BrokerViewMBean getBrokerAdmin() throws ExceptionAdmin view of the broker.- Returns:
- not
null - Throws:
Exception
-
getQueues
Collection<org.apache.activemq.broker.jmx.QueueViewMBean> getQueues() throws Exception
All queues known to the broker.- Returns:
- not
null - Throws:
Exception
-
getTopics
Collection<org.apache.activemq.broker.jmx.TopicViewMBean> getTopics() throws Exception
All topics known to the broker.- Returns:
- not
null - Throws:
Exception
-
getQueueConsumers
Collection<org.apache.activemq.broker.jmx.SubscriptionViewMBean> getQueueConsumers(String queueName) throws Exception
All active consumers of a queue.- Parameters:
queueName- the name of the queue, notnull- Returns:
- not
null - Throws:
Exception
-
getQueueProducers
Collection<org.apache.activemq.broker.jmx.ProducerViewMBean> getQueueProducers(String queueName) throws Exception
All active producers to a queue.- Parameters:
queueName- the name of the queue, notnull- Returns:
- not
null - Throws:
Exception
-
getTopicProducers
Collection<org.apache.activemq.broker.jmx.ProducerViewMBean> getTopicProducers(String queueName) throws Exception
All active producers to a topic.- Parameters:
queueName- the name of the topic, notnull- Returns:
- not
null - Throws:
Exception
-
getTopicSubscribers
Collection<org.apache.activemq.broker.jmx.SubscriptionViewMBean> getTopicSubscribers(String topicName) throws Exception
All active non-durable subscribers to a topic.- Parameters:
topicName- the name of the topic, notnull- Returns:
- not
null - Throws:
Exception
-
getNonDurableTopicSubscribers
Collection<org.apache.activemq.broker.jmx.SubscriptionViewMBean> getNonDurableTopicSubscribers() throws Exception
All active non-durable subscribers to a topic.- Returns:
- not
null - Throws:
Exception
-
getDurableTopicSubscribers
Collection<org.apache.activemq.broker.jmx.DurableSubscriptionViewMBean> getDurableTopicSubscribers() throws Exception
Active durable subscribers to topics of the broker.- Returns:
- not
null - Throws:
Exception
-
getInactiveDurableTopicSubscribers
Collection<org.apache.activemq.broker.jmx.DurableSubscriptionViewMBean> getInactiveDurableTopicSubscribers() throws Exception
Inactive durable subscribers to topics of the broker.- Returns:
- not
null - Throws:
Exception
-
getConnectors
Collection<String> getConnectors() throws Exception
The names of all transport connectors of the broker (f.e. openwire, ssl)- Returns:
- not
null - Throws:
Exception
-
getConnector
org.apache.activemq.broker.jmx.ConnectorViewMBean getConnector(String name) throws Exception
A transport connectors.- Parameters:
name- name of the connector (f.e. openwire)- Returns:
nullif not found- Throws:
Exception
-
getConnections
Collection<org.apache.activemq.broker.jmx.ConnectionViewMBean> getConnections() throws Exception
All connections to all transport connectors of the broker.- Returns:
- not
null - Throws:
Exception
-
getConnections
Collection<String> getConnections(String connectorName) throws Exception
The names of all connections to a specific transport connectors of the broker.- Parameters:
connectorName- notnull- Returns:
- not
null - Throws:
Exception- See Also:
getConnection(String)
-
getConnection
org.apache.activemq.broker.jmx.ConnectionViewMBean getConnection(String connectionName) throws Exception
A specific connection to the broker.- Parameters:
connectionName- the name of the connection, notnull- Returns:
- not
null - Throws:
Exception
-
getConsumersOnConnection
Collection<org.apache.activemq.broker.jmx.SubscriptionViewMBean> getConsumersOnConnection(String connectionName) throws Exception
Returns all consumers of a connection.- Parameters:
connectionName- the name of the connection, notnull- Returns:
- not
null - Throws:
Exception
-
getNetworkConnectors
Collection<org.apache.activemq.broker.jmx.NetworkConnectorViewMBean> getNetworkConnectors() throws Exception
The brokers network connectors.- Returns:
- not
null - Throws:
Exception
-
getNetworkBridges
Collection<org.apache.activemq.broker.jmx.NetworkBridgeViewMBean> getNetworkBridges() throws Exception
The brokers network bridges.- Returns:
- not
null - Throws:
Exception
-
purgeQueue
void purgeQueue(org.apache.activemq.command.ActiveMQDestination destination) throws ExceptionPurges the given destination- Parameters:
destination-- Throws:
Exception
-
getQueue
org.apache.activemq.broker.jmx.QueueViewMBean getQueue(String name) throws Exception
Get the view of the queue with the specified name.- Parameters:
name- notnull- Returns:
nullif no queue with this name exists- Throws:
Exception
-
getTopic
org.apache.activemq.broker.jmx.TopicViewMBean getTopic(String name) throws Exception
Get the view of the topic with the specified name.- Parameters:
name- notnull- Returns:
nullif no topic with this name exists- Throws:
Exception
-
getJobScheduler
org.apache.activemq.broker.jmx.JobSchedulerViewMBean getJobScheduler() throws ExceptionGet the JobScheduler MBean- Returns:
- the jobScheduler or null if not configured
- Throws:
Exception
-
getScheduledJobs
Collection<JobFacade> getScheduledJobs() throws Exception
Get the JobScheduler MBean- Returns:
- the jobScheduler or null if not configured
- Throws:
Exception
-
isJobSchedulerStarted
boolean isJobSchedulerStarted()
-
-