Package org.apache.activemq.web
Class BrokerFacadeSupport
java.lang.Object
org.apache.activemq.web.BrokerFacadeSupport
- All Implemented Interfaces:
BrokerFacade
- Direct Known Subclasses:
LocalBrokerFacade,RemoteJMXBrokerFacade
A useful base class for an implementation of
BrokerFacade-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.activemq.broker.jmx.ConnectionViewMBeangetConnection(String connectionName) A specific connection to the broker.Collection<org.apache.activemq.broker.jmx.ConnectionViewMBean>All connections to all transport connectors of the broker.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.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.protected org.apache.activemq.broker.jmx.DestinationViewMBeangetDestinationByName(Collection<? extends org.apache.activemq.broker.jmx.DestinationViewMBean> collection, String name) Collection<org.apache.activemq.broker.jmx.DurableSubscriptionViewMBean>Active durable subscribers to topics of the broker.Collection<org.apache.activemq.broker.jmx.DurableSubscriptionViewMBean>Inactive durable subscribers to topics of the broker.org.apache.activemq.broker.jmx.JobSchedulerViewMBeanGet the JobScheduler MBeanprotected <T> Collection<T>getManagedObjects(ObjectName[] names, Class<T> type) abstract org.apache.activemq.broker.jmx.ManagementContextCollection<org.apache.activemq.broker.jmx.NetworkBridgeViewMBean>The brokers network bridges.Collection<org.apache.activemq.broker.jmx.NetworkConnectorViewMBean>The brokers network connectors.Collection<org.apache.activemq.broker.jmx.SubscriptionViewMBean>All active non-durable subscribers to a topic.org.apache.activemq.broker.jmx.QueueViewMBeanGet 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>All queues known to the broker.Get the JobScheduler MBeanorg.apache.activemq.broker.jmx.TopicViewMBeanGet the view of the topic with the specified name.Collection<org.apache.activemq.broker.jmx.ProducerViewMBean>getTopicProducers(String topicName) All active producers to a topic.Collection<org.apache.activemq.broker.jmx.TopicViewMBean>All topics known to the broker.Collection<org.apache.activemq.broker.jmx.SubscriptionViewMBean>getTopicSubscribers(String topicName) All active non-durable subscribers to a topic.booleanabstract ObjectnewProxyInstance(ObjectName objectName, Class interfaceClass, boolean notificationBroadcaster) abstract SetqueryNames(ObjectName name, QueryExp query) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.web.BrokerFacade
getBrokerAdmin, getBrokerName, purgeQueue
-
Constructor Details
-
BrokerFacadeSupport
public BrokerFacadeSupport()
-
-
Method Details
-
getManagementContext
public abstract org.apache.activemq.broker.jmx.ManagementContext getManagementContext() -
queryNames
- Throws:
Exception
-
newProxyInstance
public abstract Object newProxyInstance(ObjectName objectName, Class interfaceClass, boolean notificationBroadcaster) throws Exception - Throws:
Exception
-
getQueues
Description copied from interface:BrokerFacadeAll queues known to the broker.- Specified by:
getQueuesin interfaceBrokerFacade- Returns:
- not
null - Throws:
Exception
-
getTopics
Description copied from interface:BrokerFacadeAll topics known to the broker.- Specified by:
getTopicsin interfaceBrokerFacade- Returns:
- not
null - Throws:
Exception
-
getTopicSubscribers
public Collection<org.apache.activemq.broker.jmx.SubscriptionViewMBean> getTopicSubscribers(String topicName) throws Exception Description copied from interface:BrokerFacadeAll active non-durable subscribers to a topic.- Specified by:
getTopicSubscribersin interfaceBrokerFacade- Parameters:
topicName- the name of the topic, notnull- Returns:
- not
null - Throws:
Exception
-
getNonDurableTopicSubscribers
public Collection<org.apache.activemq.broker.jmx.SubscriptionViewMBean> getNonDurableTopicSubscribers() throws ExceptionDescription copied from interface:BrokerFacadeAll active non-durable subscribers to a topic.- Specified by:
getNonDurableTopicSubscribersin interfaceBrokerFacade- Returns:
- not
null - Throws:
Exception
-
getDurableTopicSubscribers
public Collection<org.apache.activemq.broker.jmx.DurableSubscriptionViewMBean> getDurableTopicSubscribers() throws ExceptionDescription copied from interface:BrokerFacadeActive durable subscribers to topics of the broker.- Specified by:
getDurableTopicSubscribersin interfaceBrokerFacade- Returns:
- not
null - Throws:
Exception
-
getInactiveDurableTopicSubscribers
public Collection<org.apache.activemq.broker.jmx.DurableSubscriptionViewMBean> getInactiveDurableTopicSubscribers() throws ExceptionDescription copied from interface:BrokerFacadeInactive durable subscribers to topics of the broker.- Specified by:
getInactiveDurableTopicSubscribersin interfaceBrokerFacade- Returns:
- not
null - Throws:
Exception
-
getQueue
Description copied from interface:BrokerFacadeGet the view of the queue with the specified name.- Specified by:
getQueuein interfaceBrokerFacade- Parameters:
name- notnull- Returns:
nullif no queue with this name exists- Throws:
Exception
-
getTopic
Description copied from interface:BrokerFacadeGet the view of the topic with the specified name.- Specified by:
getTopicin interfaceBrokerFacade- Parameters:
name- notnull- Returns:
nullif no topic with this name exists- Throws:
Exception
-
getDestinationByName
protected org.apache.activemq.broker.jmx.DestinationViewMBean getDestinationByName(Collection<? extends org.apache.activemq.broker.jmx.DestinationViewMBean> collection, String name) -
getManagedObjects
- Throws:
Exception
-
getConnections
public Collection<org.apache.activemq.broker.jmx.ConnectionViewMBean> getConnections() throws ExceptionDescription copied from interface:BrokerFacadeAll connections to all transport connectors of the broker.- Specified by:
getConnectionsin interfaceBrokerFacade- Returns:
- not
null - Throws:
Exception
-
getConnections
Description copied from interface:BrokerFacadeThe names of all connections to a specific transport connectors of the broker.- Specified by:
getConnectionsin interfaceBrokerFacade- Parameters:
connectorName- notnull- Returns:
- not
null - Throws:
Exception- See Also:
-
getConnection
public org.apache.activemq.broker.jmx.ConnectionViewMBean getConnection(String connectionName) throws Exception Description copied from interface:BrokerFacadeA specific connection to the broker.- Specified by:
getConnectionin interfaceBrokerFacade- Parameters:
connectionName- the name of the connection, notnull- Returns:
- not
null - Throws:
Exception
-
getConnectors
Description copied from interface:BrokerFacadeThe names of all transport connectors of the broker (f.e. openwire, ssl)- Specified by:
getConnectorsin interfaceBrokerFacade- Returns:
- not
null - Throws:
Exception
-
getConnector
Description copied from interface:BrokerFacadeA transport connectors.- Specified by:
getConnectorin interfaceBrokerFacade- Parameters:
name- name of the connector (f.e. openwire)- Returns:
nullif not found- Throws:
Exception
-
getNetworkConnectors
public Collection<org.apache.activemq.broker.jmx.NetworkConnectorViewMBean> getNetworkConnectors() throws ExceptionDescription copied from interface:BrokerFacadeThe brokers network connectors.- Specified by:
getNetworkConnectorsin interfaceBrokerFacade- Returns:
- not
null - Throws:
Exception
-
getNetworkBridges
public Collection<org.apache.activemq.broker.jmx.NetworkBridgeViewMBean> getNetworkBridges() throws ExceptionDescription copied from interface:BrokerFacadeThe brokers network bridges.- Specified by:
getNetworkBridgesin interfaceBrokerFacade- Returns:
- not
null - Throws:
Exception
-
getQueueConsumers
public Collection<org.apache.activemq.broker.jmx.SubscriptionViewMBean> getQueueConsumers(String queueName) throws Exception Description copied from interface:BrokerFacadeAll active consumers of a queue.- Specified by:
getQueueConsumersin interfaceBrokerFacade- Parameters:
queueName- the name of the queue, notnull- Returns:
- not
null - Throws:
Exception
-
getQueueProducers
public Collection<org.apache.activemq.broker.jmx.ProducerViewMBean> getQueueProducers(String queueName) throws Exception Description copied from interface:BrokerFacadeAll active producers to a queue.- Specified by:
getQueueProducersin interfaceBrokerFacade- Parameters:
queueName- the name of the queue, notnull- Returns:
- not
null - Throws:
Exception
-
getTopicProducers
public Collection<org.apache.activemq.broker.jmx.ProducerViewMBean> getTopicProducers(String topicName) throws Exception Description copied from interface:BrokerFacadeAll active producers to a topic.- Specified by:
getTopicProducersin interfaceBrokerFacade- Parameters:
topicName- the name of the topic, notnull- Returns:
- not
null - Throws:
Exception
-
getConsumersOnConnection
public Collection<org.apache.activemq.broker.jmx.SubscriptionViewMBean> getConsumersOnConnection(String connectionName) throws Exception Description copied from interface:BrokerFacadeReturns all consumers of a connection.- Specified by:
getConsumersOnConnectionin interfaceBrokerFacade- Parameters:
connectionName- the name of the connection, notnull- Returns:
- not
null - Throws:
Exception
-
getJobScheduler
Description copied from interface:BrokerFacadeGet the JobScheduler MBean- Specified by:
getJobSchedulerin interfaceBrokerFacade- Returns:
- the jobScheduler or null if not configured
- Throws:
Exception
-
getScheduledJobs
Description copied from interface:BrokerFacadeGet the JobScheduler MBean- Specified by:
getScheduledJobsin interfaceBrokerFacade- Returns:
- the jobScheduler or null if not configured
- Throws:
Exception
-
isJobSchedulerStarted
public boolean isJobSchedulerStarted()- Specified by:
isJobSchedulerStartedin interfaceBrokerFacade
-