com.limegroup.gnutella.statistics
Class ReceivedErrorStat

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

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

This class contains a type-safe enumeration of statistics for errors in received messages.


Field Summary
static Statistic ALL_PING_REPLY_ERRORS
          Statistic for all received ping reply errors.
static Statistic ALL_PUSH_ERRORS
          Statistic for all received push errors.
static Statistic ALL_QUERY_ERRORS
          Statistic for all received query errors.
static Statistic ALL_QUERY_REPLY_ERRORS
          Statistic for all received query reply errors.
static Statistic ALL_RECEIVED_ERRORS
          Statistic for all received errors.
static Statistic ALL_VENDOR_ERRORS
          Statistic for all received vendor errors.
static Statistic CONNECTION_CLOSED
          Statistic for failure due to connection closing.
static Statistic HOPS_AND_TTL_OVER_HARD_MAX
          Statistic for hops + ttl exceeding hard max.
static Statistic HOPS_EXCEED_SOFT_MAX
          Statistic for hops exceeding soft max.
static Statistic INVALID_CODE
          Statistic for an invalid function code.
static Statistic INVALID_HOPS
          Statistic for an invalid hops.
static Statistic INVALID_LENGTH
          Statistic for an invalid payload length.
static Statistic INVALID_TTL
          Statistic for an invalid TTL.
static Statistic PING_REPLY_INVALID_ADDRESS
          Statistic for failure due to an invalid ping reply address.
static Statistic PING_REPLY_INVALID_GGEP
          Statistic for failure due to an invalid ping reply ggep block.
static Statistic PING_REPLY_INVALID_PAYLOAD
          Statistic for failure due to an invalid ping reply payload.
static Statistic PING_REPLY_INVALID_PORT
          Statistic for failure due to an invalid ping reply port.
static Statistic PING_REPLY_INVALID_VENDOR
          Statistic for failure due to an invalid ping reply vendor length.
static Statistic PUSH_INVALID_ADDRESS
          Statistic for failure due to invalid address in a push.
static Statistic PUSH_INVALID_PAYLOAD
          Statistic for failure due to invalid payload in a push.
static Statistic PUSH_INVALID_PORT
          Statistic for failure due to invalid port in a push.
static Statistic QUERY_EMPTY
          Statistic for failure due to empty query.
static Statistic QUERY_ILLEGAL_CHARS
          Statistic for failure due to illegal characters.
static Statistic QUERY_TOO_LARGE
          Statistic for failure due to query length too large.
static Statistic QUERY_URN
          Statistic for failure due to URNs.
static Statistic QUERY_XML_TOO_LARGE
          Statistic for failure due to the XML query length.
static Statistic REPLY_INVALID_ADDRESS
          Statistic for failure due to invalid address in QueryReply.
static Statistic REPLY_INVALID_PORT
          Statistic for failure due to invalid port in QueryReply.
static Statistic REPLY_INVALID_SPEED
          Statistic for failure due to invalid speed in QueryReply.
static Statistic VENDOR_INVALID_ID
          Statistic for failure due to an invalid vendor id.
static Statistic VENDOR_INVALID_PAYLOAD
          Statistic for failure due an invalid payload.
static Statistic VENDOR_INVALID_SELECTOR
          Statistic for failure due to an invalid selector.
static Statistic VENDOR_INVALID_VERSION
          Statistic for failure due to an invalid version.
static Statistic VENDOR_UNRECOGNIZED
          Statistic for failure due an unrecognized vendor message.
 
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

ALL_RECEIVED_ERRORS

public static final Statistic ALL_RECEIVED_ERRORS
Statistic for all received errors.


ALL_QUERY_ERRORS

public static final Statistic ALL_QUERY_ERRORS
Statistic for all received query errors.


ALL_QUERY_REPLY_ERRORS

public static final Statistic ALL_QUERY_REPLY_ERRORS
Statistic for all received query reply errors.


ALL_PUSH_ERRORS

public static final Statistic ALL_PUSH_ERRORS
Statistic for all received push errors.


ALL_PING_REPLY_ERRORS

public static final Statistic ALL_PING_REPLY_ERRORS
Statistic for all received ping reply errors.


ALL_VENDOR_ERRORS

public static final Statistic ALL_VENDOR_ERRORS
Statistic for all received vendor errors.


CONNECTION_CLOSED

public static final Statistic CONNECTION_CLOSED
Statistic for failure due to connection closing.


INVALID_LENGTH

public static final Statistic INVALID_LENGTH
Statistic for an invalid payload length.


INVALID_HOPS

public static final Statistic INVALID_HOPS
Statistic for an invalid hops.


INVALID_TTL

public static final Statistic INVALID_TTL
Statistic for an invalid TTL.


HOPS_EXCEED_SOFT_MAX

public static final Statistic HOPS_EXCEED_SOFT_MAX
Statistic for hops exceeding soft max.


HOPS_AND_TTL_OVER_HARD_MAX

public static final Statistic HOPS_AND_TTL_OVER_HARD_MAX
Statistic for hops + ttl exceeding hard max.


INVALID_CODE

public static final Statistic INVALID_CODE
Statistic for an invalid function code.


QUERY_URN

public static final Statistic QUERY_URN
Statistic for failure due to URNs.


QUERY_TOO_LARGE

public static final Statistic QUERY_TOO_LARGE
Statistic for failure due to query length too large.


QUERY_XML_TOO_LARGE

public static final Statistic QUERY_XML_TOO_LARGE
Statistic for failure due to the XML query length.


QUERY_EMPTY

public static final Statistic QUERY_EMPTY
Statistic for failure due to empty query.


QUERY_ILLEGAL_CHARS

public static final Statistic QUERY_ILLEGAL_CHARS
Statistic for failure due to illegal characters.


REPLY_INVALID_PORT

public static final Statistic REPLY_INVALID_PORT
Statistic for failure due to invalid port in QueryReply.


REPLY_INVALID_ADDRESS

public static final Statistic REPLY_INVALID_ADDRESS
Statistic for failure due to invalid address in QueryReply.


REPLY_INVALID_SPEED

public static final Statistic REPLY_INVALID_SPEED
Statistic for failure due to invalid speed in QueryReply.


PUSH_INVALID_PORT

public static final Statistic PUSH_INVALID_PORT
Statistic for failure due to invalid port in a push.


PUSH_INVALID_ADDRESS

public static final Statistic PUSH_INVALID_ADDRESS
Statistic for failure due to invalid address in a push.


PUSH_INVALID_PAYLOAD

public static final Statistic PUSH_INVALID_PAYLOAD
Statistic for failure due to invalid payload in a push.


PING_REPLY_INVALID_PAYLOAD

public static final Statistic PING_REPLY_INVALID_PAYLOAD
Statistic for failure due to an invalid ping reply payload.


PING_REPLY_INVALID_PORT

public static final Statistic PING_REPLY_INVALID_PORT
Statistic for failure due to an invalid ping reply port.


PING_REPLY_INVALID_ADDRESS

public static final Statistic PING_REPLY_INVALID_ADDRESS
Statistic for failure due to an invalid ping reply address.


PING_REPLY_INVALID_GGEP

public static final Statistic PING_REPLY_INVALID_GGEP
Statistic for failure due to an invalid ping reply ggep block.


PING_REPLY_INVALID_VENDOR

public static final Statistic PING_REPLY_INVALID_VENDOR
Statistic for failure due to an invalid ping reply vendor length.


VENDOR_INVALID_ID

public static final Statistic VENDOR_INVALID_ID
Statistic for failure due to an invalid vendor id.


VENDOR_INVALID_SELECTOR

public static final Statistic VENDOR_INVALID_SELECTOR
Statistic for failure due to an invalid selector.


VENDOR_INVALID_VERSION

public static final Statistic VENDOR_INVALID_VERSION
Statistic for failure due to an invalid version.


VENDOR_INVALID_PAYLOAD

public static final Statistic VENDOR_INVALID_PAYLOAD
Statistic for failure due an invalid payload.


VENDOR_UNRECOGNIZED

public static final Statistic VENDOR_UNRECOGNIZED
Statistic for failure due an unrecognized vendor message.

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