com.sleepycat.utilint
Class Latency

java.lang.Object
  extended by com.sleepycat.utilint.Latency
All Implemented Interfaces:
Serializable

public class Latency
extends Object
implements Serializable

A struct holding the min, max, avg, 95th, and 99th percentile measurements for the collection of values held in a LatencyStat.

See Also:
Serialized Form

Constructor Summary
Latency(int maxTrackedLatencyMillis, int minMillis, int maxMillis, float avg, int totalOps, int percent95, int percent99, int opsOverflow)
           
 
Method Summary
 int get95thPercent()
           
 int get99thPercent()
           
 float getAvg()
           
 int getMax()
           
 int getMaxTrackedLatencyMillis()
           
 int getMin()
           
 int getOpsOverflow()
           
 int getTotalOps()
           
 void rollup(Latency other)
          Add the measurements from "other" and recalculate the min, max, and average values.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Latency

public Latency(int maxTrackedLatencyMillis,
               int minMillis,
               int maxMillis,
               float avg,
               int totalOps,
               int percent95,
               int percent99,
               int opsOverflow)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getTotalOps

public int getTotalOps()
Returns:
the number of operations recorded by this stat.

getOpsOverflow

public int getOpsOverflow()
Returns:
the number of operations which exceed the max expected latency

getMaxTrackedLatencyMillis

public int getMaxTrackedLatencyMillis()
Returns:
the max expected latency for this kind of operation

getMin

public int getMin()
Returns:
the fastest latency tracked

getMax

public int getMax()
Returns:
the slowest latency tracked

getAvg

public float getAvg()
Returns:
the average latency tracked

get95thPercent

public int get95thPercent()
Returns:
the 95th percentile latency tracked by the histogram

get99thPercent

public int get99thPercent()
Returns:
the 99th percentile latency tracked by the histogram

rollup

public void rollup(Latency other)
Add the measurements from "other" and recalculate the min, max, and average values. The 95th and 99th percentile are not recalculated, because the histogram from LatencyStatis not available, and those values can't be generated.



Copyright (c) 2004-2012 Oracle. All rights reserved.