Package org.apache.activemq.plugin
Class StatisticsBrokerPlugin
- java.lang.Object
-
- org.apache.activemq.plugin.StatisticsBrokerPlugin
-
- All Implemented Interfaces:
BrokerPlugin
public class StatisticsBrokerPlugin extends Object implements BrokerPlugin
A StatisticsBrokerPlugin You can retrieve a Map Message for a Destination - or Broker containing statistics as key-value pairs The message must contain a replyTo Destination - else its ignored To retrieve stats on the broker send a empty message to ActiveMQ.Statistics.Broker (Queue or Topic) With a replyTo set to the destination you want the stats returned to. To retrieve stats for a destination - e.g. foo - send an empty message to ActiveMQ.Statistics.Destination.foo - this works with wildcards to - you get a message for each wildcard match on the replyTo destination. The stats message is a MapMessage populated with statistics for the target
-
-
Constructor Summary
Constructors Constructor Description StatisticsBrokerPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Broker
installPlugin(Broker broker)
Installs the plugin into the interceptor chain of the broker, returning the new intercepted broker to use.
-
-
-
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 interfaceBrokerPlugin
- Parameters:
broker
-- Returns:
- the plug-in
- Throws:
Exception
- See Also:
BrokerPlugin.installPlugin(org.apache.activemq.broker.Broker)
-
-