com.limegroup.gnutella.statistics
Class HandshakingStat

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

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

This class contains a type-safe enumeration of statistics for handshaking


Field Summary
static Statistic INCOMING_CRAWLER
          Statistic for an incoming crawler connection.
static Statistic LEAF_INCOMING_ACCEPT
          Statistic for an incoming accepted connection if we're a leaf.
static Statistic LEAF_INCOMING_REJECT
          Statistic for an incoming rejected connection if we're a leaf.
static Statistic LEAF_OUTGOING_ACCEPT
          Statistic for an outgoing accepted connection to anything if we're a leaf.
static Statistic LEAF_OUTGOING_REJECT_LEAF
          Statstic for an outgoing rejected connection to a leaf if we're a leaf.
static Statistic LEAF_OUTGOING_REJECT_OLD_UP
          Statistic for an outgoing rejected connection to a not-good Ultrapeer if we're a leaf.
static Statistic UP_INCOMING_ACCEPT_LEAF
          Statistic for an incoming accepted connection to an ultrapeer by a leaf.
static Statistic UP_INCOMING_ACCEPT_UP
          Statistic for an incoming accepted connection by another ultrapeer.
static Statistic UP_INCOMING_GUIDED
          Statistic for an incoming connection we're guiding to become a leaf.
static Statistic UP_INCOMING_REJECT_LEAF
          Statistic for an incoming rejected connection to an ultrapeer by a leaf.
static Statistic UP_INCOMING_REJECT_NO_ROOM_LEAF
          Statistic for an incoming rejected connection because there was no room for either an ultrapeer or a leaf.
static Statistic UP_INCOMING_REJECT_NO_ROOM_UP
          Statistic for an incoming rejected connection because we wanted them to become a supernode but had no room for a supernode.
static Statistic UP_OUTGOING_ACCEPT
          Statistic for an outgoing connection to an ultrapeer that did not give us guidance and we accepted.
static Statistic UP_OUTGOING_GUIDANCE_FOLLOWED
          Statistic for an outgoing guided connection to an ultrapeer.
static Statistic UP_OUTGOING_GUIDANCE_IGNORED
          Statistic for an outgoing guided connection to an ultrapeer that gave us guidance, but we ignored it and stayed an ultrapeer
static Statistic UP_OUTGOING_REJECT_FULL
          Statistic for an outgoing rejected connection to an ultrapeer because we didn't have enough room if we're an ultrapeer.
 
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

LEAF_OUTGOING_REJECT_LEAF

public static final Statistic LEAF_OUTGOING_REJECT_LEAF
Statstic for an outgoing rejected connection to a leaf if we're a leaf.


LEAF_OUTGOING_REJECT_OLD_UP

public static final Statistic LEAF_OUTGOING_REJECT_OLD_UP
Statistic for an outgoing rejected connection to a not-good Ultrapeer if we're a leaf.


LEAF_OUTGOING_ACCEPT

public static final Statistic LEAF_OUTGOING_ACCEPT
Statistic for an outgoing accepted connection to anything if we're a leaf.


LEAF_INCOMING_REJECT

public static final Statistic LEAF_INCOMING_REJECT
Statistic for an incoming rejected connection if we're a leaf.


LEAF_INCOMING_ACCEPT

public static final Statistic LEAF_INCOMING_ACCEPT
Statistic for an incoming accepted connection if we're a leaf.


UP_OUTGOING_REJECT_FULL

public static final Statistic UP_OUTGOING_REJECT_FULL
Statistic for an outgoing rejected connection to an ultrapeer because we didn't have enough room if we're an ultrapeer.


UP_OUTGOING_GUIDANCE_FOLLOWED

public static final Statistic UP_OUTGOING_GUIDANCE_FOLLOWED
Statistic for an outgoing guided connection to an ultrapeer.


UP_OUTGOING_GUIDANCE_IGNORED

public static final Statistic UP_OUTGOING_GUIDANCE_IGNORED
Statistic for an outgoing guided connection to an ultrapeer that gave us guidance, but we ignored it and stayed an ultrapeer


UP_OUTGOING_ACCEPT

public static final Statistic UP_OUTGOING_ACCEPT
Statistic for an outgoing connection to an ultrapeer that did not give us guidance and we accepted.


INCOMING_CRAWLER

public static final Statistic INCOMING_CRAWLER
Statistic for an incoming crawler connection.


UP_INCOMING_REJECT_LEAF

public static final Statistic UP_INCOMING_REJECT_LEAF
Statistic for an incoming rejected connection to an ultrapeer by a leaf.


UP_INCOMING_ACCEPT_LEAF

public static final Statistic UP_INCOMING_ACCEPT_LEAF
Statistic for an incoming accepted connection to an ultrapeer by a leaf.


UP_INCOMING_GUIDED

public static final Statistic UP_INCOMING_GUIDED
Statistic for an incoming connection we're guiding to become a leaf.


UP_INCOMING_ACCEPT_UP

public static final Statistic UP_INCOMING_ACCEPT_UP
Statistic for an incoming accepted connection by another ultrapeer.


UP_INCOMING_REJECT_NO_ROOM_LEAF

public static final Statistic UP_INCOMING_REJECT_NO_ROOM_LEAF
Statistic for an incoming rejected connection because there was no room for either an ultrapeer or a leaf.


UP_INCOMING_REJECT_NO_ROOM_UP

public static final Statistic UP_INCOMING_REJECT_NO_ROOM_UP
Statistic for an incoming rejected connection because we wanted them to become a supernode but had no room for a supernode.

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