|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReplyHandler
An interface for those things that handle replies and thus are placed as values in RouteTables.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.limewire.io.IpPort |
|---|
IpPort.IpComparator, IpPort.IpPortComparator |
| Field Summary |
|---|
| Fields inherited from interface org.limewire.io.IpPort |
|---|
COMPARATOR, EMPTY_LIST, EMPTY_SET, IP_COMPARATOR |
| Method Summary | |
|---|---|
boolean |
allowNewPings()
Determines whether new pings should be allowed from this reply handler. |
void |
countDroppedMessage()
|
byte[] |
getClientGUID()
Gets the clientGUID of this ReplyHandler. |
String |
getLocalePref()
access the locale thats associated with this replyhandler |
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 |
void |
handleSimppVM(SimppVM simppVM)
Handles SimppVM |
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. |
void |
reply(Message m)
Just sends whatever message we ask it to. |
boolean |
supportsPongCaching()
Returns whether or not this node supports pong caching. |
| Methods inherited from interface org.limewire.io.IpPort |
|---|
getAddress, getInetAddress, getInetSocketAddress, getPort |
| Method Detail |
|---|
void handlePingReply(PingReply pingReply,
ReplyHandler handler)
void handleQueryReply(QueryReply queryReply,
ReplyHandler handler)
void handlePushRequest(PushRequest pushRequest,
ReplyHandler handler)
int getNumMessagesReceived()
void countDroppedMessage()
boolean isPersonalSpam(Message m)
boolean isOutgoing()
boolean isKillable()
boolean isSupernodeClientConnection()
boolean isOpen()
boolean isLeafConnection()
boolean isHighDegreeConnection()
boolean isUltrapeerQueryRoutingConnection()
boolean isGoodUltrapeer()
boolean isGoodLeaf()
boolean supportsPongCaching()
boolean allowNewPings()
boolean isStable()
String getLocalePref()
void reply(Message m)
void handleSimppVM(SimppVM simppVM)
throws IOException
IOExceptionbyte[] getClientGUID()
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||