Class StatsCollector


  • public class StatsCollector
    extends java.lang.Object
    This collects the stats and some profiling information
    Since:
    3.1
    Author:
    Pedro Ruivo
    • Constructor Detail

      • StatsCollector

        public StatsCollector()
    • Method Detail

      • setStatsEnabled

        public void setStatsEnabled​(boolean statsEnabled)
      • clearStats

        public void clearStats()
      • now

        public long now()
      • addProposeSequenceNumberDuration

        public void addProposeSequenceNumberDuration​(long durationValue,
                                                     boolean isLastProposeMessage)
      • addFinalSequenceNumberDuration

        public void addFinalSequenceNumberDuration​(long duration)
      • addDataMessageDuration

        public void addDataMessageDuration​(long duration)
      • addAnycastSentDuration

        public void addAnycastSentDuration​(long duration,
                                           int numberOfUnicasts)
      • incrementMessageDeliver

        public void incrementMessageDeliver()
      • getAvgDataMessageReceivedDuration

        public double getAvgDataMessageReceivedDuration()
      • getAvgAnycastSentDuration

        public double getAvgAnycastSentDuration()
      • getAvgProposeMesageReceivedDuration

        public double getAvgProposeMesageReceivedDuration()
      • getAvgLastProposeMessageReceivedDuration

        public double getAvgLastProposeMessageReceivedDuration()
      • getAvgFinalMessageReceivedDuration

        public double getAvgFinalMessageReceivedDuration()
      • getNumberOfAnycastMessagesSent

        public int getNumberOfAnycastMessagesSent()
      • getAnycastDelivered

        public int getAnycastDelivered()
      • getNumberOfProposeMessagesReceived

        public int getNumberOfProposeMessagesReceived()
      • getNumberOfProposeMessagesSent

        public int getNumberOfProposeMessagesSent()
      • getNumberOfFinalAnycastsSent

        public int getNumberOfFinalAnycastsSent()
      • getNumberOfFinalMessagesDelivered

        public int getNumberOfFinalMessagesDelivered()
      • getAvgNumberOfUnicastSentPerAnycast

        public double getAvgNumberOfUnicastSentPerAnycast()