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 of BrokerFacade which uses a local in JVM broker
  • Constructor Details

    • LocalBrokerFacade

      public LocalBrokerFacade(org.apache.activemq.broker.BrokerService brokerService)
  • Method Details

    • getBrokerService

      public org.apache.activemq.broker.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
    • getBroker

      public org.apache.activemq.broker.Broker getBroker() throws Exception
      Throws:
      Exception
    • getManagementContext

      public org.apache.activemq.broker.jmx.ManagementContext getManagementContext()
      Specified by:
      getManagementContext in class BrokerFacadeSupport
    • getBrokerAdmin

      public org.apache.activemq.broker.jmx.BrokerViewMBean getBrokerAdmin() throws Exception
      Description copied from interface: BrokerFacade
      Admin 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 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 class BrokerFacadeSupport
      Throws:
      Exception
    • newProxyInstance

      public Object newProxyInstance(ObjectName objectName, Class interfaceClass, boolean notificationBroadcaster)
      Specified by:
      newProxyInstance in class BrokerFacadeSupport