public interface StatisticDescriptor extends java.lang.Comparable<StatisticDescriptor>
StatisticsType.
To get an instance of this interface use an instance of
StatisticsFactory.
StatisticDescriptors are naturally ordered by their name.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Returns a description of this statistic
|
int |
getId()
Returns the id of this statistic in a
statistics type. |
java.lang.String |
getName()
Returns the name of this statistic
|
java.lang.Class<?> |
getType()
Returns the type of this statistic
|
java.lang.String |
getUnit()
Returns the unit in which this statistic is measured
|
boolean |
isCounter()
Returns true if this statistic is a counter; false if its a gauge.
|
boolean |
isLargerBetter()
Returns true if a larger statistic value indicates better performance.
|
int getId()
statistics type. The id is initialized when its statistics
type is created.java.lang.IllegalStateException - The id has not been initialized yetjava.lang.String getName()
java.lang.String getDescription()
java.lang.Class<?> getType()
boolean isCounter()
boolean isLargerBetter()
java.lang.String getUnit()