Top Fields Constructors Methods
org.glassfish.external.statistics.impl

public final Class StatsImpl

extends Object
implements Stats
Class Inheritance
All Implemented Interfaces
org.glassfish.external.statistics.Stats
Imports
org.glassfish.external.statistics.Stats, .Statistic, java.util.ArrayList

Author
Jennifer Chou

Field Summary

Modifier and TypeField and Description
private final StatisticImpl[]

Constructor Summary

AccessConstructor and Description
protected
StatsImpl(StatisticImpl[] statisticArray)

Method Summary

Modifier and TypeMethod and Description
public synchronized Statistic
getStatistic(String statisticName)

Implements org.glassfish.external.statistics.Stats.getStatistic.

Get a Statistic by name.

public synchronized String[]
getStatisticNames()

Implements org.glassfish.external.statistics.Stats.getStatisticNames.

Returns an array of Strings which are the names of the attributes from the specific Stats submodel that this object supports.

public synchronized Statistic[]
getStatistics()

Implements org.glassfish.external.statistics.Stats.getStatistics.

Returns an array containing all of the Statistic objects supported by this Stats object.

public synchronized void
reset()

Call reset on all of the Statistic objects contained by this Stats object

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

statArrayback to summary
private final StatisticImpl[] statArray

Constructor Detail

StatsImplback to summary
protected StatsImpl(StatisticImpl[] statisticArray)

Method Detail

getStatisticback to summary
public synchronized Statistic getStatistic(String statisticName)

Implements org.glassfish.external.statistics.Stats.getStatistic.

Doc from org.glassfish.external.statistics.Stats.getStatistic.

Get a Statistic by name.

getStatisticNamesback to summary
public synchronized String[] getStatisticNames()

Implements org.glassfish.external.statistics.Stats.getStatisticNames.

Doc from org.glassfish.external.statistics.Stats.getStatisticNames.

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.

getStatisticsback to summary
public synchronized Statistic[] getStatistics()

Implements org.glassfish.external.statistics.Stats.getStatistics.

Doc from org.glassfish.external.statistics.Stats.getStatistics.

Returns an array containing all of the Statistic objects supported by this Stats object.

resetback to summary
public synchronized void reset()

Call reset on all of the Statistic objects contained by this Stats object