rice.p2p.past.messaging
Class InsertMessage

java.lang.Object
  extended byrice.p2p.past.messaging.PastMessage
      extended byrice.p2p.past.messaging.ContinuationMessage
          extended byrice.p2p.past.messaging.InsertMessage
All Implemented Interfaces:
Continuation, Message, java.io.Serializable

public class InsertMessage
extends ContinuationMessage

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class rice.Continuation
Continuation.ExternalContinuation, Continuation.ListenerContinuation, Continuation.StandardContinuation
 
Field Summary
 
Fields inherited from class rice.p2p.past.messaging.ContinuationMessage
exception, response
 
Fields inherited from class rice.p2p.past.messaging.PastMessage
dest, id, isResponse, source
 
Constructor Summary
InsertMessage(int uid, PastContent content, NodeHandle source, Id dest)
          Constructor which takes a unique integer Id, as well as the data to be stored
 
Method Summary
 PastContent getContent()
          Method which returns the content
 java.lang.String toString()
          Returns a string representation of this message
 
Methods inherited from class rice.p2p.past.messaging.ContinuationMessage
getResponse, receiveException, receiveResult, returnResponse
 
Methods inherited from class rice.p2p.past.messaging.PastMessage
addHop, getDestination, getSource, getUID, isResponse, setResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InsertMessage

public InsertMessage(int uid,
                     PastContent content,
                     NodeHandle source,
                     Id dest)
Constructor which takes a unique integer Id, as well as the data to be stored

Parameters:
uid - The unique id
content - The content to be inserted
source - The source address
dest - The destination address
Method Detail

getContent

public PastContent getContent()
Method which returns the content

Returns:
The contained content

toString

public java.lang.String toString()
Returns a string representation of this message

Returns:
A string representing this message





Imprint-Dataprotection