com.netflix.stats.distribution
Interface DataDistributionMBean

All Superinterfaces:
DistributionMBean
All Known Implementing Classes:
DataDistribution

public interface DataDistributionMBean
extends DistributionMBean

Abstract MBean interface for objects that hold information about a distribution of (double) values. The information includes basic statistics (count, mean, min, max) as well as information about the percentile values for some number of percent values.

This interface supports the standard MBean management interface, so implementing classes will support JMX monitoring.


Method Summary
 double[] getPercentiles()
          Gets the array of known percentile values.
 double[] getPercents()
          Gets the array of known percentile percents.
 long getSampleIntervalMillis()
          Gets the length of time over which the data was collected, in milliseconds.
 int getSampleSize()
          Gets the number of values used to compute the percentile values.
 java.lang.String getTimestamp()
          Gets a String representation of the time when this data was produced.
 long getTimestampMillis()
          Gets the time when this data was produced, in milliseconds since the epoch.
 
Methods inherited from interface com.netflix.stats.distribution.DistributionMBean
clear, getMaximum, getMean, getMinimum, getNumValues, getStdDev, getVariance
 

Method Detail

getTimestamp

java.lang.String getTimestamp()
Gets a String representation of the time when this data was produced.


getTimestampMillis

long getTimestampMillis()
Gets the time when this data was produced, in milliseconds since the epoch.


getSampleIntervalMillis

long getSampleIntervalMillis()
Gets the length of time over which the data was collected, in milliseconds.


getSampleSize

int getSampleSize()
Gets the number of values used to compute the percentile values. This value may be smaller than the value of DistributionMBean.getNumValues() depending on how the percentile values were computed.


getPercents

double[] getPercents()
Gets the array of known percentile percents.


getPercentiles

double[] getPercentiles()
Gets the array of known percentile values.