Class BKStats

java.lang.Object
org.apache.bookkeeper.proto.BKStats

public class BKStats extends Object
Bookie Server Stats.
  • Field Details

  • Method Details

    • 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 type
      stat - 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