Package 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
-
-
Constructor Summary
Constructors Constructor Description StatsCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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()
-
-