Uses of Class
net.tomp2p.message.Message

Packages that use Message
net.tomp2p.connection   
net.tomp2p.futures   
net.tomp2p.message   
net.tomp2p.rpc   
 

Uses of Message in net.tomp2p.connection
 

Methods in net.tomp2p.connection with parameters of type Message
 void DispatcherReply.add(Message message, RequestHandlerTCP requestHandler)
           
 org.jboss.netty.channel.ChannelFuture TCPChannelCache.getChannel(org.jboss.netty.channel.ChannelHandler timeoutHandler, FutureResponse futureResponse, int connectTimeoutMillis, int tcpIdleTimeoutMillis, Message message, RequestHandlerTCP requestHandler)
           
 org.jboss.netty.channel.ChannelFuture TCPChannelCache.getChannel(String channelName, org.jboss.netty.channel.ChannelHandler timeoutHandler, FutureResponse futureResponse, int connectTimeoutMillis, int tcpIdleTimeoutMillis, Message message, RequestHandlerTCP requestHandler)
           
 void Sender.sendBroadcastUDP(Message message, RequestHandlerUDP handler)
           
 void Sender.sendTCP(Message message, RequestHandlerTCP handler)
           
 void Sender.sendTCP(String channelName, Message message, RequestHandlerTCP handler)
           
 void Sender.sendUDP(Message message, RequestHandlerUDP handler)
           
 

Uses of Message in net.tomp2p.futures
 

Methods in net.tomp2p.futures that return Message
 Message FutureResponse.getRequest()
          The future response always keeps a reference to the request.
 Message FutureResponse.getResponse()
          Returns the response message.
 

Methods in net.tomp2p.futures with parameters of type Message
 void FutureData.setResponse(Message responseMessage)
           
 void FutureResponse.setResponse(Message responseMessage)
          Gets called if a peer responds.
 

Constructors in net.tomp2p.futures with parameters of type Message
FutureData(Message requestMessage, boolean raw)
          Creates the request message for raw data.
FutureResponse(Message requestMessage)
           
 

Uses of Message in net.tomp2p.message
 

Methods in net.tomp2p.message that return Message
static Message MessageCodec.decodeHeader(org.jboss.netty.buffer.ChannelBuffer buffer, InetAddress sender)
          Decode a message header from a Netty buffer
 Message IntermediateMessage.getMessage()
           
 Message Message.setCommand(Message.Command command)
          Command of the message, such as GET, PING, etc.
 Message Message.setContentLength(int contentLength)
          Set payload length.
 Message Message.setContentType(Message.Content contentType)
          Convient method to set content type.
 Message Message.setDataMap(Map<Number160,Data> dataMap)
           
 Message Message.setDataMapConvert(Map<Number480,Data> dataMap)
           
 Message Message.setInteger(int int_number)
           
 Message Message.setKey(Number160 key3)
           
 Message Message.setKeyKey(Number160 key1, Number160 key2)
           
 Message Message.setKeyMap(Map<Number160,Number160> keyMap)
           
 Message Message.setKeys(Collection<Number160> keys)
           
 Message Message.setKeysConvert(Collection<Number480> keysConvert)
           
 Message Message.setLong(long long_number)
           
 Message Message.setMessageId(int messageId)
          For deserialization, we need to set the id
 Message Message.setNeighbors(Collection<PeerAddress> neighbors)
           
 Message Message.setNeighbors(Collection<PeerAddress> neighbors, int useAtMostNeighbors)
           
 Message Message.setPayload(org.jboss.netty.buffer.ChannelBuffer payload)
           
 Message Message.setPublicKey(PublicKey publicKey)
           
 Message Message.setPublicKeyAndSign(KeyPair keyPair)
           
 Message Message.setRealSender(PeerAddress realSender)
          The ID of the real sender as seen by us.
 Message Message.setRecipient(PeerAddress recipient)
          Set the ID of the recipient.
 Message Message.setSender(PeerAddress sender)
          The ID of the sender.
 Message Message.setType(Message.Type type)
          Set the message type.
 Message Message.setVersion(int version)
          For deserialization
 

Methods in net.tomp2p.message with parameters of type Message
static Data MessageCodec.decodeData(DataInput buffer, Message message)
           
static void MessageCodec.decodePayload(Message.Content content, org.jboss.netty.buffer.ChannelBuffer buffer, Message message)
          Decodes the payload from a Netty buffer in a big switch
static int MessageCodec.encodeData(Collection<DataOutput> result, DataOutputFactory factory, Message message, Data data)
           
static org.jboss.netty.buffer.ChannelBuffer MessageCodec.encodeHeader(org.jboss.netty.buffer.ChannelBuffer buffer, Message message)
          The format looks as follows: 32bit p2p version - 32bit id - 4bit message type - 4bit message name - 160bit sender id - 16bit tcp port - 16bit udp port - 160bit recipient id - 32bit message length - 16bit (4x4)content type - 8bit network address information - 32bit network information.
static void MessageCodec.encodePayload(Message message, List<org.jboss.netty.buffer.ChannelBuffer> payloadBuffers)
          Encode payload
static void MessageCodec.encodeSecurity(Message message, List<org.jboss.netty.buffer.ChannelBuffer> buffers)
           
 

Constructors in net.tomp2p.message with parameters of type Message
IntermediateMessage(Message message, List<org.jboss.netty.buffer.ChannelBuffer> buffers)
           
MessageID(Message message)
          Creates a message Id.
 

Uses of Message in net.tomp2p.rpc
 

Methods in net.tomp2p.rpc that return Message
 Message ReplyHandler.createMessage(PeerAddress recipient, Message.Command name, Message.Type type)
           
 Message ReplyHandler.forwardMessage(Message message)
           
 Message StorageRPC.handleResponse(Message message)
           
 Message TrackerRPC.handleResponse(Message message)
           
 Message HandshakeRPC.handleResponse(Message message)
           
 Message DirectDataRPC.handleResponse(Message message)
           
 Message NeighborRPC.handleResponse(Message message)
           
 Message QuitRPC.handleResponse(Message message)
           
abstract  Message ReplyHandler.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 in net.tomp2p.rpc with parameters of type Message
 boolean StorageRPC.checkMessage(Message message)
           
 boolean TrackerRPC.checkMessage(Message message)
           
 boolean HandshakeRPC.checkMessage(Message message)
           
 boolean DirectDataRPC.checkMessage(Message message)
           
 boolean NeighborRPC.checkMessage(Message message)
           
 boolean QuitRPC.checkMessage(Message message)
           
abstract  boolean ReplyHandler.checkMessage(Message message)
          Before a reply can be done, the message needs to be checked.
 Message ReplyHandler.forwardMessage(Message message)
           
 Message StorageRPC.handleResponse(Message message)
           
 Message TrackerRPC.handleResponse(Message message)
           
 Message HandshakeRPC.handleResponse(Message message)
           
 Message DirectDataRPC.handleResponse(Message message)
           
 Message NeighborRPC.handleResponse(Message message)
           
 Message QuitRPC.handleResponse(Message message)
           
abstract  Message ReplyHandler.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.
 void RequestHandlerTCP.messageReceived(Message message)
           
 

Constructors in net.tomp2p.rpc with parameters of type Message
RequestHandlerTCP(FutureResponse futureResponse, PeerBean peerBean, ConnectionBean connectionBean, Message message)
           
RequestHandlerTCP(PeerBean peerBean, ConnectionBean connectionBean, Message message)
           
RequestHandlerUDP(FutureResponse futureResponse, PeerBean peerBean, ConnectionBean connectionBean, Message message)
           
RequestHandlerUDP(PeerBean peerBean, ConnectionBean connectionBean, Message message)
           
 



Copyright © 2011. All Rights Reserved.