Rice Pastry API

rice.p2p.past.messaging
Class CacheMessage

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

public class CacheMessage
extends PastMessage

Version:
$Id: CacheMessage.java,v 1.2 2003/07/23 05:11:04 amislove Exp $
Author:
Alan Mislove, Ansley Post, Peter Druschel
See Also:
Serialized Form

Field Summary
protected  rice.p2p.past.PastContent content
           
 
Fields inherited from class rice.p2p.past.messaging.PastMessage
dest, id, isResponse, source
 
Constructor Summary
CacheMessage(int uid, rice.p2p.past.PastContent content, rice.p2p.commonapi.NodeHandle source, rice.p2p.commonapi.Id dest)
          Constructor which takes a unique integer Id and the local id
 
Method Summary
 rice.p2p.past.PastContent getContent()
          Method which returns the content
 void returnResponse(rice.Continuation c)
          Method by which this message is supposed to return it's response.
 java.lang.String toString()
          Returns a string representation of this message
 
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
 

Field Detail

content

protected rice.p2p.past.PastContent content
Constructor Detail

CacheMessage

public CacheMessage(int uid,
                    rice.p2p.past.PastContent content,
                    rice.p2p.commonapi.NodeHandle source,
                    rice.p2p.commonapi.Id dest)
Constructor which takes a unique integer Id and the local id

Parameters:
uid - The unique id
Method Detail

getContent

public rice.p2p.past.PastContent getContent()
Method which returns the content

Returns:
The content

returnResponse

public void returnResponse(rice.Continuation c)
Method by which this message is supposed to return it's response.

Specified by:
returnResponse in class PastMessage
Parameters:
c - The continuation to return the reponse to.

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