FileDocCategorySizeDatePackage
StatisticFactory.javaAPI DocGlassfish v2 API5596Fri May 04 22:24:20 BST 2007com.sun.enterprise.admin.monitor.stats.spi

StatisticFactory

public class StatisticFactory extends Object

Fields Summary
Constructors Summary
public StatisticFactory()
Creates a new instance of StatisticFactory

    
Methods Summary
public static BoundaryStatisticgetBoundaryStatistic(long lower, long upper, java.lang.String name, java.lang.String unit, java.lang.String desc, long startTime, long sampleTime)
returns an instance of the BoundaryStatistic

return
BoundaryStatistic

        
        return new BoundaryStatisticImpl(lower, upper, name, unit, desc, 
                                         startTime, sampleTime);
    
public static BoundedRangeStatisticgetBoundedRangeStatistic(long curVal, long highMark, long lowMark, long upper, long lower, java.lang.String name, java.lang.String unit, java.lang.String desc, long startTime, long sampleTime)
returns an instance of the BoundedRangeStatistic

return
BoundedRangeStatistic

        
        return new BoundedRangeStatisticImpl(curVal, highMark, lowMark, 
                                             upper, lower, name, unit, 
                                             desc, startTime, sampleTime);
    
public static CountStatisticgetCountStatistic(long countVal, java.lang.String name, java.lang.String unit, java.lang.String desc, long sampleTime, long startTime)
returns an instance of the CountStatistic

return
CountStatistic

                                                       
        return new CountStatisticImpl(countVal, name, unit, desc, 
                                      sampleTime, startTime);
    
public static RangeStatisticgetRangeStatistic(long curVal, long highMark, long lowMark, java.lang.String name, java.lang.String unit, java.lang.String desc, long startTime, long sampleTime)
returns an instance of the RangeStatistic

return
RangeStatistic

        
        return new RangeStatisticImpl(curVal, highMark, lowMark, name, 
                                      unit, desc, startTime, sampleTime);
    
public static TimeStatisticgetTimeStatistic(long counter, long maxTime, long minTime, long totalTime, java.lang.String name, java.lang.String unit, java.lang.String desc, long startTime, long sampleTime)
returns an instance of the TimeStatistic

return
TimeStatistic

                                                     
        return new TimeStatisticImpl(counter, maxTime, minTime, totalTime, 
                                     name, unit, desc, startTime, sampleTime);