com.limegroup.gnutella.statistics
Class OutOfBandThroughputStat

java.lang.Object
  extended bycom.limegroup.gnutella.statistics.AbstractStatistic
      extended bycom.limegroup.gnutella.statistics.AdvancedStatistic
          extended bycom.limegroup.gnutella.statistics.OutOfBandThroughputStat
All Implemented Interfaces:
Statistic
Direct Known Subclasses:
OutOfBandThroughputStat.ResponsesRequestedStat

public class OutOfBandThroughputStat
extends com.limegroup.gnutella.statistics.AdvancedStatistic

This class contains a type-safe enumeration of statistics for individual Gnutella messages that have been received from other nodes on the network. Each statistic maintains its own history, all messages received over a specific number of time intervals, etc. This class is specialized to only track messages received from LimeWires.


Nested Class Summary
static class OutOfBandThroughputStat.ResponsesRequestedStat
          Private class for keeping track of the number of responses requested via the out-of-band protocol.
 
Field Summary
static Statistic RESPONSES_RECEIVED
          Statistic for Gnutella Hits requested over the UDP out-of-band protocol.
static OutOfBandThroughputStat.ResponsesRequestedStat RESPONSES_REQUESTED
          Statistic for Gnutella Hits requested over the UDP out-of-band protocol.
 
Fields inherited from class com.limegroup.gnutella.statistics.AbstractStatistic
_buffer, _current, _fileName, _max, _total, _totalStatsRecorded, STATS_MANAGER
 
Fields inherited from interface com.limegroup.gnutella.statistics.Statistic
HISTORY_LENGTH
 
Method Summary
 void addData(int data)
          Add the specified number to the current recording for this statistic.
 void incrementStat()
          Increments this statistic by one.
 
Methods inherited from class com.limegroup.gnutella.statistics.AbstractStatistic
clearData, getAverage, getMax, getStatHistory, getTotal, initializeBuffer, setWriteStatToFile, storeCurrentStat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESPONSES_REQUESTED

public static final OutOfBandThroughputStat.ResponsesRequestedStat RESPONSES_REQUESTED
Statistic for Gnutella Hits requested over the UDP out-of-band protocol.


RESPONSES_RECEIVED

public static final Statistic RESPONSES_RECEIVED
Statistic for Gnutella Hits requested over the UDP out-of-band protocol.

Method Detail

incrementStat

public void incrementStat()
Description copied from interface: Statistic
Increments this statistic by one.

Specified by:
incrementStat in interface Statistic
Overrides:
incrementStat in class AbstractStatistic

addData

public void addData(int data)
Description copied from interface: Statistic
Add the specified number to the current recording for this statistic. This is the equivalent of calling incrementStat data times.

Specified by:
addData in interface Statistic
Overrides:
addData in class AbstractStatistic