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
public class LocalBrokerFacade extends BrokerFacadeSupport
An implementation ofBrokerFacadewhich uses a local in JVM broker
-
-
Constructor Summary
Constructors Constructor Description LocalBrokerFacade(org.apache.activemq.broker.BrokerService brokerService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.activemq.broker.BrokergetBroker()org.apache.activemq.broker.jmx.BrokerViewMBeangetBrokerAdmin()Admin view of the broker.StringgetBrokerName()The name of the active broker (f.e.org.apache.activemq.broker.BrokerServicegetBrokerService()org.apache.activemq.broker.jmx.ManagedRegionBrokergetManagedBroker()org.apache.activemq.broker.jmx.ManagementContextgetManagementContext()ObjectnewProxyInstance(ObjectName objectName, Class interfaceClass, boolean notificationBroadcaster)voidpurgeQueue(org.apache.activemq.command.ActiveMQDestination destination)Purges the given destinationSetqueryNames(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
-
-
-
-
Method Detail
-
getBrokerService
public org.apache.activemq.broker.BrokerService getBrokerService()
-
getBrokerName
public String getBrokerName() throws Exception
Description copied from interface:BrokerFacadeThe name of the active broker (f.e. 'localhost' or 'my broker').- Returns:
- not
null - Throws:
Exception
-
getManagementContext
public org.apache.activemq.broker.jmx.ManagementContext getManagementContext()
- Specified by:
getManagementContextin classBrokerFacadeSupport
-
getBrokerAdmin
public org.apache.activemq.broker.jmx.BrokerViewMBean getBrokerAdmin() throws ExceptionDescription copied from interface:BrokerFacadeAdmin view of the broker.- Returns:
- not
null - Throws:
Exception
-
getManagedBroker
public org.apache.activemq.broker.jmx.ManagedRegionBroker getManagedBroker() throws Exception- Throws:
Exception
-
purgeQueue
public void purgeQueue(org.apache.activemq.command.ActiveMQDestination destination) throws ExceptionDescription copied from interface:BrokerFacadePurges the given destination- Throws:
Exception
-
queryNames
public Set queryNames(ObjectName name, QueryExp query) throws Exception
- Specified by:
queryNamesin classBrokerFacadeSupport- Throws:
Exception
-
newProxyInstance
public Object newProxyInstance(ObjectName objectName, Class interfaceClass, boolean notificationBroadcaster)
- Specified by:
newProxyInstancein classBrokerFacadeSupport
-
-