|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<HistogramMetric.SampleType>
com.yammer.metrics.core.HistogramMetric.SampleType
public static enum HistogramMetric.SampleType
The type of sampling the histogram should be performing.
| Enum Constant Summary | |
|---|---|
BIASED
Uses an exponentially decaying sample of 1028 elements, which offers a 99.9% confidence level with a 5% margin of error assuming a normal distribution, and an alpha factor of 0.015, which heavily biases the sample to the past 5 minutes of measurements. |
|
UNIFORM
Uses a uniform sample of 1028 elements, which offers a 99.9% confidence level with a 5% margin of error assuming a normal distribution. |
|
| Method Summary | |
|---|---|
abstract Sample |
newSample()
|
static HistogramMetric.SampleType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static HistogramMetric.SampleType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final HistogramMetric.SampleType UNIFORM
public static final HistogramMetric.SampleType BIASED
| Method Detail |
|---|
public static HistogramMetric.SampleType[] values()
for (HistogramMetric.SampleType c : HistogramMetric.SampleType.values()) System.out.println(c);
public static HistogramMetric.SampleType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic abstract Sample newSample()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||