Package org.apache.bookkeeper.proto
Class BKStats
- java.lang.Object
-
- org.apache.bookkeeper.proto.BKStats
-
public class BKStats extends java.lang.Object
Bookie Server Stats.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BKStats.OpStatData
A read view of stats, also used in CompositeViewData to expose to JMX.static class
BKStats.OpStats
Operation Statistics.
-
Field Summary
Fields Modifier and Type Field Description static int
NUM_STATS
(package private) BKStats.OpStats[]
stats
static int
STATS_ADD
static int
STATS_READ
static int
STATS_UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyOf(BKStats other)
Copy stats from other stats.BKStats
diff(BKStats base)
Diff with base stats.static BKStats
getInstance()
BKStats.OpStats
getOpStats(int type)
Stats of operations.void
setOpStats(int type, BKStats.OpStats stat)
Set stats of a specified operation.
-
-
-
Field Detail
-
STATS_ADD
public static final int STATS_ADD
- See Also:
- Constant Field Values
-
STATS_READ
public static final int STATS_READ
- See Also:
- Constant Field Values
-
STATS_UNKNOWN
public static final int STATS_UNKNOWN
- See Also:
- Constant Field Values
-
NUM_STATS
public static final int NUM_STATS
- See Also:
- Constant Field Values
-
stats
BKStats.OpStats[] stats
-
-
Method Detail
-
getInstance
public static BKStats getInstance()
-
getOpStats
public BKStats.OpStats getOpStats(int type)
Stats of operations.- Returns:
- op stats
-
setOpStats
public void setOpStats(int type, BKStats.OpStats stat)
Set stats of a specified operation.- Parameters:
type
- operation typestat
- operation stats
-
diff
public BKStats diff(BKStats base)
Diff with base stats.- Parameters:
base
- base stats- Returns:
- diff stats
-
copyOf
public void copyOf(BKStats other)
Copy stats from other stats.- Parameters:
other
- other stats
-
-