org.apache.activemq.broker
Class BrokerPluginSupport

java.lang.Object
  extended by org.apache.activemq.broker.MutableBrokerFilter
      extended by org.apache.activemq.broker.BrokerPluginSupport
All Implemented Interfaces:
Broker, BrokerPlugin, Region, Service
Direct Known Subclasses:
DestinationPathSeparatorBroker, LoggingBrokerPlugin, RedeliveryPlugin, TimeStampingBrokerPlugin, TraceBrokerPathPlugin, UDPTraceBrokerPlugin

public abstract class BrokerPluginSupport
extends MutableBrokerFilter
implements BrokerPlugin

A useful base class for implementing broker plugins.


Field Summary
 
Fields inherited from class org.apache.activemq.broker.MutableBrokerFilter
next
 
Constructor Summary
BrokerPluginSupport()
           
 
Method Summary
 Broker installPlugin(Broker broker)
          Installs the plugin into the interceptor chain of the broker, returning the new intercepted broker to use.
 void start()
           
 void stop()
           
 
Methods inherited from class org.apache.activemq.broker.MutableBrokerFilter
acknowledge, addBroker, addConnection, addConsumer, addDestination, addDestinationInfo, addProducer, addSession, beginTransaction, brokerServiceStarted, commitTransaction, fastProducer, forgetTransaction, gc, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, getDestinationMap, getDestinations, getDestinations, getDurableDestinations, getExecutor, getNext, getPeerBrokerInfos, getPreparedTransactions, getRoot, getScheduler, getTempDataStore, getVmConnectorURI, isExpired, isFaultTolerantConfiguration, isFull, isStopped, messageConsumed, messageDelivered, messageDiscarded, messageExpired, messagePull, networkBridgeStarted, networkBridgeStopped, nowMasterBroker, postProcessDispatch, prepareTransaction, preProcessDispatch, processConsumerControl, processDispatchNotification, removeBroker, removeConnection, removeConsumer, removeDestination, removeDestinationInfo, removeProducer, removeSession, removeSubscription, rollbackTransaction, send, sendToDeadLetterQueue, setAdminConnectionContext, setNext, slowConsumer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrokerPluginSupport

public BrokerPluginSupport()
Method Detail

installPlugin

public Broker installPlugin(Broker broker)
                     throws Exception
Description copied from interface: BrokerPlugin
Installs the plugin into the interceptor chain of the broker, returning the new intercepted broker to use.

Specified by:
installPlugin in interface BrokerPlugin
Throws:
Exception

start

public void start()
           throws Exception
Specified by:
start in interface Service
Overrides:
start in class MutableBrokerFilter
Throws:
Exception

stop

public void stop()
          throws Exception
Specified by:
stop in interface Service
Overrides:
stop in class MutableBrokerFilter
Throws:
Exception


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.