Refine search
/** * @return the number of messages expired by this destination */ public long getExpiredCount() { return destination.getDestinationStatistics().getExpired().getCount(); }
/** * @return the number of messages blocked waiting for dispatch (indication of slow consumption if greater than zero) */ public long getBlockedSends() { return destination.getDestinationStatistics().getBlockedSends().getCount(); }
/** * @return the number of messages dequeued (dispatched and removed) by this destination */ public long getDequeueCount() { return destination.getDestinationStatistics().getDequeues().getCount(); }
/** * @return the number of messages dispatched by this destination */ public long getDispatchCount() { return destination.getDestinationStatistics().getDispatched().getCount(); }
/** * @return the number of messages inflight (dispatched by not acknowledged) by this destination */ public long getInFlightCount() { return destination.getDestinationStatistics().getInflight().getCount(); }
@Override public long getDequeueCount() { return destination.getDestinationStatistics().getDequeues().getCount(); }
@Override public long getDispatchCount() { return destination.getDestinationStatistics().getDispatched().getCount(); }
@Override public long getInFlightCount() { return destination.getDestinationStatistics().getInflight().getCount(); }
@Override public long getBlockedSends() { return destination.getDestinationStatistics().getBlockedSends().getCount(); }
/** * @return the number of messages enqueued by this destination */ public long getEnqueueCount() { return destination.getDestinationStatistics().getEnqueues().getCount(); }
/** * @return the number of active consumers on this destination */ public int getConsumerCount() { return (int)destination.getDestinationStatistics().getConsumers().getCount(); }
/** * @return the number of active consumers on this destination */ public int getProducerCount() { return (int)destination.getDestinationStatistics().getProducers().getCount(); }
/** * @return the depth of the Destination */ public long getQueueSize() { return destination.getDestinationStatistics().getMessages().getCount(); }
@Override public long getProducerCount() { return destination.getDestinationStatistics().getProducers().getCount(); }
@Override public long getEnqueueCount() { return destination.getDestinationStatistics().getEnqueues().getCount(); }
@Override public long getExpiredCount() { return destination.getDestinationStatistics().getExpired().getCount(); }
@Override public long getForwardCount() { return destination.getDestinationStatistics().getForwards().getCount(); }
@Override public long getConsumerCount() { return destination.getDestinationStatistics().getConsumers().getCount(); }
@Override public long getQueueSize() { return destination.getDestinationStatistics().getMessages().getCount(); }
public boolean checkQueueSize(String queueName) { long count = 0; long queueSize = 0; Map<ActiveMQDestination, Destination> destinationMap = regionBroker.getDestinationMap(); for (Map.Entry<ActiveMQDestination, Destination> entry : destinationMap.entrySet()) { if (entry.getKey().isQueue()) { if (entry.getValue().getName().matches(queueName)) { queueSize = entry.getValue().getDestinationStatistics().getMessages().getCount(); count += queueSize; if (queueSize > 0) { LOG.info("Queue has pending message: {} queueSize is: {}", entry.getValue().getName(), queueSize); } } } } return count == 0; }