FileDocCategorySizeDatePackage
AbstractStatsImpl.javaAPI DocGlassfish v2 API3754Fri May 04 22:35:18 BST 2007com.sun.enterprise.resource.monitor

AbstractStatsImpl

public abstract class AbstractStatsImpl extends Object
author
Sivakumar Thyagarajan

Fields Summary
protected com.sun.enterprise.admin.monitor.stats.GenericStatsImpl
gsImpl
Constructors Summary
Methods Summary
public javax.management.j2ee.statistics.StatisticgetStatistic(java.lang.String str)
This is an implementation of the mandatory JSR77 Stats interface method. Here we simply delegate it to the GenericStatsImpl object that we have

        return gsImpl.getStatistic( str );
    
public java.lang.String[]getStatisticNames()
This is an implementation of the mandatory JSR77 Stats interface method. Here we simply delegate it to the GenericStatsImpl object that we have

        return gsImpl.getStatisticNames();
    
public javax.management.j2ee.statistics.Statistic[]getStatistics()
This is an implementation of the mandatory JSR77 Stats interface method. Here we simply delegate it to the GenericStatsImpl object that we have

        return gsImpl.getStatistics();
    
protected javax.management.j2ee.statistics.RangeStatisticgetUpdatedRangeStatistic(javax.management.j2ee.statistics.RangeStatistic originalStat, long currentValue, long maxValue, long minValue)
A utility method to update a range statistic

       return new RangeStatisticImpl(currentValue, maxValue, minValue, 
           originalStat.getName(), originalStat.getUnit(), 
           originalStat.getDescription(), originalStat.getStartTime(),
           System.currentTimeMillis());