public class StatsCollector
extends java.lang.Object
Constructor and Description |
---|
StatsCollector() |
Modifier and Type | Method and 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) |
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()
Copyright © 1998-2020 Red Hat. All Rights Reserved.