Package org.apache.activemq.plugin
Class StatisticsBroker
java.lang.Object
org.apache.activemq.broker.BrokerFilter
org.apache.activemq.plugin.StatisticsBroker
A StatisticsBroker 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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.activemq.command.ProducerIdprotected BrokerViewMBeanFields inherited from class org.apache.activemq.broker.BrokerFilter
next -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.activemq.command.ActiveMQMapMessageprepareSubscriptionMessage(SubscriptionViewMBean subscriber) voidsend(ProducerBrokerExchange producerExchange, org.apache.activemq.command.Message messageSend) Sets the persistence modeprotected voidsendStats(ConnectionContext context, org.apache.activemq.command.ActiveMQMapMessage msg, org.apache.activemq.command.ActiveMQDestination replyTo) protected voidsendSubStats(ConnectionContext context, ObjectName[] subscribers, org.apache.activemq.command.ActiveMQDestination replyTo) voidstart()voidstop()Methods inherited from class org.apache.activemq.broker.BrokerFilter
acknowledge, addBroker, addConnection, addConsumer, addDestination, addDestinationInfo, addProducer, addSession, beginTransaction, brokerServiceStarted, commitTransaction, fastProducer, forgetTransaction, gc, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, getDestinationMap, getDestinationMap, getDestinations, getDestinations, getDurableDestinations, getExecutor, getNext, getPeerBrokerInfos, getPreparedTransactions, getRoot, getScheduler, getTempDataStore, getVmConnectorURI, isExpired, isFaultTolerantConfiguration, isFull, isStopped, messageConsumed, messageDelivered, messageDiscarded, messageDispatched, messageExpired, messagePull, networkBridgeStarted, networkBridgeStopped, nowMasterBroker, postProcessDispatch, prepareTransaction, preProcessDispatch, processConsumerControl, processDispatchNotification, reapplyInterceptor, removeBroker, removeConnection, removeConsumer, removeDestination, removeDestinationInfo, removeProducer, removeSession, removeSubscription, rollbackTransaction, sendToDeadLetterQueue, setAdminConnectionContext, slowConsumer, virtualDestinationAdded, virtualDestinationRemoved
-
Field Details
-
advisoryProducerId
protected final org.apache.activemq.command.ProducerId advisoryProducerId -
brokerView
-
-
Constructor Details
-
StatisticsBroker
Constructor- Parameters:
next-
-
-
Method Details
-
send
public void send(ProducerBrokerExchange producerExchange, org.apache.activemq.command.Message messageSend) throws Exception Sets the persistence mode- Specified by:
sendin interfaceRegion- Overrides:
sendin classBrokerFilter- Parameters:
producerExchange- the environment the operation is being executed under.- Throws:
Exception- TODO- See Also:
-
start
- Specified by:
startin interfaceorg.apache.activemq.Service- Overrides:
startin classBrokerFilter- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.apache.activemq.Service- Overrides:
stopin classBrokerFilter- Throws:
Exception
-
sendSubStats
protected void sendSubStats(ConnectionContext context, ObjectName[] subscribers, org.apache.activemq.command.ActiveMQDestination replyTo) throws Exception - Throws:
Exception
-
prepareSubscriptionMessage
protected org.apache.activemq.command.ActiveMQMapMessage prepareSubscriptionMessage(SubscriptionViewMBean subscriber) throws jakarta.jms.JMSException - Throws:
jakarta.jms.JMSException
-
sendStats
protected void sendStats(ConnectionContext context, org.apache.activemq.command.ActiveMQMapMessage msg, org.apache.activemq.command.ActiveMQDestination replyTo) throws Exception - Throws:
Exception
-