Package org.apache.bookkeeper.proto
Class BKStats
java.lang.Object
org.apache.bookkeeper.proto.BKStats
Bookie Server Stats.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA read view of stats, also used in CompositeViewData to expose to JMX.static classOperation Statistics. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int(package private) BKStats.OpStats[]static final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidCopy stats from other stats.Diff with base stats.static BKStatsgetOpStats(int type) Stats of operations.voidsetOpStats(int type, BKStats.OpStats stat) Set stats of a specified operation.
-
Field Details
-
STATS_ADD
public static final int STATS_ADD- See Also:
-
STATS_READ
public static final int STATS_READ- See Also:
-
STATS_UNKNOWN
public static final int STATS_UNKNOWN- See Also:
-
NUM_STATS
public static final int NUM_STATS- See Also:
-
stats
BKStats.OpStats[] stats
-
-
Method Details
-
getInstance
-
getOpStats
Stats of operations.- Returns:
- op stats
-
setOpStats
Set stats of a specified operation.- Parameters:
type- operation typestat- operation stats
-
diff
Diff with base stats.- Parameters:
base- base stats- Returns:
- diff stats
-
copyOf
Copy stats from other stats.- Parameters:
other- other stats
-