Class TraceBrokerPathPlugin

  extended by
      extended by
          extended by
All Implemented Interfaces:
Broker, BrokerPlugin, Region, Service

public class TraceBrokerPathPlugin
extends BrokerPluginSupport

The TraceBrokerPathPlugin can be used in a network of Brokers. Each Broker that has the plugin configured, will add it's brokerName to the content of a JMS Property. If all Brokers have this property enabled, the path the message actually took through the network can be seen in the defined property.

Field Summary
Fields inherited from class
Constructor Summary
Method Summary
 String getStampProperty()
 void preProcessDispatch(MessageDispatch messageDispatch)
          Notify the Broker that a dispatch is going to happen
 void setStampProperty(String stampProperty)
Methods inherited from class
installPlugin, start, stop
Methods inherited from class
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, 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


public TraceBrokerPathPlugin()
Method Detail


public String getStampProperty()


public void setStampProperty(String stampProperty)


public void preProcessDispatch(MessageDispatch messageDispatch)
Description copied from interface: Broker
Notify the Broker that a dispatch is going to happen

Specified by:
preProcessDispatch in interface Broker
preProcessDispatch in class MutableBrokerFilter

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