Rice Pastry API

rice.p2p.past.messaging
Class InsertMessage

java.lang.Object
  |
  +--rice.p2p.past.messaging.PastMessage
        |
        +--rice.p2p.past.messaging.ContinuationMessage
              |
              +--rice.p2p.past.messaging.InsertMessage
All Implemented Interfaces:
Continuation, Message, java.io.Serializable

public class InsertMessage
extends ContinuationMessage

Version:
$Id: InsertMessage.java,v 1.7 2003/07/23 05:11:04 amislove Exp $
Author:
Alan Mislove, Ansley Post, Peter Druschel
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, rice.p2p.past.PastContent content, rice.p2p.commonapi.NodeHandle source, rice.p2p.commonapi.Id dest)
          Constructor which takes a unique integer Id, as well as the data to be stored
 
Method Summary
 rice.p2p.past.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,
                     rice.p2p.past.PastContent content,
                     rice.p2p.commonapi.NodeHandle source,
                     rice.p2p.commonapi.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 rice.p2p.past.PastContent getContent()
Method which returns the content

Returns:
The contained content

toString

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

Overrides:
toString in class java.lang.Object
Returns:
A string representing this message

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection