org.rimudb.statistics
Class StatisticCollector

java.lang.Object
  extended by org.rimudb.statistics.StatisticCollector

public class StatisticCollector
extends java.lang.Object


Method Summary
 void clear()
          Clear all the statistics
 int createStatistic(java.lang.Object statisticData)
           
 boolean exceedsThreshold(int statID, int threshold)
           
 java.lang.String formatStatistics(int statID)
           
 java.lang.String formatStatistics(int statID, StatisticFormatter formatter)
           
static StatisticCollector getInstance()
          Return the instance
 void logEvent(int statID, java.lang.String eventName)
           
 void removeID(int statID)
           
 int size()
          Return the number of statistic IDs in the Collector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static StatisticCollector getInstance()
Return the instance

Returns:
StatisticCollector

createStatistic

public int createStatistic(java.lang.Object statisticData)

logEvent

public void logEvent(int statID,
                     java.lang.String eventName)

formatStatistics

public java.lang.String formatStatistics(int statID)
Parameters:
statID -
Returns:
String

formatStatistics

public java.lang.String formatStatistics(int statID,
                                         StatisticFormatter formatter)
Parameters:
statID -
Returns:
String

removeID

public void removeID(int statID)
Parameters:
statID -

clear

public void clear()
Clear all the statistics


exceedsThreshold

public boolean exceedsThreshold(int statID,
                                int threshold)

size

public int size()
Return the number of statistic IDs in the Collector

Returns:
int


Copyright © 2008-2011 Simon Ritchie. All Rights Reserved.