public final class StatisticsManagerImpl extends Object implements StatisticsManager
Constructor and Description |
---|
StatisticsManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
clearAll() |
protected Statistic |
getStatistic(StatisticType statisticType) |
Set<StatisticEntry> |
getStatisticEntries(StatisticType statisticType) |
Set<Statistic> |
getStatistics() |
Set<StatisticType> |
getStatisticTypes() |
long |
getStatisticValue(StatisticType statisticType) |
long |
getStatisticValue(StatisticType statisticType,
Object entryKey) |
Statistic |
increment(StatisticType statisticType) |
Statistic |
increment(StatisticType statisticType,
long value) |
Statistic |
increment(StatisticType statisticType,
Object statisticEntryKey) |
protected Statistic |
increment(StatisticType statisticType,
Object statisticEntryKey,
long value) |
boolean |
isStatisticsEnabled() |
void |
logStatistics() |
void |
setStatisticsEnabled(boolean statisticsEnabled) |
public void clearAll()
clearAll
in interface StatisticsManager
public Set<StatisticEntry> getStatisticEntries(StatisticType statisticType)
getStatisticEntries
in interface StatisticsManager
public Set<Statistic> getStatistics()
getStatistics
in interface StatisticsManager
public boolean isStatisticsEnabled()
isStatisticsEnabled
in interface StatisticsManager
public void setStatisticsEnabled(boolean statisticsEnabled)
setStatisticsEnabled
in interface StatisticsManager
public Set<StatisticType> getStatisticTypes()
getStatisticTypes
in interface StatisticsManager
public Statistic increment(StatisticType statisticType)
increment
in interface StatisticsManager
public Statistic increment(StatisticType statisticType, long value)
increment
in interface StatisticsManager
public Statistic increment(StatisticType statisticType, Object statisticEntryKey)
increment
in interface StatisticsManager
protected Statistic increment(StatisticType statisticType, Object statisticEntryKey, long value)
protected Statistic getStatistic(StatisticType statisticType)
public long getStatisticValue(StatisticType statisticType)
getStatisticValue
in interface StatisticsManager
public long getStatisticValue(StatisticType statisticType, Object entryKey)
getStatisticValue
in interface StatisticsManager
public void logStatistics()
logStatistics
in interface StatisticsManager
Copyright © 2005-2014 dozer. All Rights Reserved.