|
||||||||||
| 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 ReplyHandlerpublic boolean isOpen()
ReplyHandler
isOpen in interface ReplyHandlerpublic int getNumMessagesReceived()
getNumMessagesReceived in interface ReplyHandlerpublic void countDroppedMessage()
countDroppedMessage in interface ReplyHandlerpublic boolean isSupernodeClientConnection()
ReplyHandler
isSupernodeClientConnection in interface ReplyHandlerpublic java.util.Set getDomains()
getDomains in interface ReplyHandlerpublic boolean isPersonalSpam(Message m)
isPersonalSpam in interface ReplyHandlerpublic void updateHorizonStats(PingReply pingReply)
public boolean isOutgoing()
isOutgoing in interface ReplyHandlerpublic boolean isKillable()
ReplyHandler
isKillable in interface ReplyHandlerpublic boolean isLeafConnection()
isLeafConnection in interface ReplyHandlerpublic boolean isHighDegreeConnection()
isHighDegreeConnection in interface ReplyHandlerpublic boolean isUltrapeerQueryRoutingConnection()
isUltrapeerQueryRoutingConnection in interface ReplyHandlerpublic boolean isGoodUltrapeer()
isGoodUltrapeer in interface ReplyHandlerpublic boolean isGoodLeaf()
isGoodLeaf in interface ReplyHandlerpublic boolean supportsPongCaching()
supportsPongCaching in interface ReplyHandlerpublic boolean allowNewPings()
allowNewPings in interface ReplyHandlerpublic java.net.InetAddress getInetAddress()
ReplyHandler
getInetAddress in interface ReplyHandlerpublic boolean isStable()
isStable in interface ReplyHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||