org.jgroups.protocols.tom
Class StatsCollector
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatsCollector
public StatsCollector()
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.