org.dozer.stats
Class StatisticsManagerImpl

java.lang.Object
  extended by org.dozer.stats.StatisticsManagerImpl
All Implemented Interfaces:
StatisticsManager

public final class StatisticsManagerImpl
extends Object
implements StatisticsManager

Internal class that manages the Dozer runtime statistics. Only intended for internal use.

Author:
tierney.matt

Constructor Summary
StatisticsManagerImpl()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsManagerImpl

public StatisticsManagerImpl()
Method Detail

clearAll

public void clearAll()
Specified by:
clearAll in interface StatisticsManager

getStatisticEntries

public Set<StatisticEntry> getStatisticEntries(StatisticType statisticType)
Specified by:
getStatisticEntries in interface StatisticsManager

getStatistics

public Set<Statistic> getStatistics()
Specified by:
getStatistics in interface StatisticsManager

isStatisticsEnabled

public boolean isStatisticsEnabled()
Specified by:
isStatisticsEnabled in interface StatisticsManager

setStatisticsEnabled

public void setStatisticsEnabled(boolean statisticsEnabled)
Specified by:
setStatisticsEnabled in interface StatisticsManager

getStatisticTypes

public Set<StatisticType> getStatisticTypes()
Specified by:
getStatisticTypes in interface StatisticsManager

increment

public Statistic increment(StatisticType statisticType)
Specified by:
increment in interface StatisticsManager

increment

public Statistic increment(StatisticType statisticType,
                           long value)
Specified by:
increment in interface StatisticsManager

increment

public Statistic increment(StatisticType statisticType,
                           Object statisticEntryKey)
Specified by:
increment in interface StatisticsManager

increment

protected Statistic increment(StatisticType statisticType,
                              Object statisticEntryKey,
                              long value)

getStatistic

protected Statistic getStatistic(StatisticType statisticType)

getStatisticValue

public long getStatisticValue(StatisticType statisticType)
Specified by:
getStatisticValue in interface StatisticsManager

getStatisticValue

public long getStatisticValue(StatisticType statisticType,
                              Object entryKey)
Specified by:
getStatisticValue in interface StatisticsManager

logStatistics

public void logStatistics()
Specified by:
logStatistics in interface StatisticsManager


Copyright © 2005-2011 dozer. All Rights Reserved.