com.addc.commons.statistcs.collector.IMbAccumulator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of addc-statistics Show documentation
Show all versions of addc-statistics Show documentation
The addc-statistics library supplies classes for collecting statistics including counters, timers and accumulators and exposing these
as MBeans.
package com.addc.commons.statistcs.collector;
/**
* The IMbAccumulator interface defines the MBean interface for {@link Accumulator}s.
*/
public interface IMbAccumulator {
/**
* @return The name of this Accumulator
*/
String getName();
/**
* @return The number events that were timed
*/
long getEventCount();
/**
* Get the total accumulated as bytes/kBytes/MBytes
* @return the total accumulated as bytes/kBytes/MBytes
*/
String getTotal();
/**
* Get the average size of the events as bytes/kBytes/MBytes
* @return Get the average size of the events as bytes/kBytes/MBytes
*/
String getAverage();
}