org.apache.synapse.aspects.statistics.view
Class Statistics

java.lang.Object
  extended by org.apache.synapse.aspects.statistics.view.Statistics

public class Statistics
extends Object

The statistics data structure


Field Summary
static String ALL
           
 
Constructor Summary
Statistics(String id)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALL

public static final String ALL
See Also:
Constant Field Values
Constructor Detail

Statistics

public Statistics(String id)
Method Detail

update

public void update(long currentProcessingTime,
                   boolean isFault)
Update the statistics

Parameters:
currentProcessingTime - - The processing end time
isFault - - 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.