org.apache.synapse.aspects.statistics
Class StatisticsCollector

java.lang.Object
  extended by org.apache.synapse.aspects.statistics.StatisticsCollector

public class StatisticsCollector
extends Object

Collects statistics and provides those collected data


Constructor Summary
StatisticsCollector()
           
 
Method Summary
 void clearStatistics()
          Clear all the existing statistics
 void collect(StatisticsRecord statisticsRecord)
          Registering a statistics record
 boolean contains(StatisticsRecord statisticsRecord)
          Check whether given statistics record has already been registered
 List<StatisticsRecord> getAndClearStatisticsRecords()
          Return and clear collected statistics records
 List<StatisticsRecord> getStatisticsRecords()
          Returns All collected statistics records
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsCollector

public StatisticsCollector()
Method Detail

collect

public void collect(StatisticsRecord statisticsRecord)
Registering a statistics record

Parameters:
statisticsRecord - statistics record instance

contains

public boolean contains(StatisticsRecord statisticsRecord)
Check whether given statistics record has already been registered

Parameters:
statisticsRecord - statisticsRecord statistics record instance
Returns:
True if there

clearStatistics

public void clearStatistics()
Clear all the existing statistics


getStatisticsRecords

public List<StatisticsRecord> getStatisticsRecords()
Returns All collected statistics records

Returns:
A list of StatisticsRecord

getAndClearStatisticsRecords

public List<StatisticsRecord> getAndClearStatisticsRecords()
Return and clear collected statistics records

Returns:
A list of StatisticsRecord


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.