com.limegroup.gnutella.statistics
Class LimeSentMessageStat

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

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

This class contains a type-safe enumeration of statistics for individual Gnutella messages that have been sent from other nodes on the network. Each statistic maintains its own history, all messages sent over a specific number of time intervals, etc.


Field Summary
static Statistic ALL_FILTERED_MESSAGES
          Statistic for all filtered messages.
static Statistic ALL_MESSAGES
          Statistic for all messages sent.
static Statistic MULTICAST_ALL_MESSAGES
          Statistic for all MULTICAST messages sent.
static Statistic MULTICAST_FILTERED_MESSAGES
          Statistic for Gnutella filtered messages sent over Multicast.
static Statistic MULTICAST_PING_REPLIES
          Statistic for Gnutella pongs sent over MULTICAST.
static Statistic MULTICAST_PING_REQUESTS
          Statistic for Gnutella pings sent over MULTICAST.
static Statistic MULTICAST_PUSH_REQUESTS
          Statistic for Gnutella push requests sent over Multicast.
static Statistic MULTICAST_QUERY_REPLIES
          Statistic for Gnutella query replies sent over Multicast.
static Statistic MULTICAST_QUERY_REQUESTS
          Statistic for Gnutella query requests sent over Multicast.
static Statistic MULTICAST_ROUTE_TABLE_MESSAGES
          Statistic for Gnutella route table messages sent over Multicast.
static Statistic TCP_ALL_MESSAGES
          Statistic for all TCP messages sent.
static Statistic TCP_FILTERED_MESSAGES
          Statistic for Gnutella filtered messages sent over TCP.
static Statistic TCP_HOPS_FLOW
          Statistic for Gnutella hops flow messages sent over TCP.
static Statistic TCP_MESSAGES_SUPPORTED
          Statistic for Gnutella meta-vendor messages sent over TCP.
static Statistic TCP_PATCH_ROUTE_TABLE_MESSAGES
          Statistic for Gnutella patch route table messages sent over TCP.
static Statistic TCP_PING_REPLIES
          Statistic for Gnutella pongs sent over TCP.
static Statistic TCP_PING_REQUESTS
          Statistic for Gnutella pings sent over TCP.
static Statistic TCP_PUSH_REQUESTS
          Statistic for Gnutella push requests sent over TCP.
static Statistic TCP_QUERY_REPLIES
          Statistic for Gnutella query replies sent over TCP.
static Statistic TCP_QUERY_REQUESTS
          Statistic for Gnutella query requests sent over TCP.
static Statistic TCP_RESET_ROUTE_TABLE_MESSAGES
          Statistic for Gnutella reset route table messages sent over TCP.
static Statistic TCP_TCP_CONNECTBACK
          Statistic for Gnutella TCP ConnectBack messages sent over TCP.
static Statistic TCP_UDP_CONNECTBACK
          Statistic for Gnutella UDP ConnectBack sent over TCP.
static Statistic UDP_ALL_MESSAGES
          Statistic for all UPD messages sent.
static Statistic UDP_FILTERED_MESSAGES
          Statistic for Gnutella filtered messages sent over UDP.
static Statistic UDP_LIME_ACK
          Statistic for Gnutella LimeACK VM sent over UDP.
static Statistic UDP_PING_REPLIES
          Statistic for Gnutella pongs sent over UDP.
static Statistic UDP_PING_REQUESTS
          Statistic for Gnutella pings sent over UDP.
static Statistic UDP_PUSH_REQUESTS
          Statistic for Gnutella push requests sent over UDP.
static Statistic UDP_QUERY_REPLIES
          Statistic for Gnutella query replies sent over UDP.
static Statistic UDP_QUERY_REQUESTS
          Statistic for Gnutella query requests sent over UDP.
static Statistic UDP_REPLY_NUMBER
          Statistic for Gnutella ReplyNumber VM sent over UDP.
static Statistic UDP_ROUTE_TABLE_MESSAGES
          Statistic for Gnutella route table messages sent over UDP.
 
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_MESSAGES

public static final Statistic ALL_MESSAGES
Statistic for all messages sent.


UDP_ALL_MESSAGES

public static final Statistic UDP_ALL_MESSAGES
Statistic for all UPD messages sent.


TCP_ALL_MESSAGES

public static final Statistic TCP_ALL_MESSAGES
Statistic for all TCP messages sent.


MULTICAST_ALL_MESSAGES

public static final Statistic MULTICAST_ALL_MESSAGES
Statistic for all MULTICAST messages sent.


ALL_FILTERED_MESSAGES

public static final Statistic ALL_FILTERED_MESSAGES
Statistic for all filtered messages.


UDP_PING_REQUESTS

public static final Statistic UDP_PING_REQUESTS
Statistic for Gnutella pings sent over UDP.


TCP_PING_REQUESTS

public static final Statistic TCP_PING_REQUESTS
Statistic for Gnutella pings sent over TCP.


MULTICAST_PING_REQUESTS

public static final Statistic MULTICAST_PING_REQUESTS
Statistic for Gnutella pings sent over MULTICAST.


UDP_PING_REPLIES

public static final Statistic UDP_PING_REPLIES
Statistic for Gnutella pongs sent over UDP.


TCP_PING_REPLIES

public static final Statistic TCP_PING_REPLIES
Statistic for Gnutella pongs sent over TCP.


MULTICAST_PING_REPLIES

public static final Statistic MULTICAST_PING_REPLIES
Statistic for Gnutella pongs sent over MULTICAST.


UDP_QUERY_REQUESTS

public static final Statistic UDP_QUERY_REQUESTS
Statistic for Gnutella query requests sent over UDP.


TCP_QUERY_REQUESTS

public static final Statistic TCP_QUERY_REQUESTS
Statistic for Gnutella query requests sent over TCP.


MULTICAST_QUERY_REQUESTS

public static final Statistic MULTICAST_QUERY_REQUESTS
Statistic for Gnutella query requests sent over Multicast.


UDP_QUERY_REPLIES

public static final Statistic UDP_QUERY_REPLIES
Statistic for Gnutella query replies sent over UDP.


TCP_QUERY_REPLIES

public static final Statistic TCP_QUERY_REPLIES
Statistic for Gnutella query replies sent over TCP.


MULTICAST_QUERY_REPLIES

public static final Statistic MULTICAST_QUERY_REPLIES
Statistic for Gnutella query replies sent over Multicast.


UDP_PUSH_REQUESTS

public static final Statistic UDP_PUSH_REQUESTS
Statistic for Gnutella push requests sent over UDP.


TCP_PUSH_REQUESTS

public static final Statistic TCP_PUSH_REQUESTS
Statistic for Gnutella push requests sent over TCP.


MULTICAST_PUSH_REQUESTS

public static final Statistic MULTICAST_PUSH_REQUESTS
Statistic for Gnutella push requests sent over Multicast.


UDP_ROUTE_TABLE_MESSAGES

public static final Statistic UDP_ROUTE_TABLE_MESSAGES
Statistic for Gnutella route table messages sent over UDP.


TCP_RESET_ROUTE_TABLE_MESSAGES

public static final Statistic TCP_RESET_ROUTE_TABLE_MESSAGES
Statistic for Gnutella reset route table messages sent over TCP.


TCP_PATCH_ROUTE_TABLE_MESSAGES

public static final Statistic TCP_PATCH_ROUTE_TABLE_MESSAGES
Statistic for Gnutella patch route table messages sent over TCP.


MULTICAST_ROUTE_TABLE_MESSAGES

public static final Statistic MULTICAST_ROUTE_TABLE_MESSAGES
Statistic for Gnutella route table messages sent over Multicast.


UDP_FILTERED_MESSAGES

public static final Statistic UDP_FILTERED_MESSAGES
Statistic for Gnutella filtered messages sent over UDP.


TCP_FILTERED_MESSAGES

public static final Statistic TCP_FILTERED_MESSAGES
Statistic for Gnutella filtered messages sent over TCP.


MULTICAST_FILTERED_MESSAGES

public static final Statistic MULTICAST_FILTERED_MESSAGES
Statistic for Gnutella filtered messages sent over Multicast.


TCP_HOPS_FLOW

public static final Statistic TCP_HOPS_FLOW
Statistic for Gnutella hops flow messages sent over TCP.


TCP_MESSAGES_SUPPORTED

public static final Statistic TCP_MESSAGES_SUPPORTED
Statistic for Gnutella meta-vendor messages sent over TCP.


TCP_TCP_CONNECTBACK

public static final Statistic TCP_TCP_CONNECTBACK
Statistic for Gnutella TCP ConnectBack messages sent over TCP.


TCP_UDP_CONNECTBACK

public static final Statistic TCP_UDP_CONNECTBACK
Statistic for Gnutella UDP ConnectBack sent over TCP.


UDP_REPLY_NUMBER

public static final Statistic UDP_REPLY_NUMBER
Statistic for Gnutella ReplyNumber VM sent over UDP.


UDP_LIME_ACK

public static final Statistic UDP_LIME_ACK
Statistic for Gnutella LimeACK VM sent over UDP.

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