org.glassfish.external.statistics.impl
Class StringStatisticImpl

java.lang.Object
  extended by org.glassfish.external.statistics.impl.StatisticImpl
      extended by org.glassfish.external.statistics.impl.StringStatisticImpl
All Implemented Interfaces:
InvocationHandler, Statistic, StringStatistic

public final class StringStatisticImpl
extends StatisticImpl
implements StringStatistic, InvocationHandler

Author:
Sreenivas Munnangi

Field Summary
 
Fields inherited from class org.glassfish.external.statistics.impl.StatisticImpl
LAST_SAMPLE_TIME, NEWLINE, sampleTime, START_TIME, statMap, UNIT_COUNT, UNIT_MICROSECOND, UNIT_MILLISECOND, UNIT_NANOSECOND, UNIT_SECOND
 
Constructor Summary
StringStatisticImpl(String name, String unit, String desc)
           
StringStatisticImpl(String str, String name, String unit, String desc, long sampleTime, long startTime)
           
 
Method Summary
 String getCurrent()
          Returns the String value of the statistic
 Map getStaticAsMap()
           
 StringStatistic getStatistic()
           
 Object invoke(Object proxy, Method m, Object[] args)
           
 void reset()
           
 void setCurrent(String str)
           
 String toString()
           
 
Methods inherited from class org.glassfish.external.statistics.impl.StatisticImpl
checkMethod, getDescription, getLastSampleTime, getName, getStartTime, getUnit, isValidString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.glassfish.external.statistics.Statistic
getDescription, getLastSampleTime, getName, getStartTime, getUnit
 

Constructor Detail

StringStatisticImpl

public StringStatisticImpl(String str,
                           String name,
                           String unit,
                           String desc,
                           long sampleTime,
                           long startTime)

StringStatisticImpl

public StringStatisticImpl(String name,
                           String unit,
                           String desc)
Method Detail

getStatistic

public StringStatistic getStatistic()

getStaticAsMap

public Map getStaticAsMap()
Overrides:
getStaticAsMap in class StatisticImpl

toString

public String toString()
Overrides:
toString in class StatisticImpl

getCurrent

public String getCurrent()
Description copied from interface: StringStatistic
Returns the String value of the statistic

Specified by:
getCurrent in interface StringStatistic

setCurrent

public void setCurrent(String str)

reset

public void reset()
Overrides:
reset in class StatisticImpl

invoke

public Object invoke(Object proxy,
                     Method m,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.