public class TrackerRPC extends ReplyHandler
| Constructor and Description |
|---|
TrackerRPC(PeerBean peerBean,
ConnectionBean connectionBean) |
| Modifier and Type | Method and Description |
|---|---|
FutureResponse |
addToTracker(PeerAddress remoteNode,
Number160 locationKey,
Number160 domainKey,
Data attachement,
boolean signMessage,
boolean primary) |
FutureResponse |
addToTrackerReplication(PeerAddress remoteNode,
Number160 locationKey,
Number160 domainKey,
Data data,
boolean signMessage) |
boolean |
checkMessage(Message message)
Before a reply can be done, the message needs to be checked.
|
FutureResponse |
getFromTracker(PeerAddress remoteNode,
Number160 locationKey,
Number160 domainKey,
boolean expectAttachement,
boolean signMessage) |
PeerAddress |
getPeerAddress() |
Message |
handleResponse(Message message)
If the message is OK, that has been previously checked by the user using
checkMessage, a reply to the message is generated here.
|
createMessage, exceptionCaught, forwardMessage, isSign, registerIoHandler, setSignbindRequested, channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, handleDownstream, handleUpstream, messageReceived, setInterestOpsRequested, unbindRequested, writeComplete, writeRequestedpublic TrackerRPC(PeerBean peerBean, ConnectionBean connectionBean)
peerBean - atLeastTrackerSize - Upper size is 27, lower size can be specified.dataSize - public PeerAddress getPeerAddress()
public FutureResponse addToTrackerReplication(PeerAddress remoteNode, Number160 locationKey, Number160 domainKey, Data data, boolean signMessage)
public FutureResponse addToTracker(PeerAddress remoteNode, Number160 locationKey, Number160 domainKey, Data attachement, boolean signMessage, boolean primary)
public FutureResponse getFromTracker(PeerAddress remoteNode, Number160 locationKey, Number160 domainKey, boolean expectAttachement, boolean signMessage)
public boolean checkMessage(Message message)
ReplyHandlercheckMessage in class ReplyHandlermessage - Request messagepublic Message handleResponse(Message message) throws Exception
ReplyHandlerhandleResponse in class ReplyHandlermessage - Request messageExceptionCopyright © 2011. All Rights Reserved.