Class StatsImpl
- java.lang.Object
-
- org.glassfish.external.statistics.impl.StatsImpl
-
-
Field Summary
Fields Modifier and Type Field Description private StatisticImpl[]
statArray
-
Constructor Summary
Constructors Modifier Constructor Description protected
StatsImpl(StatisticImpl[] statisticArray)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Statistic
getStatistic(java.lang.String statisticName)
Get a Statistic by name.java.lang.String[]
getStatisticNames()
Returns an array of Strings which are the names of the attributes from the specific Stats submodel that this object supports.Statistic[]
getStatistics()
Returns an array containing all of the Statistic objects supported by this Stats object.void
reset()
Call reset on all of the Statistic objects contained by this Stats object
-
-
-
Field Detail
-
statArray
private final StatisticImpl[] statArray
-
-
Constructor Detail
-
StatsImpl
protected StatsImpl(StatisticImpl[] statisticArray)
-
-
Method Detail
-
getStatistic
public Statistic getStatistic(java.lang.String statisticName)
Description copied from interface:Stats
Get a Statistic by name.- Specified by:
getStatistic
in interfaceStats
-
getStatisticNames
public java.lang.String[] getStatisticNames()
Description copied from interface:Stats
Returns an array of Strings which are the names of the attributes from the specific Stats submodel that this object supports. Attributes named in the list must correspond to attributes that will return a Statistic object of the appropriate type which contains valid performance data. The return value of attributes in the Stats submodel that are not included in the statisticNames list must be null. For each name in the statisticNames list there must be one Statistic with the same name in the statistics list.- Specified by:
getStatisticNames
in interfaceStats
-
getStatistics
public Statistic[] getStatistics()
Description copied from interface:Stats
Returns an array containing all of the Statistic objects supported by this Stats object.- Specified by:
getStatistics
in interfaceStats
-
reset
public void reset()
Call reset on all of the Statistic objects contained by this Stats object
-
-