Package org.apache.activemq.web
Class LocalBrokerFacade
java.lang.Object
org.apache.activemq.web.BrokerFacadeSupport
org.apache.activemq.web.LocalBrokerFacade
- All Implemented Interfaces:
BrokerFacade
- Direct Known Subclasses:
SingletonBrokerFacade
An implementation of
BrokerFacade which uses a local in JVM broker-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.activemq.broker.Brokerorg.apache.activemq.broker.jmx.BrokerViewMBeanAdmin view of the broker.The name of the active broker (f.e.org.apache.activemq.broker.BrokerServiceorg.apache.activemq.broker.jmx.ManagedRegionBrokerorg.apache.activemq.broker.jmx.ManagementContextnewProxyInstance(ObjectName objectName, Class interfaceClass, boolean notificationBroadcaster) voidpurgeQueue(org.apache.activemq.command.ActiveMQDestination destination) Purges the given destinationqueryNames(ObjectName name, QueryExp query) Methods inherited from class org.apache.activemq.web.BrokerFacadeSupport
getConnection, getConnections, getConnections, getConnector, getConnectors, getConsumersOnConnection, getDestinationByName, getDurableTopicSubscribers, getInactiveDurableTopicSubscribers, getJobScheduler, getManagedObjects, getNetworkBridges, getNetworkConnectors, getNonDurableTopicSubscribers, getQueue, getQueueConsumers, getQueueProducers, getQueues, getScheduledJobs, getTopic, getTopicProducers, getTopics, getTopicSubscribers, isJobSchedulerStarted
-
Constructor Details
-
LocalBrokerFacade
public LocalBrokerFacade(org.apache.activemq.broker.BrokerService brokerService)
-
-
Method Details
-
getBrokerService
public org.apache.activemq.broker.BrokerService getBrokerService() -
getBrokerName
Description copied from interface:BrokerFacadeThe name of the active broker (f.e. 'localhost' or 'my broker').- Returns:
- not
null - Throws:
Exception
-
getBroker
- Throws:
Exception
-
getManagementContext
public org.apache.activemq.broker.jmx.ManagementContext getManagementContext()- Specified by:
getManagementContextin classBrokerFacadeSupport
-
getBrokerAdmin
Description copied from interface:BrokerFacadeAdmin view of the broker.- Returns:
- not
null - Throws:
Exception
-
getManagedBroker
- Throws:
Exception
-
purgeQueue
public void purgeQueue(org.apache.activemq.command.ActiveMQDestination destination) throws Exception Description copied from interface:BrokerFacadePurges the given destination- Throws:
Exception
-
queryNames
- Specified by:
queryNamesin classBrokerFacadeSupport- Throws:
Exception
-
newProxyInstance
public Object newProxyInstance(ObjectName objectName, Class interfaceClass, boolean notificationBroadcaster) - Specified by:
newProxyInstancein classBrokerFacadeSupport
-