net.tomp2p.rpc
Class BroadcastRPC

java.lang.Object
  extended by org.jboss.netty.channel.SimpleChannelHandler
      extended by net.tomp2p.rpc.ReplyHandler
          extended by net.tomp2p.rpc.BroadcastRPC
All Implemented Interfaces:
org.jboss.netty.channel.ChannelDownstreamHandler, org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler

public class BroadcastRPC
extends ReplyHandler


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
org.jboss.netty.channel.ChannelHandler.Sharable
 
Constructor Summary
BroadcastRPC(PeerBean peerBean, ConnectionBean connectionBean, BroadcastHandler broadcastHandler)
           
 
Method Summary
 BroadcastHandler getBroadcastHandler()
           
 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 send(PeerAddress remotePeer, Number160 messageKey, Map<Number160,Data> dataMap, ChannelCreator channelCreator, int idleTCPMillis, boolean forceUDP)
           
 FutureResponse send(PeerAddress remotePeer, Number160 messageKey, Map<Number160,Data> dataMap, int hopCounter, ChannelCreator channelCreator, int idleTCPMillis, boolean forceUDP)
           
 
Methods inherited from class net.tomp2p.rpc.ReplyHandler
createMessage, createResponseMessage, exceptionCaught, forwardMessage, getConnectionBean, getPeerBean, registerIoHandler, setSignReply
 
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
 

Constructor Detail

BroadcastRPC

public BroadcastRPC(PeerBean peerBean,
                    ConnectionBean connectionBean,
                    BroadcastHandler broadcastHandler)
Method Detail

send

public FutureResponse send(PeerAddress remotePeer,
                           Number160 messageKey,
                           Map<Number160,Data> dataMap,
                           ChannelCreator channelCreator,
                           int idleTCPMillis,
                           boolean forceUDP)

send

public FutureResponse send(PeerAddress remotePeer,
                           Number160 messageKey,
                           Map<Number160,Data> dataMap,
                           int hopCounter,
                           ChannelCreator channelCreator,
                           int idleTCPMillis,
                           boolean forceUDP)

handleResponse

public Message handleResponse(Message message,
                              boolean sign)
                       throws Exception
Description copied from class: ReplyHandler
If the message is OK, that has been previously checked by the user using checkMessage, a reply to the message is generated here.

Specified by:
handleResponse in class ReplyHandler
Parameters:
message - Request message
Throws:
Exception

getBroadcastHandler

public BroadcastHandler getBroadcastHandler()


Copyright © 2013. All Rights Reserved.