LimeWire Consolidated API

com.limegroup.gnutella.messages.vendor
Class AdvancedStatsToggle

java.lang.Object
  extended by com.limegroup.gnutella.messages.AbstractMessage
      extended by com.limegroup.gnutella.messages.vendor.AbstractVendorMessage
          extended by com.limegroup.gnutella.messages.vendor.RoutableGGEPMessage
              extended by com.limegroup.gnutella.messages.vendor.AdvancedStatsToggle
All Implemented Interfaces:
Message, VendorMessage, VendorMessage.ControlMessage, Comparable<Message>, SecureMessage

public class AdvancedStatsToggle
extends RoutableGGEPMessage

Vendor message that toggles collecting of advanced stats on or off.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.limegroup.gnutella.messages.vendor.RoutableGGEPMessage
RoutableGGEPMessage.GGEPSigner
 
Nested classes/interfaces inherited from interface org.limewire.security.SecureMessage
SecureMessage.Status
 
Nested classes/interfaces inherited from interface com.limegroup.gnutella.messages.vendor.VendorMessage
VendorMessage.ControlMessage
 
Nested classes/interfaces inherited from interface com.limegroup.gnutella.messages.Message
Message.MessageCounter, Message.Network
 
Field Summary
 
Fields inherited from class com.limegroup.gnutella.messages.vendor.RoutableGGEPMessage
ggep
 
Fields inherited from interface com.limegroup.gnutella.messages.vendor.VendorMessage
F_ADVANCED_TOGGLE, F_BEAR_VENDOR_ID, F_CAPABILITIES, F_CONTENT_REQ, F_CONTENT_RESP, F_CRAWLER_PING, F_CRAWLER_PONG, F_DHT_CONTACTS, F_GIVE_STATS, F_GTKG_VENDOR_ID, F_HEADER_UPDATE, F_HOPS_FLOW, F_INSPECTION_REQ, F_INSPECTION_RESP, F_LIME_ACK, F_LIME_VENDOR_ID, F_MESSAGES_SUPPORTED, F_NULL_VENDOR_ID, F_OOB_PROXYING_CONTROL, F_PUSH_PROXY_ACK, F_PUSH_PROXY_REQ, F_REPLY_NUMBER, F_SIMPP, F_SIMPP_REQ, F_STATISTICS, F_TCP_CONNECT_BACK, F_UDP_CONNECT_BACK, F_UDP_CONNECT_BACK_REDIR, F_UDP_HEAD_PING, F_UDP_HEAD_PONG, F_UPDATE_REQ, F_UPDATE_RESP, LENGTH_MINUS_PAYLOAD
 
Fields inherited from interface com.limegroup.gnutella.messages.Message
F_PING, F_PING_REPLY, F_PUSH, F_QUERY, F_QUERY_REPLY, F_ROUTE_TABLE_UPDATE, F_UDP_CONNECTION, F_VENDOR_MESSAGE, F_VENDOR_MESSAGE_STABLE
 
Constructor Summary
AdvancedStatsToggle(byte[] guid, byte ttl, byte hops, int version, byte[] payload, Message.Network network)
          Network constructor..
AdvancedStatsToggle(RoutableGGEPMessage.GGEPSigner signer, long version, int time)
           
 
Method Summary
 int getTime()
           
 boolean shutOffNow()
           
 
Methods inherited from class com.limegroup.gnutella.messages.vendor.RoutableGGEPMessage
getDestinationAddress, getReturnAddress, getRoutableVersion, getSecureSignature, getSecureStatus, setSecureStatus, updateSignatureWithSecuredBytes
 
Methods inherited from class com.limegroup.gnutella.messages.vendor.AbstractVendorMessage
equals, getPayload, getVersion, hashCode, writePayload, writeVendorPayload
 
Methods inherited from class com.limegroup.gnutella.messages.AbstractMessage
compareTo, getCreationTime, getFunc, getGUID, getHandlerClass, getHops, getLength, getNetwork, getPriority, getTotalLength, getTTL, hop, isMulticast, isTCP, isUDP, isUnknownNetwork, makeGuid, repOk, setGUID, setHops, setPriority, setTTL, toString, updateLength, write, write, writeQuickly
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.limegroup.gnutella.messages.vendor.VendorMessage
getVersion
 
Methods inherited from interface com.limegroup.gnutella.messages.Message
getCreationTime, getFunc, getGUID, getHandlerClass, getHops, getLength, getNetwork, getPriority, getTotalLength, getTTL, hop, isMulticast, isTCP, isUDP, isUnknownNetwork, setHops, setPriority, setTTL, write, write, writeQuickly
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

AdvancedStatsToggle

public AdvancedStatsToggle(byte[] guid,
                           byte ttl,
                           byte hops,
                           int version,
                           byte[] payload,
                           Message.Network network)
                    throws BadPacketException
Network constructor.. this message will not be sent from nodes.

Throws:
BadPacketException

AdvancedStatsToggle

public AdvancedStatsToggle(RoutableGGEPMessage.GGEPSigner signer,
                           long version,
                           int time)
Method Detail

shutOffNow

public boolean shutOffNow()
Returns:
if the advanced stats should be shut off immediately

getTime

public int getTime()
Returns:
the amount of time in milliseconds to keep advanced stats on.

LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.