com.limegroup.gnutella.statistics
Class UploadStat

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

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

This class contains a type-safe enumeration of statistics for uploads.


Field Summary
static Statistic ATTEMPTED
          Statistic for attempted uploads.
static Statistic BROWSE_HOST
          Statistic for the number of browse host requests we receive.
static Statistic COMPLETED
          Statistic for completed uploads.
static Statistic COMPLETED_FILE
          Statstics for completed file transfers.
static Statistic FILE_NOT_FOUND
          Statistic for uploads whose status is FILE_NOT_FOUND.
static Statistic FREELOADER
          Statistic for uploads whose status is FREELOADER
static Statistic INTERRUPTED
          Statistic for interrupted uploads.
static Statistic LIMIT_REACHED
          Statistic for uploads whose status is LIMIT_REACHED.
static Statistic MALFORMED_REQUEST
          Statistic for the number malformed requests we receive.
static Statistic PUSH_FAILED
          Statistic for failed push requests.
static Statistic PUSH_PROXY
          Statistic for the number of push proxy requests we receive.
static Statistic PUSH_PROXY_REQ_BAD
          Statistic for the number of push proxy requests that are malformed.
static Statistic PUSH_PROXY_REQ_FAILED
          Statistic for the number of push proxy requests that failed (leaf was gone).
static Statistic PUSH_PROXY_REQ_SUCCESS
          Statistic for the number of push proxy requests we successfully process.
static Statistic PUSHED_GET
          Statistic for a GET request after we push a GIV.
static Statistic PUSHED_HEAD
          Statistic for a HEAD request after we push a GIV.
static Statistic PUSHED_UNKNOWN
          Statistic for an unknown request after we push a GIV.
static Statistic QUEUED
          Statistic for uploads whose status is queued.
static Statistic STALLED
          Statistic for the number of uploads we have killed because they stalled.
static Statistic SUBSEQUENT_GET
          Statistic for GET requests that are accumulated AFTER the initial incoming HTTP connection.
static Statistic SUBSEQUENT_HEAD
          Statistic for HEAD requests that are accumulated AFTER the initial incoming HTTP connection.
static Statistic SUBSEQUENT_UNKNOWN
          Statistic for unknown requests that are accumulated AFTER the initial incoming HTTP connection.
static Statistic TRADITIONAL_GET
          Statistic for the number of traditional get requests we receive, such as /get/#/filename
static Statistic UNAVAILABLE_RANGE
          Statistic for uploads whose status is UNAVAILABLE_RANGE.
static Statistic UNKNOWN_URN_GET
          Statistic for the number of URN get requests we receive whose URN we do not have in our library.
static Statistic UPDATE_FILE
          Statistic for the number of update file requests we receive.
static Statistic UPLOADING
          Statistic for uploads that will actually upload a portion of the file.
static Statistic URN_GET
          Statistic for the number of URN get requests we receive where we do have this URN in our library.
 
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

ATTEMPTED

public static final Statistic ATTEMPTED
Statistic for attempted uploads. This is incremented once per connection, not once per chunk.


COMPLETED

public static final Statistic COMPLETED
Statistic for completed uploads. This is incremented once per connection, not once per chunk.


COMPLETED_FILE

public static final Statistic COMPLETED_FILE
Statstics for completed file transfers. This is incremented once per connection, not once per chunk.


INTERRUPTED

public static final Statistic INTERRUPTED
Statistic for interrupted uploads. This is incremented once per connection, not once per chunk.


SUBSEQUENT_GET

public static final Statistic SUBSEQUENT_GET
Statistic for GET requests that are accumulated AFTER the initial incoming HTTP connection.


SUBSEQUENT_HEAD

public static final Statistic SUBSEQUENT_HEAD
Statistic for HEAD requests that are accumulated AFTER the initial incoming HTTP connection.


SUBSEQUENT_UNKNOWN

public static final Statistic SUBSEQUENT_UNKNOWN
Statistic for unknown requests that are accumulated AFTER the initial incoming HTTP connection.


FILE_NOT_FOUND

public static final Statistic FILE_NOT_FOUND
Statistic for uploads whose status is FILE_NOT_FOUND.


LIMIT_REACHED

public static final Statistic LIMIT_REACHED
Statistic for uploads whose status is LIMIT_REACHED.


UNAVAILABLE_RANGE

public static final Statistic UNAVAILABLE_RANGE
Statistic for uploads whose status is UNAVAILABLE_RANGE.


FREELOADER

public static final Statistic FREELOADER
Statistic for uploads whose status is FREELOADER


QUEUED

public static final Statistic QUEUED
Statistic for uploads whose status is queued. This is incremented after every request in which we queue the uploader.


UPLOADING

public static final Statistic UPLOADING
Statistic for uploads that will actually upload a portion of the file. This is incremented every chunk of the upload.


PUSHED_GET

public static final Statistic PUSHED_GET
Statistic for a GET request after we push a GIV.


PUSHED_HEAD

public static final Statistic PUSHED_HEAD
Statistic for a HEAD request after we push a GIV.


PUSHED_UNKNOWN

public static final Statistic PUSHED_UNKNOWN
Statistic for an unknown request after we push a GIV.


PUSH_FAILED

public static final Statistic PUSH_FAILED
Statistic for failed push requests. This is incremented every time we send a GIV and do not receive a response or if we were unable to connect to send the GIV.


MALFORMED_REQUEST

public static final Statistic MALFORMED_REQUEST
Statistic for the number malformed requests we receive.


BROWSE_HOST

public static final Statistic BROWSE_HOST
Statistic for the number of browse host requests we receive.


PUSH_PROXY

public static final Statistic PUSH_PROXY
Statistic for the number of push proxy requests we receive.


PUSH_PROXY_REQ_SUCCESS

public static final Statistic PUSH_PROXY_REQ_SUCCESS
Statistic for the number of push proxy requests we successfully process.


PUSH_PROXY_REQ_BAD

public static final Statistic PUSH_PROXY_REQ_BAD
Statistic for the number of push proxy requests that are malformed.


PUSH_PROXY_REQ_FAILED

public static final Statistic PUSH_PROXY_REQ_FAILED
Statistic for the number of push proxy requests that failed (leaf was gone).


UPDATE_FILE

public static final Statistic UPDATE_FILE
Statistic for the number of update file requests we receive.


TRADITIONAL_GET

public static final Statistic TRADITIONAL_GET
Statistic for the number of traditional get requests we receive, such as /get/#/filename


UNKNOWN_URN_GET

public static final Statistic UNKNOWN_URN_GET
Statistic for the number of URN get requests we receive whose URN we do not have in our library.


URN_GET

public static final Statistic URN_GET
Statistic for the number of URN get requests we receive where we do have this URN in our library.


STALLED

public static final Statistic STALLED
Statistic for the number of uploads we have killed because they stalled.

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