com.limegroup.gnutella.statistics
Class ReceivedMessageStat

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

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

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


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


UDP_ALL_MESSAGES

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


TCP_ALL_MESSAGES

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


MULTICAST_ALL_MESSAGES

public static final Statistic MULTICAST_ALL_MESSAGES
Statistic for all Multicast messages recieved.


ALL_FILTERED_MESSAGES

public static final Statistic ALL_FILTERED_MESSAGES
Statistic for all filtered messages.


ALL_DUPLICATE_QUERIES

public static final Statistic ALL_DUPLICATE_QUERIES
Statistic for all duplicate quereies.


UDP_PING_REQUESTS

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


TCP_PING_REQUESTS

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


MULTICAST_PING_REQUESTS

public static final Statistic MULTICAST_PING_REQUESTS
Statistic for Gnutella pings recieved over Multicast.


UDP_PING_REPLIES

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


TCP_PING_REPLIES

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


MULTICAST_PING_REPLIES

public static final Statistic MULTICAST_PING_REPLIES
Statistic for Gnutella pongs recieved over Multicast.


UDP_QUERY_REQUESTS

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


TCP_QUERY_REQUESTS

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


MULTICAST_QUERY_REQUESTS

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


UDP_QUERY_REPLIES

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


TCP_QUERY_REPLIES

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


MULTICAST_QUERY_REPLIES

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


UDP_PUSH_REQUESTS

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


TCP_PUSH_REQUESTS

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


MULTICAST_PUSH_REQUESTS

public static final Statistic MULTICAST_PUSH_REQUESTS
Statistic for Gnutella push requests received over Multicast


UDP_ROUTE_TABLE_MESSAGES

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


TCP_RESET_ROUTE_TABLE_MESSAGES

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


TCP_PATCH_ROUTE_TABLE_MESSAGES

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


MULTICAST_ROUTE_TABLE_MESSAGES

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


UDP_FILTERED_MESSAGES

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


TCP_FILTERED_MESSAGES

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


MULTICAST_FILTERED_MESSAGES

public static final Statistic MULTICAST_FILTERED_MESSAGES
Statistic for Gnutella filter messages recieved over Multicast.


UDP_DUPLICATE_QUERIES

public static final Statistic UDP_DUPLICATE_QUERIES
Statistic for duplicate Gnutella queries received over UDP.


TCP_DUPLICATE_QUERIES

public static final Statistic TCP_DUPLICATE_QUERIES
Statistic for duplicate Gnutella queries received over TCP.


MULTICAST_DUPLICATE_QUERIES

public static final Statistic MULTICAST_DUPLICATE_QUERIES
Statistic for duplicate Gnutella queries received over Multicast


TCP_HOPS_FLOW

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


TCP_MESSAGES_SUPPORTED

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


TCP_TCP_CONNECTBACK

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


TCP_UDP_CONNECTBACK

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


UDP_REPLY_NUMBER

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


UDP_LIME_ACK

public static final Statistic UDP_LIME_ACK
Statistic for Gnutella LimeACK VM received 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