public abstract class Snapshot
extends java.lang.Object
Snapshot
.Modifier and Type | Class and Description |
---|---|
static class |
Snapshot.PercentileValue
Represents a percentile and its value at the moment it was sampled from the Snapshot.
|
Constructor and Description |
---|
Snapshot() |
Modifier and Type | Method and Description |
---|---|
abstract void |
dump(java.io.OutputStream output)
Writes the values of the snapshot to the given stream.
|
abstract double |
getMax()
Returns the highest value in the snapshot.
|
abstract double |
getMean()
Returns the arithmetic mean of the values in the snapshot.
|
abstract Snapshot.PercentileValue[] |
percentileValues()
Returns an array of
Snapshot.PercentileValue containing the percentiles and associated values of this
Snapshot at the moment invocation. |
abstract long |
size()
Returns the number of values in the snapshot.
|
public abstract long size()
public abstract double getMax()
public abstract double getMean()
public abstract Snapshot.PercentileValue[] percentileValues()
Snapshot.PercentileValue
containing the percentiles and associated values of this
Snapshot
at the moment invocation.Snapshot.PercentileValue
public abstract void dump(java.io.OutputStream output)
output
- an output stream