Tabnine Logo
Destination.getDestinationStatistics
Code IndexAdd Tabnine to your IDE (free)

How to use
getDestinationStatistics
method
in
org.apache.activemq.broker.region.Destination

Best Java code snippets using org.apache.activemq.broker.region.Destination.getDestinationStatistics (Showing top 20 results out of 315)

Refine searchRefine arrow

  • CountStatisticImpl.getCount
origin: apache/activemq

/**
 * @return the number of messages expired by this destination
 */
public long getExpiredCount() {
  return destination.getDestinationStatistics().getExpired().getCount();
}
origin: apache/activemq

/**
 * @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();
}
origin: apache/activemq

/**
 * @return the number of messages dispatched by this destination
 */
public long getDispatchCount() {
  return destination.getDestinationStatistics().getDispatched().getCount();
}
origin: apache/activemq

/**
 * @return the number of messages inflight (dispatched by not acknowledged) by this destination
 */
public long getInFlightCount() {
  return destination.getDestinationStatistics().getInflight().getCount();
}
origin: apache/activemq

/**
 * @return the number of messages dequeued (dispatched and removed) by this destination
 */
public long getDequeueCount() {
  return destination.getDestinationStatistics().getDequeues().getCount();
}
origin: apache/activemq

/**
 * @return the number of messages enqueued by this destination
 */
public long getEnqueueCount() {
  return destination.getDestinationStatistics().getEnqueues().getCount();
}
origin: apache/activemq

/**
 * @return the number of active consumers on this destination
 */
public int getConsumerCount() {
  return (int)destination.getDestinationStatistics().getConsumers().getCount();
}
origin: apache/activemq

/**
 * @return the number of active consumers on this destination
 */
public int getProducerCount() {
  return (int)destination.getDestinationStatistics().getProducers().getCount();
}
origin: apache/activemq

/**
 * @return the depth of the Destination
 */
public long getQueueSize() {
  return destination.getDestinationStatistics().getMessages().getCount();
}
origin: apache/activemq

@Override
public long getDequeueCount() {
  return destination.getDestinationStatistics().getDequeues().getCount();
}
origin: apache/activemq

@Override
public long getDispatchCount() {
  return destination.getDestinationStatistics().getDispatched().getCount();
}
origin: apache/activemq

@Override
public long getInFlightCount() {
  return destination.getDestinationStatistics().getInflight().getCount();
}
origin: apache/activemq

@Override
public long getBlockedSends() {
  return destination.getDestinationStatistics().getBlockedSends().getCount();
}
origin: apache/activemq

@Override
public long getEnqueueCount() {
  return destination.getDestinationStatistics().getEnqueues().getCount();
}
origin: apache/activemq

@Override
public long getExpiredCount() {
  return destination.getDestinationStatistics().getExpired().getCount();
}
origin: apache/activemq

@Override
public long getProducerCount() {
  return destination.getDestinationStatistics().getProducers().getCount();
}
origin: apache/activemq

@Override
public long getForwardCount() {
  return destination.getDestinationStatistics().getForwards().getCount();
}
origin: apache/activemq

@Override
public long getConsumerCount() {
  return destination.getDestinationStatistics().getConsumers().getCount();
}
origin: apache/activemq

@Override
public long getQueueSize() {
  return destination.getDestinationStatistics().getMessages().getCount();
}
origin: apache/activemq

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;
}
org.apache.activemq.broker.regionDestinationgetDestinationStatistics

Popular methods of Destination

  • getConsumers
  • getName
  • getActiveMQDestination
  • browse
  • removeSubscription
  • acknowledge
  • addProducer
  • addSubscription
  • dispose
  • fastProducer
    Called to notify a producer is too fast
  • gc
  • getBlockedProducerWarningInterval
  • gc,
  • getBlockedProducerWarningInterval,
  • getCursorMemoryHighWaterMark,
  • getDeadLetterStrategy,
  • getMaxAuditDepth,
  • getMaxBrowsePageSize,
  • getMaxPageSize,
  • getMaxProducersToAudit,
  • getMemoryUsage

Popular in Java

  • Updating database using SQL prepared statement
  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • startActivity (Activity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Join (org.hibernate.mapping)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now