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

public final Class StringStatisticImpl

extends StatisticImpl
implements StringStatistic, InvocationHandler
Class Inheritance
All Implemented Interfaces
java.lang.reflect.InvocationHandler, org.glassfish.external.statistics.StringStatistic, org.glassfish.external.statistics.Statistic
Imports
org.glassfish.external.statistics.StringStatistic, java.util.Map, java.lang.reflect.*

Author
Sreenivas Munnangi

Field Summary

Modifier and TypeField and Description
private final String
private final StringStatistic
private volatile String
Inherited from org.glassfish.external.statistics.impl.StatisticImpl:
LAST_SAMPLE_TIMENEWLINEsampleTimeSTART_TIMEstatMapUNIT_COUNTUNIT_MICROSECONDUNIT_MILLISECONDUNIT_NANOSECONDUNIT_SECOND

Constructor Summary

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

public

Method Summary

Modifier and TypeMethod and Description
public String
getCurrent()

Implements org.glassfish.external.statistics.StringStatistic.getCurrent.

Returns the String value of the statistic

public synchronized Map<K, V>
public synchronized StringStatistic
public Object
invoke(Object proxy, Method m, Object[] args)

Implements java.lang.reflect.InvocationHandler.invoke.

Processes a method invocation on a proxy instance and returns the result.

public synchronized void
public void
public synchronized String
toString()

Overrides org.glassfish.external.statistics.impl.StatisticImpl.toString.

Returns a string representation of the object.

Inherited from org.glassfish.external.statistics.impl.StatisticImpl:
checkMethodgetDescriptiongetLastSampleTimegetNamegetStartTimegetUnitisValidString

Field Detail

initStrback to summary
private final String initStr
ssback to summary
private final StringStatistic ss
strback to summary
private volatile String str

Constructor Detail

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

Method Detail

getCurrentback to summary
public String getCurrent()

Implements org.glassfish.external.statistics.StringStatistic.getCurrent.

Doc from org.glassfish.external.statistics.StringStatistic.getCurrent.

Returns the String value of the statistic

getStaticAsMapback to summary
public synchronized Map<K, V> getStaticAsMap()

Overrides org.glassfish.external.statistics.impl.StatisticImpl.getStaticAsMap.

getStatisticback to summary
public synchronized StringStatistic getStatistic()
invokeback to summary
public Object invoke(Object proxy, Method m, Object[] args) throws Throwable

Implements java.lang.reflect.InvocationHandler.invoke.

Doc from java.lang.reflect.InvocationHandler.invoke.

Processes a method invocation on a proxy instance and returns the result. This method will be invoked on an invocation handler when a method is invoked on a proxy instance that it is associated with.

Exceptions
Throwable:
the exception to throw from the method invocation on the proxy instance. The exception's type must be assignable either to any of the exception types declared in the throws clause of the invoked method or to the unchecked exception types java.lang.RuntimeException or java.lang.Error. If a checked exception is thrown by this method that is not assignable to any of the exception types declared in the throws clause of the invoked method, then an UndeclaredThrowableException containing the exception that was thrown by this method will be thrown by the method invocation on the proxy instance.
resetback to summary
public synchronized void reset()

Overrides org.glassfish.external.statistics.impl.StatisticImpl.reset.

Annotations
@Override
setCurrentback to summary
public void setCurrent(String str)
toStringback to summary
public synchronized String toString()

Overrides org.glassfish.external.statistics.impl.StatisticImpl.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.