com.limegroup.gnutella.statistics
Class TTLHopsRecorder

java.lang.Object
  extended bycom.limegroup.gnutella.statistics.TTLHopsRecorder

public final class TTLHopsRecorder
extends java.lang.Object

This class is a convenient wrapper for any class that keeps track of ttl and hops for a Gnutella message.


Field Summary
 AbstractStatHandler HOPS0
          Constant for the AbstractStatHandler that keeps track of hops = 0 messages.
 AbstractStatHandler HOPS1
          Constant for the AbstractStatHandler that keeps track of hops = 1 messages.
 AbstractStatHandler HOPS2
          Constant for the AbstractStatHandler that keeps track of hops = 2 messages.
 AbstractStatHandler HOPS3
          Constant for the AbstractStatHandler that keeps track of hops = 3 messages.
 AbstractStatHandler HOPS4
          Constant for the AbstractStatHandler that keeps track of hops = 4 messages.
 AbstractStatHandler HOPS5
          Constant for the AbstractStatHandler that keeps track of hops = 5 messages.
 AbstractStatHandler HOPS6
          Constant for the AbstractStatHandler that keeps track of hops = 6 messages.
 AbstractStatHandler HOPS7
          Constant for the AbstractStatHandler that keeps track of hops = 7 messages.
 AbstractStatHandler HOPS8
          Constant for the AbstractStatHandler that keeps track of hops = 8 messages.
 AbstractStatHandler TTL0
          Constant for the AbstractStatHandler that keeps track of ttl = 0 messages.
 AbstractStatHandler TTL1
          Constant for the AbstractStatHandler that keeps track of ttl = 1 messages.
 AbstractStatHandler TTL2
          Constant for the AbstractStatHandler that keeps track of ttl = 2 messages.
 AbstractStatHandler TTL3
          Constant for the AbstractStatHandler that keeps track of ttl = 3 messages.
 AbstractStatHandler TTL4
          Constant for the AbstractStatHandler that keeps track of ttl = 4 messages.
 AbstractStatHandler TTL5
          Constant for the AbstractStatHandler that keeps track of ttl = 5 messages.
 AbstractStatHandler TTL6
          Constant for the AbstractStatHandler that keeps track of ttl = 6 messages.
 AbstractStatHandler TTL7
          Constant for the AbstractStatHandler that keeps track of ttl = 7 messages.
 AbstractStatHandler TTL8
          Constant for the AbstractStatHandler that keeps track of ttl = 8 messages.
 
Method Summary
 void addMessage(Message msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TTL0

public final AbstractStatHandler TTL0
Constant for the AbstractStatHandler that keeps track of ttl = 0 messages.


TTL1

public final AbstractStatHandler TTL1
Constant for the AbstractStatHandler that keeps track of ttl = 1 messages.


TTL2

public final AbstractStatHandler TTL2
Constant for the AbstractStatHandler that keeps track of ttl = 2 messages.


TTL3

public final AbstractStatHandler TTL3
Constant for the AbstractStatHandler that keeps track of ttl = 3 messages.


TTL4

public final AbstractStatHandler TTL4
Constant for the AbstractStatHandler that keeps track of ttl = 4 messages.


TTL5

public final AbstractStatHandler TTL5
Constant for the AbstractStatHandler that keeps track of ttl = 5 messages.


TTL6

public final AbstractStatHandler TTL6
Constant for the AbstractStatHandler that keeps track of ttl = 6 messages.


TTL7

public final AbstractStatHandler TTL7
Constant for the AbstractStatHandler that keeps track of ttl = 7 messages.


TTL8

public final AbstractStatHandler TTL8
Constant for the AbstractStatHandler that keeps track of ttl = 8 messages.


HOPS0

public final AbstractStatHandler HOPS0
Constant for the AbstractStatHandler that keeps track of hops = 0 messages.


HOPS1

public final AbstractStatHandler HOPS1
Constant for the AbstractStatHandler that keeps track of hops = 1 messages.


HOPS2

public final AbstractStatHandler HOPS2
Constant for the AbstractStatHandler that keeps track of hops = 2 messages.


HOPS3

public final AbstractStatHandler HOPS3
Constant for the AbstractStatHandler that keeps track of hops = 3 messages.


HOPS4

public final AbstractStatHandler HOPS4
Constant for the AbstractStatHandler that keeps track of hops = 4 messages.


HOPS5

public final AbstractStatHandler HOPS5
Constant for the AbstractStatHandler that keeps track of hops = 5 messages.


HOPS6

public final AbstractStatHandler HOPS6
Constant for the AbstractStatHandler that keeps track of hops = 6 messages.


HOPS7

public final AbstractStatHandler HOPS7
Constant for the AbstractStatHandler that keeps track of hops = 7 messages.


HOPS8

public final AbstractStatHandler HOPS8
Constant for the AbstractStatHandler that keeps track of hops = 8 messages.

Method Detail

addMessage

public void addMessage(Message msg)