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 ofBrokerFacade
which uses a local in JVM broker
-
-
Constructor Summary
Constructors Constructor Description LocalBrokerFacade(BrokerService brokerService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Broker
getBroker()
BrokerViewMBean
getBrokerAdmin()
Admin view of the broker.String
getBrokerName()
The name of the active broker (f.e.BrokerService
getBrokerService()
ManagedRegionBroker
getManagedBroker()
ManagementContext
getManagementContext()
Object
newProxyInstance(ObjectName objectName, Class interfaceClass, boolean notificationBroadcaster)
void
purgeQueue(ActiveMQDestination destination)
Purges the given destinationSet
queryNames(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 Detail
-
LocalBrokerFacade
public LocalBrokerFacade(BrokerService brokerService)
-
-
Method Detail
-
getBrokerService
public BrokerService getBrokerService()
-
getBrokerName
public String getBrokerName() throws Exception
Description copied from interface:BrokerFacade
The name of the active broker (f.e. 'localhost' or 'my broker').- Returns:
- not
null
- Throws:
Exception
-
getManagementContext
public ManagementContext getManagementContext()
- Specified by:
getManagementContext
in classBrokerFacadeSupport
-
getBrokerAdmin
public BrokerViewMBean getBrokerAdmin() throws Exception
Description copied from interface:BrokerFacade
Admin view of the broker.- Returns:
- not
null
- Throws:
Exception
-
getManagedBroker
public ManagedRegionBroker getManagedBroker() throws Exception
- Throws:
Exception
-
purgeQueue
public void purgeQueue(ActiveMQDestination destination) throws Exception
Description copied from interface:BrokerFacade
Purges the given destination- Throws:
Exception
-
queryNames
public Set queryNames(ObjectName name, QueryExp query) throws Exception
- Specified by:
queryNames
in classBrokerFacadeSupport
- Throws:
Exception
-
newProxyInstance
public Object newProxyInstance(ObjectName objectName, Class interfaceClass, boolean notificationBroadcaster)
- Specified by:
newProxyInstance
in classBrokerFacadeSupport
-
-