|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.p2p.past.messaging.PastMessage rice.p2p.past.messaging.CacheMessage
Field Summary | |
protected RawPastContent |
content
DESCRIBE THE FIELD |
static short |
TYPE
DESCRIBE THE FIELD |
Fields inherited from class rice.p2p.past.messaging.PastMessage |
dest, id, isResponse, source |
Fields inherited from interface rice.p2p.commonapi.Message |
HIGH_PRIORITY, LOW_PRIORITY, MAX_PRIORITY, MEDIUM_HIGH_PRIORITY, MEDIUM_LOW_PRIORITY, MEDIUM_PRIORITY |
Constructor Summary | |
CacheMessage(int uid,
PastContent content,
NodeHandle source,
Id dest)
Constructor which takes a unique integer Id and the local id |
|
CacheMessage(int uid,
RawPastContent content,
NodeHandle source,
Id dest)
Constructor for CacheMessage. |
Method Summary | |
static CacheMessage |
build(InputBuffer buf,
Endpoint endpoint,
PastContentDeserializer pcd)
DESCRIBE THE METHOD |
PastContent |
getContent()
Method which returns the content |
short |
getType()
Raw Serialization ************************************** |
void |
returnResponse(Continuation c,
Environment env,
java.lang.String instance)
Method by which this message is supposed to return it's response. |
void |
serialize(OutputBuffer buf)
DESCRIBE THE METHOD |
java.lang.String |
toString()
Returns a string representation of this message |
Methods inherited from class rice.p2p.past.messaging.PastMessage |
addHop, getDestination, getPriority, getSource, getUID, isResponse, setResponse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected RawPastContent content
public static final short TYPE
Constructor Detail |
public CacheMessage(int uid, PastContent content, NodeHandle source, Id dest)
uid
- The unique idcontent
- DESCRIBE THE PARAMETERsource
- DESCRIBE THE PARAMETERdest
- DESCRIBE THE PARAMETERpublic CacheMessage(int uid, RawPastContent content, NodeHandle source, Id dest)
uid
- DESCRIBE THE PARAMETERcontent
- DESCRIBE THE PARAMETERsource
- DESCRIBE THE PARAMETERdest
- DESCRIBE THE PARAMETERMethod Detail |
public PastContent getContent()
public short getType()
public void returnResponse(Continuation c, Environment env, java.lang.String instance)
returnResponse
in class PastMessage
c
- The continuation to return the reponse to.env
- DESCRIBE THE PARAMETERinstance
- DESCRIBE THE PARAMETERpublic java.lang.String toString()
public void serialize(OutputBuffer buf) throws java.io.IOException
serialize
in interface RawMessage
serialize
in class PastMessage
buf
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTIONpublic static CacheMessage build(InputBuffer buf, Endpoint endpoint, PastContentDeserializer pcd) throws java.io.IOException
buf
- DESCRIBE THE PARAMETERendpoint
- DESCRIBE THE PARAMETERpcd
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTION
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |