public class StatsCollector
extends java.lang.Object
构造器和说明 |
---|
StatsCollector() |
限定符和类型 | 方法和说明 |
---|---|
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) |
public void setStatsEnabled(boolean statsEnabled)
public void clearStats()
public long now()
public void addProposeSequenceNumberDuration(long durationValue, boolean isLastProposeMessage)
public void addFinalSequenceNumberDuration(long duration)
public void addDataMessageDuration(long duration)
public void addAnycastSentDuration(long duration, int numberOfUnicasts)
public void incrementMessageDeliver()
public double getAvgDataMessageReceivedDuration()
public double getAvgAnycastSentDuration()
public double getAvgProposeMesageReceivedDuration()
public double getAvgLastProposeMessageReceivedDuration()
public double getAvgFinalMessageReceivedDuration()
public int getNumberOfAnycastMessagesSent()
public int getAnycastDelivered()
public int getNumberOfProposeMessagesReceived()
public int getNumberOfProposeMessagesSent()
public int getNumberOfFinalAnycastsSent()
public int getNumberOfFinalMessagesDelivered()
public double getAvgNumberOfUnicastSentPerAnycast()