com.limegroup.gnutella.statistics
Class CompressionStat

java.lang.Object
  extended bycom.limegroup.gnutella.statistics.AbstractStatistic
      extended bycom.limegroup.gnutella.statistics.AbstractKilobytesStatistic
          extended bycom.limegroup.gnutella.statistics.AdvancedKilobytesStatistic
              extended bycom.limegroup.gnutella.statistics.CompressionStat
All Implemented Interfaces:
Statistic

public class CompressionStat
extends com.limegroup.gnutella.statistics.AdvancedKilobytesStatistic

This class contains a type-safe enumeration of all classes for compression data.


Field Summary
static Statistic DOWNSTREAM_COMPRESSED
          Statistic for all downstream compressed bandwidth.
static Statistic DOWNSTREAM_UNCOMPRESSED
          Statistic for all downstream uncompressed bandwidth.
static Statistic GNUTELLA_COMPRESSED_DOWNSTREAM
          Statistic for all downstream Gnutella compressed traffic.
static Statistic GNUTELLA_COMPRESSED_UPSTREAM
          Statistic for all upstream Gnutella compressed traffic.
static Statistic GNUTELLA_UNCOMPRESSED_DOWNSTREAM
          Statistic for all downstream Gnutella uncompressed traffic.
static Statistic GNUTELLA_UNCOMPRESSED_UPSTREAM
          Statistic for all upstream Gnutella uncompressed traffic.
static Statistic HTTP_COMPRESSED_DOWNSTREAM
          Statistic for all downstream HTTP compressed traffic.
static Statistic HTTP_COMPRESSED_UPSTREAM
          Statistic for all upstream HTTP compressed traffic.
static Statistic HTTP_UNCOMPRESSED_DOWNSTREAM
          Statistic for all downstream HTTP uncompressed traffic.
static Statistic HTTP_UNCOMPRESSED_UPSTREAM
          Statistic for all upstream HTTP uncompressed traffic.
static Statistic UPSTREAM_COMPRESSED
          Statistic for all upstream compressed bandwidth.
static Statistic UPSTREAM_UNCOMPRESSED
          Statistic for all upstream uncompressed bandwidth.
 
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.AbstractKilobytesStatistic
getAverage, getMax, getTotal
 
Methods inherited from class com.limegroup.gnutella.statistics.AbstractStatistic
clearData, getStatHistory, initializeBuffer, setWriteStatToFile, storeCurrentStat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UPSTREAM_UNCOMPRESSED

public static final Statistic UPSTREAM_UNCOMPRESSED
Statistic for all upstream uncompressed bandwidth.


DOWNSTREAM_UNCOMPRESSED

public static final Statistic DOWNSTREAM_UNCOMPRESSED
Statistic for all downstream uncompressed bandwidth.


UPSTREAM_COMPRESSED

public static final Statistic UPSTREAM_COMPRESSED
Statistic for all upstream compressed bandwidth.


DOWNSTREAM_COMPRESSED

public static final Statistic DOWNSTREAM_COMPRESSED
Statistic for all downstream compressed bandwidth.


GNUTELLA_UNCOMPRESSED_UPSTREAM

public static final Statistic GNUTELLA_UNCOMPRESSED_UPSTREAM
Statistic for all upstream Gnutella uncompressed traffic.


GNUTELLA_UNCOMPRESSED_DOWNSTREAM

public static final Statistic GNUTELLA_UNCOMPRESSED_DOWNSTREAM
Statistic for all downstream Gnutella uncompressed traffic.


GNUTELLA_COMPRESSED_UPSTREAM

public static final Statistic GNUTELLA_COMPRESSED_UPSTREAM
Statistic for all upstream Gnutella compressed traffic.


GNUTELLA_COMPRESSED_DOWNSTREAM

public static final Statistic GNUTELLA_COMPRESSED_DOWNSTREAM
Statistic for all downstream Gnutella compressed traffic.


HTTP_UNCOMPRESSED_UPSTREAM

public static final Statistic HTTP_UNCOMPRESSED_UPSTREAM
Statistic for all upstream HTTP uncompressed traffic.


HTTP_UNCOMPRESSED_DOWNSTREAM

public static final Statistic HTTP_UNCOMPRESSED_DOWNSTREAM
Statistic for all downstream HTTP uncompressed traffic.


HTTP_COMPRESSED_UPSTREAM

public static final Statistic HTTP_COMPRESSED_UPSTREAM
Statistic for all upstream HTTP compressed traffic.


HTTP_COMPRESSED_DOWNSTREAM

public static final Statistic HTTP_COMPRESSED_DOWNSTREAM
Statistic for all downstream HTTP compressed traffic.

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