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
- Author:
- Sreenivas Munnangi
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
StatisticImpl
(String name, String unit, String desc) protected
StatisticImpl
(String name, String unit, String desc, long start_time, long sample_time) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkMethod
(Method method) A human-readable description of the Statistic.long
The 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.long
The 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 boolean
isValidString
(String str) void
reset()
toString()
-
Field Details
-
sampleTime
protected long sampleTime -
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
Description copied from interface:Statistic
The name of this Statistic. -
getDescription
Description copied from interface:Statistic
A human-readable description of the Statistic.- Specified by:
getDescription
in interfaceStatistic
-
getUnit
Description copied from interface:Statistic
The unit of measurement for this Statistic. Valid values for TimeStatistic measurements are "HOUR", "MINUTE", "SECOND", "MILLISECOND", "MICROSECOND" and "NANOSECOND". -
getLastSampleTime
public long getLastSampleTime()Description copied from interface:Statistic
The 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:
getLastSampleTime
in interfaceStatistic
-
getStartTime
public long getStartTime()Description copied from interface:Statistic
The 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:
getStartTime
in interfaceStatistic
-
reset
public void reset() -
toString
-
isValidString
-
checkMethod
-