Class RpcStats


  • public class RpcStats
    extends java.lang.Object
    Keeps track of stats for sync and async unicasts and multicasts
    Since:
    3.6.8
    Author:
    Bela Ban
    • Field Detail

      • sync_unicasts

        protected final java.util.concurrent.atomic.AtomicInteger sync_unicasts
      • async_unicasts

        protected final java.util.concurrent.atomic.AtomicInteger async_unicasts
      • sync_multicasts

        protected final java.util.concurrent.atomic.AtomicInteger sync_multicasts
      • async_multicasts

        protected final java.util.concurrent.atomic.AtomicInteger async_multicasts
      • sync_anycasts

        protected final java.util.concurrent.atomic.AtomicInteger sync_anycasts
      • async_anycasts

        protected final java.util.concurrent.atomic.AtomicInteger async_anycasts
    • Constructor Detail

      • RpcStats

        public RpcStats​(boolean extended_stats)
    • Method Detail

      • unicasts

        public int unicasts​(boolean sync)
      • multicasts

        public int multicasts​(boolean sync)
      • anycasts

        public int anycasts​(boolean sync)
      • extendedStats

        public boolean extendedStats()
      • extendedStats

        public RpcStats extendedStats​(boolean f)
      • reset

        public void reset()
      • addAnycast

        public void addAnycast​(boolean sync,
                               long time,
                               java.util.Collection<Address> dests)
      • retainAll

        public void retainAll​(java.util.Collection<Address> members)
      • printOrderByDest

        public java.lang.String printOrderByDest()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • update

        protected void update​(RpcStats.Type type,
                              boolean sync)
      • addToResults

        protected void addToResults​(Address dest,
                                    boolean sync,
                                    long time)