VMware GemFire Java API Reference
Package org.apache.geode
Interface StatisticsType
-
@Immutable public interface StatisticsType
Used to describe a logical collection of statistics. These descriptions are used to create an instance ofStatistics.To get an instance of this interface use an instance of
StatisticsFactory.- Since:
- GemFire 3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetDescription()Returns a description of this statistics typejava.lang.StringgetName()Returns the name of this statistics typeStatisticDescriptor[]getStatistics()Returns descriptions of the statistics that this statistics type gathers togetherStatisticDescriptornameToDescriptor(java.lang.String name)Returns the descriptor of the statistic with the given name in this statistics instance.intnameToId(java.lang.String name)Returns the id of the statistic with the given name in this statistics instance.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Returns the name of this statistics type- Returns:
- the name of this statistics type
-
getDescription
java.lang.String getDescription()
Returns a description of this statistics type- Returns:
- a description of this statistics type
-
getStatistics
StatisticDescriptor[] getStatistics()
Returns descriptions of the statistics that this statistics type gathers together- Returns:
- an array of descriptions of the statistics that this statistics type gathers together
-
nameToId
int nameToId(java.lang.String name)
Returns the id of the statistic with the given name in this statistics instance.- Parameters:
name- the name of a statistic- Returns:
- the id of the statistic with the given name in this statistics instance
- Throws:
java.lang.IllegalArgumentException- No statistic namednameexists in this statistics instance.
-
nameToDescriptor
StatisticDescriptor nameToDescriptor(java.lang.String name)
Returns the descriptor of the statistic with the given name in this statistics instance.- Parameters:
name- the name of a statistic- Returns:
- the descriptor of the statistic with the given name in this statistics instance
- Throws:
java.lang.IllegalArgumentException- No statistic namednameexists in this statistics instance.
-
-