public class Statistics extends Object
Constructor and Description |
---|
Statistics(String id) |
Modifier and Type | Method and Description |
---|---|
void |
addErrorLog(ErrorLog errorLog) |
double |
getAvgProcessingTime() |
int |
getCount() |
List<ErrorLog> |
getErrorLogs() |
int |
getFaultCount() |
String |
getId() |
long |
getMaxProcessingTime() |
long |
getMinProcessingTime() |
void |
setId(String id) |
String |
toString() |
void |
update(long currentProcessingTime,
boolean isFault)
Update the statistics
|
public static final String ALL
public Statistics(String id)
public void update(long currentProcessingTime, boolean isFault)
currentProcessingTime
- - The processing end timeisFault
- - A Boolean value that indicate whether fault has occurred or notpublic long getMaxProcessingTime()
public double getAvgProcessingTime()
public long getMinProcessingTime()
public int getFaultCount()
public int getCount()
public String getId()
public void setId(String id)
public void addErrorLog(ErrorLog errorLog)
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.