rice.p2p.past.messaging
Class CacheMessage
java.lang.Object
rice.p2p.past.messaging.PastMessage
rice.p2p.past.messaging.CacheMessage
- All Implemented Interfaces:
- java.io.Serializable, Message, RawMessage
public class CacheMessage
- extends PastMessage
- Version:
- $Id: CacheMessage.java 3524 2007-01-09 14:09:27Z jeffh $
- Author:
- Alan Mislove, Ansley Post, Peter Druschel
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE
public static final short TYPE
- See Also:
- Constant Field Values
content
protected RawPastContent content
CacheMessage
public CacheMessage(int uid,
PastContent content,
NodeHandle source,
Id dest)
- Constructor which takes a unique integer Id and the local id
- Parameters:
uid
- The unique id
CacheMessage
public CacheMessage(int uid,
RawPastContent content,
NodeHandle source,
Id dest)
getContent
public PastContent getContent()
- Method which returns the content
- Returns:
- The content
returnResponse
public void returnResponse(Continuation c,
Environment env,
java.lang.String instance)
- 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
getType
public short getType()
- Raw Serialization
serialize
public void serialize(OutputBuffer buf)
throws java.io.IOException
- Specified by:
serialize
in interface RawMessage
- Overrides:
serialize
in class PastMessage
- Throws:
java.io.IOException
build
public static CacheMessage build(InputBuffer buf,
Endpoint endpoint,
PastContentDeserializer pcd)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2001-2005 - Rice Pastry.