public final class StatsConfig
extends java.lang.Object
StatsTimer
By default we publish count (number of times the timer was executed), totalTime, and
95.0, and 99.0 percentiles.
The size for the buffer used to store samples is controlled using the sampleSize field,
and the frequency
at which stats are computed is controlled with the computeFrequencyMillis option.
By default these are
set to 100,000 entries in the buffer, and computation at 60,000 ms (1 minute) intervals.Modifier and Type | Class and Description |
---|---|
static class |
StatsConfig.Builder
Builder for StatsConfig.
|
Constructor and Description |
---|
StatsConfig(StatsConfig.Builder builder)
Creates a new configuration object for stats gathering.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
long |
getFrequencyMillis()
Get the frequency at which we should update all stats.
|
double[] |
getPercentiles()
Get a copy of the array that holds which percentiles we should compute.
|
boolean |
getPublishCount()
Whether we should publish a 'count' statistic.
|
boolean |
getPublishMax()
Whether we should publish a 'max' statistic.
|
boolean |
getPublishMean()
Whether we should publish an 'avg' statistic.
|
boolean |
getPublishMin()
Whether we should publish a 'min' statistic.
|
boolean |
getPublishStdDev()
Whether we should publish a 'stdDev' statistic.
|
boolean |
getPublishTotal()
Whether we should publish a 'totalTime' statistic.
|
boolean |
getPublishVariance()
Whether we should publish a 'variance' statistic.
|
int |
getSampleSize()
Get the size of the buffer that we should use.
|
int |
hashCode() |
java.lang.String |
toString() |
public StatsConfig(StatsConfig.Builder builder)
public boolean getPublishCount()
public boolean getPublishTotal()
public boolean getPublishMin()
public boolean getPublishMax()
public boolean getPublishMean()
public boolean getPublishVariance()
public boolean getPublishStdDev()
public int getSampleSize()
public long getFrequencyMillis()
public double[] getPercentiles()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object