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) |
FutureResponse |
fireUDP(PeerAddress remoteNode) |
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.
|
FutureResponse |
pingBroadcastUDP(PeerAddress remoteNode) |
FutureResponse |
pingTCP(PeerAddress remoteNode) |
FutureResponse |
pingTCPDiscover(PeerAddress remoteNode) |
FutureResponse |
pingTCPProbe(PeerAddress remoteNode) |
FutureResponse |
pingUDP(PeerAddress remoteNode) |
FutureResponse |
pingUDPDiscover(PeerAddress remoteNode) |
FutureResponse |
pingUDPProbe(PeerAddress remoteNode) |
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 HandshakeRPC(PeerBean peerBean, ConnectionBean connectionBean)
public FutureResponse pingBroadcastUDP(PeerAddress remoteNode)
public FutureResponse pingUDP(PeerAddress remoteNode)
public FutureResponse pingTCP(PeerAddress remoteNode)
public FutureResponse fireUDP(PeerAddress remoteNode)
public FutureResponse fireTCP(PeerAddress remoteNode)
public FutureResponse pingUDPDiscover(PeerAddress remoteNode)
public FutureResponse pingTCPDiscover(PeerAddress remoteNode)
public FutureResponse pingUDPProbe(PeerAddress remoteNode)
public FutureResponse pingTCPProbe(PeerAddress remoteNode)
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.