com.limegroup.gnutella.statistics
Class StatisticsManager

java.lang.Object
  extended bycom.limegroup.gnutella.statistics.StatisticsManager
All Implemented Interfaces:
java.lang.Runnable

public final class StatisticsManager
extends java.lang.Object
implements java.lang.Runnable

Class for managing statistics recording.


Method Summary
 boolean getRecordAdvancedStats()
          Accessor for whether or not advanced statistics should be recorded.
static StatisticsManager instance()
          Accessor for the StatisticsManager instance.
 void run()
          Stores the accumulated statistics for all messages into their collections of historical data.
 void setRecordAdvancedStats(boolean record)
          Sets whether or not advanced statistics should be recorded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static StatisticsManager instance()
Accessor for the StatisticsManager instance.

Returns:
the StatisticsManager instance

setRecordAdvancedStats

public void setRecordAdvancedStats(boolean record)
Sets whether or not advanced statistics should be recorded.

Parameters:
record - specifies whether or not advanced statistics should be recorded

getRecordAdvancedStats

public boolean getRecordAdvancedStats()
Accessor for whether or not advanced statistics should be recorded.

Returns:
true if advanced statistics should be recorded, false otherwise

run

public void run()
Stores the accumulated statistics for all messages into their collections of historical data.

Specified by:
run in interface java.lang.Runnable