|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.limegroup.gnutella.ForMeReplyHandler
public class ForMeReplyHandler
This is the class that goes in the route table when a request is sent whose reply is for me.
| 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 | |
|---|---|
static boolean |
addXMLToResponses(QueryReply qr,
LimeXMLDocumentHelper limeXMLDocumentHelper)
Adds XML to the responses in a QueryReply. |
boolean |
allowNewPings()
Returns whether or not to allow new pings from this ReplyHandler. |
void |
countDroppedMessage()
|
String |
getAddress()
Assessor for the address string. |
byte[] |
getClientGUID()
Gets the clientGUID of this ReplyHandler. |
InetAddress |
getInetAddress()
Assessor for the InetAddress for this host. |
InetSocketAddress |
getInetSocketAddress()
Accessor for the InetSocketAddress that can describe the IP & Port. |
String |
getLocalePref()
access the locale thats associated with this replyhandler |
int |
getNumMessagesReceived()
|
int |
getPort()
Assessor for the port this host is listening on. |
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 |
void |
handleQueryReply(QueryReply reply,
ReplyHandler handler,
Address address)
Handles a query reply locally. |
void |
handleSecureMessage(SecureMessage sm,
boolean passed)
Notification that a message is secure. |
void |
handleSimppVM(SimppVM simppVM)
Handles SimppVM |
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. |
void |
register(ScheduledExecutorService backgroundExecutor,
ServiceScheduler serviceScheduler)
|
void |
reply(Message m)
drops the message |
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 |
|---|
@Inject
public void register(ScheduledExecutorService backgroundExecutor,
ServiceScheduler serviceScheduler)
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 handleQueryReply(QueryReply reply,
ReplyHandler handler,
Address address)
address - can be null, if not null overrides the address info in reply
public void handleSecureMessage(SecureMessage sm,
boolean passed)
handleSecureMessage in interface SecureMessageCallback
public static boolean addXMLToResponses(QueryReply qr,
LimeXMLDocumentHelper limeXMLDocumentHelper)
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 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 InetAddress getInetAddress()
IpPort
getInetAddress in interface IpPortpublic InetSocketAddress getInetSocketAddress()
IpPort
getInetSocketAddress in interface IpPortpublic int getPort()
IpPort
getPort in interface IpPortpublic String getAddress()
IpPort
getAddress in interface IpPortpublic void handleSimppVM(SimppVM simppVM)
ReplyHandler
handleSimppVM in interface ReplyHandlerpublic boolean isStable()
isStable in interface ReplyHandlerpublic String getLocalePref()
ReplyHandler
getLocalePref in interface ReplyHandlerpublic void reply(Message m)
reply in interface ReplyHandlerpublic byte[] getClientGUID()
ReplyHandler
getClientGUID in interface ReplyHandler
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||