Class StatisticImpl
java.lang.Object
org.glassfish.external.statistics.impl.StatisticImpl
- All Implemented Interfaces:
Statistic
- Direct Known Subclasses:
AverageRangeStatisticImpl, BoundaryStatisticImpl, BoundedRangeStatisticImpl, CountStatisticImpl, RangeStatisticImpl, StringStatisticImpl, TimeStatisticImpl
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStatisticImpl(String name, String unit, String desc) protectedStatisticImpl(String name, String unit, String desc, long start_time, long sample_time) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckMethod(Method method) A human-readable description of the Statistic.longThe time of the last measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00.getName()The name of this Statistic.longThe time of the first measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00.getUnit()The unit of measurement for this Statistic.protected static booleanisValidString(String str) voidreset()toString()
-
Field Details
-
statisticName
-
statisticUnit
-
statisticDesc
-
sampleTime
protected long sampleTime -
startTime
private long startTime -
UNIT_COUNT
- See Also:
-
UNIT_SECOND
- See Also:
-
UNIT_MILLISECOND
- See Also:
-
UNIT_MICROSECOND
- See Also:
-
UNIT_NANOSECOND
- See Also:
-
START_TIME
- See Also:
-
LAST_SAMPLE_TIME
- See Also:
-
statMap
-
NEWLINE
-
-
Constructor Details
-
StatisticImpl
-
StatisticImpl
-
-
Method Details
-
getStaticAsMap
-
getName
-
getDescription
Description copied from interface:StatisticA human-readable description of the Statistic.- Specified by:
getDescriptionin interfaceStatistic
-
getUnit
-
getLastSampleTime
public long getLastSampleTime()Description copied from interface:StatisticThe time of the last measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00.- Specified by:
getLastSampleTimein interfaceStatistic
-
getStartTime
public long getStartTime()Description copied from interface:StatisticThe time of the first measurement represented as a long, whose value is the number of milliseconds since January 1, 1970, 00:00:00.- Specified by:
getStartTimein interfaceStatistic
-
reset
public void reset() -
toString
-
isValidString
-
checkMethod
-