|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.netty.channel.SimpleChannelHandler
net.tomp2p.rpc.ReplyHandler
net.tomp2p.rpc.NeighborRPC
public class NeighborRPC
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler |
|---|
org.jboss.netty.channel.ChannelHandler.Sharable |
| Field Summary | |
|---|---|
static int |
NEIGHBOR_SIZE
|
| Constructor Summary | |
|---|---|
NeighborRPC(PeerBean peerBean,
ConnectionBean connectionBean)
|
|
| Method Summary | |
|---|---|
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)
|
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. |
| Methods inherited from class net.tomp2p.rpc.ReplyHandler |
|---|
createMessage, exceptionCaught, forwardMessage, isSign, registerIoHandler, setSign |
| Methods inherited from class org.jboss.netty.channel.SimpleChannelHandler |
|---|
bindRequested, channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, handleDownstream, handleUpstream, messageReceived, setInterestOpsRequested, unbindRequested, writeComplete, writeRequested |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NEIGHBOR_SIZE
| Constructor Detail |
|---|
public NeighborRPC(PeerBean peerBean,
ConnectionBean connectionBean)
| Method Detail |
|---|
public FutureResponse closeNeighbors(PeerAddress remoteNode,
Number160 locationKey,
Number160 domainKey,
Collection<Number160> contentKeys,
Message.Command command,
boolean isDigest,
boolean forceSocket)
remoteNode - locationKey - domainKey - contentKeys - neighborType - requestType - forceSocket -
public boolean checkMessage(Message message)
ReplyHandler
checkMessage in class ReplyHandlermessage - Request message
public Message handleResponse(Message message)
throws IOException
ReplyHandler
handleResponse in class ReplyHandlermessage - Request message
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||