Package org.apache.bookkeeper.proto
Class BKStats.OpStats
- java.lang.Object
-
- org.apache.bookkeeper.proto.BKStats.OpStats
-
- Enclosing class:
- BKStats
public static class BKStats.OpStats extends java.lang.Object
Operation Statistics.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) long[]
latencyBuckets
(package private) long
maxLatency
(package private) long
minLatency
(package private) static int
NUM_BUCKETS
(package private) long
numFailedOps
(package private) long
numSuccessOps
(package private) double
totalLatency
-
Constructor Summary
Constructors Constructor Description OpStats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyOf(BKStats.OpStats other)
Copy stats from other OpStats.BKStats.OpStats
diff(BKStats.OpStats base)
Diff with base opstats.void
incrementFailedOps()
Increment number of failed operations.BKStats.OpStatData
toOpStatData()
void
updateLatency(long latency)
Update Latency.
-
-
-
Field Detail
-
NUM_BUCKETS
static final int NUM_BUCKETS
- See Also:
- Constant Field Values
-
maxLatency
long maxLatency
-
minLatency
long minLatency
-
totalLatency
double totalLatency
-
numSuccessOps
long numSuccessOps
-
numFailedOps
long numFailedOps
-
latencyBuckets
long[] latencyBuckets
-
-
Method Detail
-
incrementFailedOps
public void incrementFailedOps()
Increment number of failed operations.
-
updateLatency
public void updateLatency(long latency)
Update Latency.
-
toOpStatData
public BKStats.OpStatData toOpStatData()
-
diff
public BKStats.OpStats diff(BKStats.OpStats base)
Diff with base opstats.- Parameters:
base
- base opstats- Returns:
- diff opstats
-
copyOf
public void copyOf(BKStats.OpStats other)
Copy stats from other OpStats.- Parameters:
other
- other op stats
-
-