public class NeighborRPC extends ReplyHandler
| Modifier and Type | Field and Description |
|---|---|
static int |
NEIGHBOR_SIZE |
| Constructor and Description |
|---|
NeighborRPC(PeerBean peerBean,
ConnectionBean connectionBean) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkMessage(Message message)
Before a reply can be done, the message needs to be checked.
|
FutureResponse |
closeNeighbors(PeerAddress remoteNode,
Number160 locationKey,
Number160 domainKey,
Collection<Number160> contentKeys,
Message.Command command,
boolean isDigest,
boolean forceSocket,
ChannelCreator channelCreator) |
Message |
handleResponse(Message message,
boolean sign)
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, registerIoHandler, setSignReplybindRequested, channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, handleDownstream, handleUpstream, messageReceived, setInterestOpsRequested, unbindRequested, writeComplete, writeRequestedpublic static final int NEIGHBOR_SIZE
public NeighborRPC(PeerBean peerBean, ConnectionBean connectionBean)
public FutureResponse closeNeighbors(PeerAddress remoteNode, Number160 locationKey, Number160 domainKey, Collection<Number160> contentKeys, Message.Command command, boolean isDigest, boolean forceSocket, ChannelCreator channelCreator)
remoteNode - locationKey - domainKey - contentKeys - neighborType - requestType - forceSocket - public boolean checkMessage(Message message)
ReplyHandlercheckMessage in class ReplyHandlermessage - Request messagepublic Message handleResponse(Message message, boolean sign) throws IOException
ReplyHandlerhandleResponse in class ReplyHandlermessage - Request messageIOExceptionCopyright © 2011. All Rights Reserved.