|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.ForMeReplyHandler
This is the class that goes in the route table when a request is sent whose reply is for me.
Method Summary | |
boolean |
allowNewPings()
Returns whether or not to allow new pings from this ReplyHandler. |
void |
countDroppedMessage()
|
java.util.Set |
getDomains()
|
java.net.InetAddress |
getInetAddress()
Accessor for the InetAddress instance for this host. |
int |
getNumMessagesReceived()
|
void |
handlePingReply(PingReply pingReply,
ReplyHandler handler)
Handle the PingReply, failing silently |
void |
handlePushRequest(PushRequest pushRequest,
ReplyHandler handler)
If there are problems with the request, just ignore it. |
void |
handleQueryReply(QueryReply reply,
ReplyHandler handler)
Handle the QueryReply, failing silently |
static ReplyHandler |
instance()
Singleton accessor. |
boolean |
isGoodLeaf()
Returns false, as this node is not a "connection" in the first place, and so could never have sent the requisite headers. |
boolean |
isGoodUltrapeer()
Returns false, as this node is not a "connection" in the first place, and so could never have sent the requisite headers. |
boolean |
isHighDegreeConnection()
Returns whether or not this connection is a high-degree connection, meaning that it maintains a high number of intra-Ultrapeer connections. |
boolean |
isKillable()
Returns whether or not this handler is killable by the handler watchdog. |
boolean |
isLeafConnection()
Implements ReplyHandler interface. |
boolean |
isOpen()
Returns true if the reply handler is still able to handle a reply. |
boolean |
isOutgoing()
|
boolean |
isPersonalSpam(Message m)
|
boolean |
isStable()
Returns true to indicate that this node is always stable. |
boolean |
isSupernodeClientConnection()
Returns whether or not this ReplyHandler sends replies from an Ultrapeer to a leaf. |
boolean |
isUltrapeerQueryRoutingConnection()
Returns false, since this connection is me, and it's not possible to pass query routing tables to oneself. |
boolean |
supportsPongCaching()
Returns true, since we always support pong caching. |
void |
updateHorizonStats(PingReply pingReply)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ReplyHandler instance()
public void handlePingReply(PingReply pingReply, ReplyHandler handler)
ReplyHandler
handlePingReply
in interface ReplyHandler
public void handleQueryReply(QueryReply reply, ReplyHandler handler)
ReplyHandler
handleQueryReply
in interface ReplyHandler
public void handlePushRequest(PushRequest pushRequest, ReplyHandler handler)
handlePushRequest
in interface ReplyHandler
public boolean isOpen()
ReplyHandler
isOpen
in interface ReplyHandler
public int getNumMessagesReceived()
getNumMessagesReceived
in interface ReplyHandler
public void countDroppedMessage()
countDroppedMessage
in interface ReplyHandler
public boolean isSupernodeClientConnection()
ReplyHandler
isSupernodeClientConnection
in interface ReplyHandler
public java.util.Set getDomains()
getDomains
in interface ReplyHandler
public boolean isPersonalSpam(Message m)
isPersonalSpam
in interface ReplyHandler
public void updateHorizonStats(PingReply pingReply)
public boolean isOutgoing()
isOutgoing
in interface ReplyHandler
public boolean isKillable()
ReplyHandler
isKillable
in interface ReplyHandler
public boolean isLeafConnection()
isLeafConnection
in interface ReplyHandler
public boolean isHighDegreeConnection()
isHighDegreeConnection
in interface ReplyHandler
public boolean isUltrapeerQueryRoutingConnection()
isUltrapeerQueryRoutingConnection
in interface ReplyHandler
public boolean isGoodUltrapeer()
isGoodUltrapeer
in interface ReplyHandler
public boolean isGoodLeaf()
isGoodLeaf
in interface ReplyHandler
public boolean supportsPongCaching()
supportsPongCaching
in interface ReplyHandler
public boolean allowNewPings()
allowNewPings
in interface ReplyHandler
public java.net.InetAddress getInetAddress()
ReplyHandler
getInetAddress
in interface ReplyHandler
public boolean isStable()
isStable
in interface ReplyHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |