org.apache.synapse.aspects.statistics.view
Class Statistics
java.lang.Object
org.apache.synapse.aspects.statistics.view.Statistics
public class Statistics
- extends Object
The statistics data structure
ALL
public static final String ALL
- See Also:
- Constant Field Values
Statistics
public Statistics(String id)
update
public void update(long currentProcessingTime,
boolean isFault)
- Update the statistics
- Parameters:
currentProcessingTime
- - The processing end timeisFault
- - A Boolean value that indicate whether fault has occurred or not
getMaxProcessingTime
public long getMaxProcessingTime()
- Returns:
- Returns the Maximum processing time
getAvgProcessingTime
public double getAvgProcessingTime()
- Returns:
- Returns the Average processing time
getMinProcessingTime
public long getMinProcessingTime()
- Returns:
- Returns the minimum processing time
getFaultCount
public int getFaultCount()
- Returns:
- Returns the fault count
getCount
public int getCount()
- Returns:
- Returns the total count that represents number of access in a one way flow
getId
public String getId()
setId
public void setId(String id)
getErrorLogs
public List<ErrorLog> getErrorLogs()
addErrorLog
public void addErrorLog(ErrorLog errorLog)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.