org.jgroups.protocols.tom
Class StatsCollector

java.lang.Object
  extended by org.jgroups.protocols.tom.StatsCollector

public class StatsCollector
extends java.lang.Object

This collects the stats and some profiling information

Since:
3.1
Author:
Pedro Ruivo

Constructor Summary
StatsCollector()
           
 
Method Summary
 void addAnycastSentDuration(long duration, int numberOfUnicasts)
           
 void addDataMessageDuration(long duration)
           
 void addFinalSequenceNumberDuration(long duration)
           
 void addProposeSequenceNumberDuration(long durationValue, boolean isLastProposeMessage)
           
 void clearStats()
           
 int getAnycastDelivered()
           
 double getAvgAnycastSentDuration()
           
 double getAvgDataMessageReceivedDuration()
           
 double getAvgFinalMessageReceivedDuration()
           
 double getAvgLastProposeMessageReceivedDuration()
           
 double getAvgNumberOfUnicastSentPerAnycast()
           
 double getAvgProposeMesageReceivedDuration()
           
 int getNumberOfAnycastMessagesSent()
           
 int getNumberOfFinalAnycastsSent()
           
 int getNumberOfFinalMessagesDelivered()
           
 int getNumberOfProposeMessagesReceived()
           
 int getNumberOfProposeMessagesSent()
           
 void incrementMessageDeliver()
           
 long now()
           
 void setStatsEnabled(boolean statsEnabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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()


Copyright © 1998-2012 Bela Ban / Red Hat. All Rights Reserved.