congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SizeStatisticImpl.getAverageSize
Code IndexAdd Tabnine to your IDE (free)

How to use
getAverageSize
method
in
org.apache.activemq.management.SizeStatisticImpl

Best Java code snippets using org.apache.activemq.management.SizeStatisticImpl.getAverageSize (Showing top 20 results out of 315)

origin: apache/activemq

/**
 * @return the average number of steps per second
 */
public double getAveragePerSecond() {
  double d = 1000;
  double averageSize = getAverageSize();
  if (averageSize == 0) {
    return 0;
  }
  return d / averageSize;
}
origin: apache/activemq

  @Override
  protected synchronized void appendFieldDescription(StringBuffer buffer) {
    buffer.append(" count: ");
    buffer.append(Long.toString(count));
    buffer.append(" maxSize: ");
    buffer.append(Long.toString(maxSize));
    buffer.append(" minSize: ");
    buffer.append(Long.toString(minSize));
    buffer.append(" totalSize: ");
    buffer.append(Long.toString(totalSize));
    buffer.append(" averageSize: ");
    buffer.append(Double.toString(getAverageSize()));
    buffer.append(" averageTimeExMinMax: ");
    buffer.append(Double.toString(getAveragePerSecondExcludingMinMax()));
    buffer.append(" averagePerSecond: ");
    buffer.append(Double.toString(getAveragePerSecond()));
    buffer.append(" averagePerSecondExMinMax: ");
    buffer.append(Double.toString(getAveragePerSecondExcludingMinMax()));
    super.appendFieldDescription(buffer);
  }
}
origin: apache/activemq

/**
 * @return the average size of a message (bytes)
 */
public double getAverageMessageSize() {
  return destination.getDestinationStatistics().getMessageSize().getAverageSize();
}
origin: apache/activemq

/**
 * @return the average size of a message (bytes)
 */
@Override
public long getAverageMessageSize() {
  // we are okay with the size without decimals so cast to long
  return (long) destination.getDestinationStatistics().getMessageSize().getAverageSize();
}
origin: apache/activemq

/**
 * @return the average size of a message (bytes)
 */
@Override
public long getAverageMessageSize() {
  // we are okay with the size without decimals so cast to long
  return (long) safeGetBroker().getDestinationStatistics().getMessageSize().getAverageSize();
}
origin: apache/activemq

    statsMessage.setLong("messagesCached", stats.getMessagesCached().getCount());
    statsMessage.setLong("averageMessageSize", (long) stats.getMessageSize().getAverageSize());
    statsMessage.setInt("memoryPercentUsage", dest.getMemoryUsage().getPercentUsage());
    statsMessage.setLong("memoryUsage", dest.getMemoryUsage().getUsage());
statsMessage.setLong("inflightCount", stats.getInflight().getCount());
statsMessage.setLong("averageMessageSize",(long) stats.getMessageSize().getAverageSize());
statsMessage.setLong("messagesCached", stats.getMessagesCached().getCount());
statsMessage.setInt("memoryPercentUsage", systemUsage.getMemoryUsage().getPercentUsage());
origin: org.apache.activemq/activemq-client

/**
 * @return the average number of steps per second
 */
public double getAveragePerSecond() {
  double d = 1000;
  double averageSize = getAverageSize();
  if (averageSize == 0) {
    return 0;
  }
  return d / averageSize;
}
origin: org.apache.activemq/activemq-all

/**
 * @return the average number of steps per second
 */
public double getAveragePerSecond() {
  double d = 1000;
  double averageSize = getAverageSize();
  if (averageSize == 0) {
    return 0;
  }
  return d / averageSize;
}
origin: org.apache.activemq/activemq-osgi

/**
 * @return the average number of steps per second
 */
public double getAveragePerSecond() {
  double d = 1000;
  double averageSize = getAverageSize();
  if (averageSize == 0) {
    return 0;
  }
  return d / averageSize;
}
origin: org.apache.activemq/activemq-all

  @Override
  protected synchronized void appendFieldDescription(StringBuffer buffer) {
    buffer.append(" count: ");
    buffer.append(Long.toString(count));
    buffer.append(" maxSize: ");
    buffer.append(Long.toString(maxSize));
    buffer.append(" minSize: ");
    buffer.append(Long.toString(minSize));
    buffer.append(" totalSize: ");
    buffer.append(Long.toString(totalSize));
    buffer.append(" averageSize: ");
    buffer.append(Double.toString(getAverageSize()));
    buffer.append(" averageTimeExMinMax: ");
    buffer.append(Double.toString(getAveragePerSecondExcludingMinMax()));
    buffer.append(" averagePerSecond: ");
    buffer.append(Double.toString(getAveragePerSecond()));
    buffer.append(" averagePerSecondExMinMax: ");
    buffer.append(Double.toString(getAveragePerSecondExcludingMinMax()));
    super.appendFieldDescription(buffer);
  }
}
origin: org.apache.activemq/activemq-osgi

  @Override
  protected synchronized void appendFieldDescription(StringBuffer buffer) {
    buffer.append(" count: ");
    buffer.append(Long.toString(count));
    buffer.append(" maxSize: ");
    buffer.append(Long.toString(maxSize));
    buffer.append(" minSize: ");
    buffer.append(Long.toString(minSize));
    buffer.append(" totalSize: ");
    buffer.append(Long.toString(totalSize));
    buffer.append(" averageSize: ");
    buffer.append(Double.toString(getAverageSize()));
    buffer.append(" averageTimeExMinMax: ");
    buffer.append(Double.toString(getAveragePerSecondExcludingMinMax()));
    buffer.append(" averagePerSecond: ");
    buffer.append(Double.toString(getAveragePerSecond()));
    buffer.append(" averagePerSecondExMinMax: ");
    buffer.append(Double.toString(getAveragePerSecondExcludingMinMax()));
    super.appendFieldDescription(buffer);
  }
}
origin: org.apache.activemq/activemq-broker

/**
 * @return the average size of a message (bytes)
 */
@Override
public long getAverageMessageSize() {
  // we are okay with the size without decimals so cast to long
  return (long) destination.getDestinationStatistics().getMessageSize().getAverageSize();
}
origin: org.apache.activemq/activemq-all

/**
 * @return the average size of a message (bytes)
 */
@Override
public long getAverageMessageSize() {
  // we are okay with the size without decimals so cast to long
  return (long) destination.getDestinationStatistics().getMessageSize().getAverageSize();
}
origin: org.apache.activemq/activemq-broker

/**
 * @return the average size of a message (bytes)
 */
public double getAverageMessageSize() {
  return destination.getDestinationStatistics().getMessageSize().getAverageSize();
}
origin: org.apache.activemq/activemq-osgi

/**
 * @return the average size of a message (bytes)
 */
@Override
public long getAverageMessageSize() {
  // we are okay with the size without decimals so cast to long
  return (long) destination.getDestinationStatistics().getMessageSize().getAverageSize();
}
origin: org.apache.activemq/activemq-all

/**
 * @return the average size of a message (bytes)
 */
public double getAverageMessageSize() {
  return destination.getDestinationStatistics().getMessageSize().getAverageSize();
}
origin: org.apache.activemq/activemq-osgi

/**
 * @return the average size of a message (bytes)
 */
public double getAverageMessageSize() {
  return destination.getDestinationStatistics().getMessageSize().getAverageSize();
}
origin: org.apache.activemq/activemq-osgi

/**
 * @return the average size of a message (bytes)
 */
@Override
public long getAverageMessageSize() {
  // we are okay with the size without decimals so cast to long
  return (long) safeGetBroker().getDestinationStatistics().getMessageSize().getAverageSize();
}
origin: org.apache.activemq/activemq-all

/**
 * @return the average size of a message (bytes)
 */
@Override
public long getAverageMessageSize() {
  // we are okay with the size without decimals so cast to long
  return (long) safeGetBroker().getDestinationStatistics().getMessageSize().getAverageSize();
}
origin: org.apache.activemq/activemq-broker

/**
 * @return the average size of a message (bytes)
 */
@Override
public long getAverageMessageSize() {
  // we are okay with the size without decimals so cast to long
  return (long) safeGetBroker().getDestinationStatistics().getMessageSize().getAverageSize();
}
org.apache.activemq.managementSizeStatisticImplgetAverageSize

Popular methods of SizeStatisticImpl

  • addSize
  • <init>
  • getMaxSize
  • getMinSize
  • getTotalSize
  • reset
  • setEnabled
  • setTotalSize
    Reset the total size to the new value
  • getAveragePerSecond
  • getAveragePerSecondExcludingMinMax
  • getAverageSizeExcludingMinMax
  • isDoReset
  • getAverageSizeExcludingMinMax,
  • isDoReset,
  • setParent,
  • updateSampleTime,
  • getCount,
  • setCount,
  • setMaxSize,
  • setMinSize

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • notifyDataSetChanged (ArrayAdapter)
  • setRequestProperty (URLConnection)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JComboBox (javax.swing)
  • Github Copilot alternatives
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