mirror of
https://github.com/apache/activemq.git
synced 2025-02-09 03:25:33 +00:00
This commit is contained in:
parent
b21dc69e81
commit
3797da64fc
@ -104,6 +104,8 @@ public class StatisticsBroker extends BrokerFilter {
|
|||||||
DestinationStatistics stats = dest.getDestinationStatistics();
|
DestinationStatistics stats = dest.getDestinationStatistics();
|
||||||
if (stats != null) {
|
if (stats != null) {
|
||||||
ActiveMQMapMessage statsMessage = new ActiveMQMapMessage();
|
ActiveMQMapMessage statsMessage = new ActiveMQMapMessage();
|
||||||
|
statsMessage.setString("brokerName", regionBroker.getBrokerName());
|
||||||
|
statsMessage.setString("brokerId", regionBroker.getBrokerId().toString());
|
||||||
statsMessage.setString("destinationName", dest.getActiveMQDestination().toString());
|
statsMessage.setString("destinationName", dest.getActiveMQDestination().toString());
|
||||||
statsMessage.setLong("size", stats.getMessages().getCount());
|
statsMessage.setLong("size", stats.getMessages().getCount());
|
||||||
statsMessage.setLong("enqueueCount", stats.getEnqueues().getCount());
|
statsMessage.setLong("enqueueCount", stats.getEnqueues().getCount());
|
||||||
@ -223,7 +225,10 @@ public class StatisticsBroker extends BrokerFilter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected ActiveMQMapMessage prepareSubscriptionMessage(SubscriptionViewMBean subscriber) throws JMSException {
|
protected ActiveMQMapMessage prepareSubscriptionMessage(SubscriptionViewMBean subscriber) throws JMSException {
|
||||||
|
Broker regionBroker = getBrokerService().getRegionBroker();
|
||||||
ActiveMQMapMessage statsMessage = new ActiveMQMapMessage();
|
ActiveMQMapMessage statsMessage = new ActiveMQMapMessage();
|
||||||
|
statsMessage.setString("brokerName", regionBroker.getBrokerName());
|
||||||
|
statsMessage.setString("brokerId", regionBroker.getBrokerId().toString());
|
||||||
statsMessage.setString("destinationName", subscriber.getDestinationName());
|
statsMessage.setString("destinationName", subscriber.getDestinationName());
|
||||||
statsMessage.setString("clientId", subscriber.getClientId());
|
statsMessage.setString("clientId", subscriber.getClientId());
|
||||||
statsMessage.setString("connectionId", subscriber.getConnectionId());
|
statsMessage.setString("connectionId", subscriber.getConnectionId());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user