org.fusesource.fabric.activemq.facade
Class LocalBrokerFacade

java.lang.Object
  extended by org.fusesource.fabric.activemq.facade.BrokerFacadeSupport
      extended by org.fusesource.fabric.activemq.facade.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 Summary
LocalBrokerFacade(org.apache.activemq.broker.BrokerService brokerService)
           
 
Method Summary
 org.apache.activemq.broker.Broker getBroker()
           
 BrokerViewFacade getBrokerAdmin()
          Admin view of the broker.
 java.lang.String getBrokerName()
          The name of the active broker (f.e.
 BrokerFacade[] getBrokers()
          Returns all the available brokers.
 org.apache.activemq.broker.BrokerService getBrokerService()
           
 java.lang.String getId()
           
 org.apache.activemq.broker.jmx.ManagedRegionBroker getManagedBroker()
           
 org.apache.activemq.broker.jmx.ManagementContext getManagementContext()
           
 java.lang.Object newProxyInstance(javax.management.ObjectName objectName, java.lang.Class interfaceClass, boolean notificationBroadcaster)
           
 void purgeQueue(org.apache.activemq.command.ActiveMQDestination destination)
          Purges the given destination
 java.util.Set queryNames(javax.management.ObjectName name, javax.management.QueryExp query)
           
 
Methods inherited from class org.fusesource.fabric.activemq.facade.BrokerFacadeSupport
getConnection, getConnections, getConnections, getConnector, getConnectors, getConsumersOnConnection, getDestinationByName, getDurableTopicSubscribers, getInactiveDurableTopicSubscribers, getJobScheduler, getManagedObjects, getNetworkBridges, getNetworkConnectors, getQueue, getQueueConsumers, getQueueProducers, getQueues, getScheduledJobs, getTopic, getTopicConsumers, getTopicDurableConsumers, getTopicProducers, getTopics, isJobSchedulerStarted, proxy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalBrokerFacade

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

getBrokerService

public org.apache.activemq.broker.BrokerService getBrokerService()

getId

public java.lang.String getId()
                       throws java.lang.Exception
Returns:
a unique id for this resource, typically a JMX ObjectName
Throws:
java.lang.Exception

getBrokers

public BrokerFacade[] getBrokers()
                          throws java.lang.Exception
Description copied from interface: BrokerFacade
Returns all the available brokers.

Returns:
not null
Throws:
java.lang.Exception

getBrokerName

public java.lang.String getBrokerName()
                               throws java.lang.Exception
Description copied from interface: BrokerFacade
The name of the active broker (f.e. 'localhost' or 'my broker').

Returns:
not null
Throws:
java.lang.Exception

getBroker

public org.apache.activemq.broker.Broker getBroker()
                                            throws java.lang.Exception
Throws:
java.lang.Exception

getManagementContext

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

getBrokerAdmin

public BrokerViewFacade getBrokerAdmin()
                                throws java.lang.Exception
Description copied from interface: BrokerFacade
Admin view of the broker.

Returns:
not null
Throws:
java.lang.Exception

getManagedBroker

public org.apache.activemq.broker.jmx.ManagedRegionBroker getManagedBroker()
                                                                    throws java.lang.Exception
Throws:
java.lang.Exception

purgeQueue

public void purgeQueue(org.apache.activemq.command.ActiveMQDestination destination)
                throws java.lang.Exception
Description copied from interface: BrokerFacade
Purges the given destination

Throws:
java.lang.Exception

queryNames

public java.util.Set queryNames(javax.management.ObjectName name,
                                javax.management.QueryExp query)
                         throws java.lang.Exception
Specified by:
queryNames in class BrokerFacadeSupport
Throws:
java.lang.Exception

newProxyInstance

public java.lang.Object newProxyInstance(javax.management.ObjectName objectName,
                                         java.lang.Class interfaceClass,
                                         boolean notificationBroadcaster)
Specified by:
newProxyInstance in class BrokerFacadeSupport


Copyright © 2013 Red Hat. All Rights Reserved.