|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for those things that handle replies and thus are placed as values in RouteTables. This interface is implemented by ManagedConnection and by MessageRouter.ForMeReplyHandler.
Method Summary | |
boolean |
allowNewPings()
Determines whether new pings should be allowed from this reply handler. |
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)
Handle the PushRequest, failing silently |
void |
handleQueryReply(QueryReply queryReply,
ReplyHandler handler)
Handle the QueryReply, failing silently |
boolean |
isGoodLeaf()
Returns whether or not this handler is considered a "good" leaf connection. |
boolean |
isGoodUltrapeer()
Returns whether or not this handler is considered a "good" Ultrapeer connection. |
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()
Returns whether or not this reply handler is a leaf -- whether or not the host on the other end of this connection is a leaf of this (necessarily) Ultrapeer. |
boolean |
isOpen()
Returns true if the reply handler is still able to handle a reply. |
boolean |
isOutgoing()
|
boolean |
isPersonalSpam(Message m)
|
boolean |
isStable()
Determines whether or not this ReplyHandler is considered stable. |
boolean |
isSupernodeClientConnection()
Returns whether or not this ReplyHandler sends replies from an Ultrapeer to a leaf. |
boolean |
isUltrapeerQueryRoutingConnection()
Returns whether or not this handler uses Ultrapeer query routing. |
boolean |
supportsPongCaching()
Returns whether or not this node supports pong caching. |
Method Detail |
public void handlePingReply(PingReply pingReply, ReplyHandler handler)
public void handleQueryReply(QueryReply queryReply, ReplyHandler handler)
public void handlePushRequest(PushRequest pushRequest, ReplyHandler handler)
public int getNumMessagesReceived()
public void countDroppedMessage()
public java.util.Set getDomains()
public boolean isPersonalSpam(Message m)
public boolean isOutgoing()
public boolean isKillable()
public boolean isSupernodeClientConnection()
public boolean isOpen()
public boolean isLeafConnection()
public boolean isHighDegreeConnection()
public boolean isUltrapeerQueryRoutingConnection()
public boolean isGoodUltrapeer()
public boolean isGoodLeaf()
public boolean supportsPongCaching()
public boolean allowNewPings()
public java.net.InetAddress getInetAddress()
public boolean isStable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |