com.limegroup.gnutella.statistics
Class HTTPStat

java.lang.Object
  extended bycom.limegroup.gnutella.statistics.AbstractStatistic
      extended bycom.limegroup.gnutella.statistics.AdvancedStatistic
          extended bycom.limegroup.gnutella.statistics.HTTPStat
All Implemented Interfaces:
Statistic

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

This class contains a type-safe enumeration of statistics for HTTP requests. Each statistic maintains its own history, all messages received over a specific number of time intervals.


Field Summary
static Statistic BANNED_REQUESTS
          Statistic for all Banned requests that have been made in this session.
static Statistic CHAT_REQUESTS
          Statistic for all Chat requests that have been made in this session.
static Statistic CLOSED_REQUESTS
          Statistic for all closed requests that have been made in this session.
static Statistic GET_REQUESTS
          Statistic for all HTTP GET requests that have been made in this session.
static Statistic GIV_REQUESTS
          Statistic for all HTTP GIV requests that have been made in this session.
static Statistic GNUTELLA_LIMEWIRE_REQUESTS
          Statistic for all LimeWire requests that have been made in this session.
static Statistic GNUTELLA_REQUESTS
          Statistic for all Gnutella requests that have been made in this session.
static Statistic HEAD_REQUESTS
          Statistic for all HTTP HEAD requests that have been made in this session.
static Statistic HTTP_REQUESTS
          Statistic for all HTTP requests of any type that have been made in this session.
static Statistic MAGNET_REQUESTS
          Statistic for all Magnet requests that have been made in this session.
static Statistic UNKNOWN_REQUESTS
          Statistic for all Unknown requests that have been made in this session.
 
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

HTTP_REQUESTS

public static final Statistic HTTP_REQUESTS
Statistic for all HTTP requests of any type that have been made in this session.


HEAD_REQUESTS

public static final Statistic HEAD_REQUESTS
Statistic for all HTTP HEAD requests that have been made in this session.


GET_REQUESTS

public static final Statistic GET_REQUESTS
Statistic for all HTTP GET requests that have been made in this session.


GIV_REQUESTS

public static final Statistic GIV_REQUESTS
Statistic for all HTTP GIV requests that have been made in this session.


GNUTELLA_REQUESTS

public static final Statistic GNUTELLA_REQUESTS
Statistic for all Gnutella requests that have been made in this session.


GNUTELLA_LIMEWIRE_REQUESTS

public static final Statistic GNUTELLA_LIMEWIRE_REQUESTS
Statistic for all LimeWire requests that have been made in this session.


CHAT_REQUESTS

public static final Statistic CHAT_REQUESTS
Statistic for all Chat requests that have been made in this session.


MAGNET_REQUESTS

public static final Statistic MAGNET_REQUESTS
Statistic for all Magnet requests that have been made in this session.


UNKNOWN_REQUESTS

public static final Statistic UNKNOWN_REQUESTS
Statistic for all Unknown requests that have been made in this session.


BANNED_REQUESTS

public static final Statistic BANNED_REQUESTS
Statistic for all Banned requests that have been made in this session.


CLOSED_REQUESTS

public static final Statistic CLOSED_REQUESTS
Statistic for all closed requests that have been made in this session.

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