Package org.apache.bookkeeper.proto
Class BKStats
- java.lang.Object
-
- org.apache.bookkeeper.proto.BKStats
-
public class BKStats extends java.lang.ObjectBookie Server Stats.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBKStats.OpStatDataA read view of stats, also used in CompositeViewData to expose to JMX.static classBKStats.OpStatsOperation Statistics.
-
Field Summary
Fields Modifier and Type Field Description static intNUM_STATS(package private) BKStats.OpStats[]statsstatic intSTATS_ADDstatic intSTATS_READstatic intSTATS_UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyOf(BKStats other)Copy stats from other stats.BKStatsdiff(BKStats base)Diff with base stats.static BKStatsgetInstance()BKStats.OpStatsgetOpStats(int type)Stats of operations.voidsetOpStats(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
-
-