Class AbstractTimeSnapshot
java.lang.Object
org.glassfish.jersey.server.internal.monitoring.core.AbstractTimeSnapshot
- All Implemented Interfaces:
UniformTimeSnapshot
- Direct Known Subclasses:
UniformTimeValuesSnapshot
Base implementation of
UniformTimeSnapshot.- Author:
- Stepan Vavra
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractTimeSnapshot(long timeInterval, TimeUnit timeIntervalUnit) Constructor to be used by subclasses overriding the base abstract uniform time snapshot class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleThe rate of values in this snapshot for one given time unit.longgetTimeInterval(TimeUnit timeUnit) The time interval for which this snapshot was created.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.glassfish.jersey.server.internal.monitoring.core.UniformTimeSnapshot
getMax, getMean, getMin, size
-
Constructor Details
-
AbstractTimeSnapshot
Constructor to be used by subclasses overriding the base abstract uniform time snapshot class.- Parameters:
timeInterval- The time interval of this snapshot.timeIntervalUnit- The time interval unit.
-
-
Method Details
-
getTimeInterval
Description copied from interface:UniformTimeSnapshotThe time interval for which this snapshot was created.- Specified by:
getTimeIntervalin interfaceUniformTimeSnapshot- Parameters:
timeUnit- The time unit in which to return the time interval.- Returns:
- The time interval the snapshot was created at for the given time unit.
-
getRate
Description copied from interface:UniformTimeSnapshotThe rate of values in this snapshot for one given time unit.- Specified by:
getRatein interfaceUniformTimeSnapshot- Parameters:
timeUnit- The time unit at which to get the rate- Returns:
- The rate
-