public class StatisticsCollector extends Object
| Constructor and Description |
|---|
StatisticsCollector() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public void collect(StatisticsRecord statisticsRecord)
statisticsRecord - statistics record instancepublic boolean contains(StatisticsRecord statisticsRecord)
statisticsRecord - statisticsRecord statistics record instancepublic void clearStatistics()
public List<StatisticsRecord> getStatisticsRecords()
public List<StatisticsRecord> getAndClearStatisticsRecords()
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.