Class BKStats


  • public class BKStats
    extends java.lang.Object
    Bookie Server 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 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