Class UniformTimeSimpleSnapshot
- java.lang.Object
-
- org.glassfish.jersey.server.internal.monitoring.core.AbstractTimeSnapshot
-
- org.glassfish.jersey.server.internal.monitoring.UniformTimeSimpleSnapshot
-
- All Implemented Interfaces:
UniformTimeSnapshot
class UniformTimeSimpleSnapshot extends AbstractTimeSnapshot
A statistical snapshot of aUniformTimeSimpleSnapshot.- See Also:
- https://github.com/dropwizard/metrics
-
-
Constructor Summary
Constructors Constructor Description UniformTimeSimpleSnapshot(long max, long min, double mean, long count, long timeInterval, java.util.concurrent.TimeUnit timeIntervalUnit)Constructs the snapshot which simply returns the provided data as arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetMax()doublegetMean()longgetMin()longsize()Returns the number of values in the snapshot.-
Methods inherited from class org.glassfish.jersey.server.internal.monitoring.core.AbstractTimeSnapshot
getRate, getTimeInterval
-
-
-
-
Constructor Detail
-
UniformTimeSimpleSnapshot
public UniformTimeSimpleSnapshot(long max, long min, double mean, long count, long timeInterval, java.util.concurrent.TimeUnit timeIntervalUnit)Constructs the snapshot which simply returns the provided data as arguments.- Parameters:
max- The maximum.min- The minimum.mean- The mean.count- The total count.timeInterval- The time interval of this snapshot.timeIntervalUnit- The time interval unit.
-
-
Method Detail
-
size
public long size()
Description copied from interface:UniformTimeSnapshotReturns the number of values in the snapshot.- Returns:
- the number of values
-
getMax
public long getMax()
- Returns:
- The maximum value in this snapshot
-
getMin
public long getMin()
- Returns:
- The minimum value in this snapshot
-
getMean
public double getMean()
- Returns:
- The mean of the values in this snapshot
-
-