public class HandshakeRPC extends ReplyHandler
| Constructor and Description |
|---|
HandshakeRPC(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 |
fireTCP(PeerAddress remoteNode,
ChannelCreator channelCreator) |
FutureResponse |
fireUDP(PeerAddress remoteNode,
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.
|
FutureResponse |
pingBroadcastUDP(PeerAddress remoteNode,
ChannelCreator channelCreator) |
FutureResponse |
pingTCP(PeerAddress remoteNode,
ChannelCreator channelCreator) |
FutureResponse |
pingTCPDiscover(PeerAddress remoteNode,
ChannelCreator channelCreator) |
FutureResponse |
pingTCPProbe(PeerAddress remoteNode,
ChannelCreator channelCreator) |
FutureResponse |
pingUDP(PeerAddress remoteNode,
ChannelCreator channelCreator) |
FutureResponse |
pingUDPDiscover(PeerAddress remoteNode,
ChannelCreator channelCreator) |
FutureResponse |
pingUDPProbe(PeerAddress remoteNode,
ChannelCreator channelCreator) |
createMessage, exceptionCaught, forwardMessage, registerIoHandler, setSignReplybindRequested, channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, handleDownstream, handleUpstream, messageReceived, setInterestOpsRequested, unbindRequested, writeComplete, writeRequestedpublic HandshakeRPC(PeerBean peerBean, ConnectionBean connectionBean)
public FutureResponse pingBroadcastUDP(PeerAddress remoteNode, ChannelCreator channelCreator)
public FutureResponse pingUDP(PeerAddress remoteNode, ChannelCreator channelCreator)
public FutureResponse pingTCP(PeerAddress remoteNode, ChannelCreator channelCreator)
public FutureResponse fireUDP(PeerAddress remoteNode, ChannelCreator channelCreator)
public FutureResponse fireTCP(PeerAddress remoteNode, ChannelCreator channelCreator)
public FutureResponse pingUDPDiscover(PeerAddress remoteNode, ChannelCreator channelCreator)
public FutureResponse pingTCPDiscover(PeerAddress remoteNode, ChannelCreator channelCreator)
public FutureResponse pingUDPProbe(PeerAddress remoteNode, ChannelCreator channelCreator)
public FutureResponse pingTCPProbe(PeerAddress remoteNode, ChannelCreator channelCreator)
public boolean checkMessage(Message message)
ReplyHandlercheckMessage in class ReplyHandlermessage - Request messagepublic Message handleResponse(Message message, boolean sign) throws Exception
ReplyHandlerhandleResponse in class ReplyHandlermessage - Request messageExceptionCopyright © 2011. All Rights Reserved.