|
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.ContinuationMessage rice.p2p.past.messaging.InsertMessage
Nested Class Summary |
Field Summary | |
protected RawPastContent |
content
DESCRIBE THE FIELD |
static short |
TYPE
DESCRIBE THE FIELD |
Fields inherited from class rice.p2p.past.messaging.ContinuationMessage |
exception, response, S_EMPTY, S_JAVA_EXCEPTION, S_JAVA_RESPONSE, S_SUB, serType |
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 | |
protected |
InsertMessage(InputBuffer buf,
Endpoint endpoint,
PastContentDeserializer pcd)
Constructor for InsertMessage. |
|
InsertMessage(int uid,
PastContent content,
NodeHandle source,
Id dest)
Constructor which takes a unique integer Id, as well as the data to be stored |
|
InsertMessage(int uid,
RawPastContent content,
NodeHandle source,
Id dest)
Constructor for InsertMessage. |
Method Summary | |
static InsertMessage |
build(InputBuffer buf,
Endpoint endpoint,
PastContentDeserializer pcd)
DESCRIBE THE METHOD |
PastContent |
getContent()
Method which returns the content |
short |
getType()
Raw Serialization ************************************** |
void |
receiveException(java.lang.Exception e)
Method which builds a response for this message, using the provided exception, which was thrown |
void |
receiveResult(java.lang.Object o)
Method which builds a response for this message, using the provided object as a result. |
void |
serialize(OutputBuffer buf)
DESCRIBE THE METHOD |
protected void |
serializeHelper(OutputBuffer buf)
So that it can be subclassed without serializing a version here |
java.lang.String |
toString()
Returns a string representation of this message |
Methods inherited from class rice.p2p.past.messaging.ContinuationMessage |
deserialize, getResponse, returnResponse, serialize |
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 InsertMessage(int uid, PastContent content, NodeHandle source, Id dest)
uid
- The unique idcontent
- The content to be insertedsource
- The source addressdest
- The destination addresspublic InsertMessage(int uid, RawPastContent content, NodeHandle source, Id dest)
uid
- DESCRIBE THE PARAMETERcontent
- DESCRIBE THE PARAMETERsource
- DESCRIBE THE PARAMETERdest
- DESCRIBE THE PARAMETERprotected InsertMessage(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 EXCEPTIONMethod Detail |
public PastContent getContent()
public short getType()
public void receiveResult(java.lang.Object o)
receiveResult
in interface Continuation
receiveResult
in class ContinuationMessage
o
- The object argumentpublic void receiveException(java.lang.Exception e)
receiveException
in interface Continuation
receiveException
in class ContinuationMessage
e
- The exception argumentpublic java.lang.String toString()
public void serialize(OutputBuffer buf) throws java.io.IOException
serialize
in interface RawMessage
serialize
in class ContinuationMessage
buf
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTIONprotected void serializeHelper(OutputBuffer buf) throws java.io.IOException
buf
-
java.io.IOException
public static InsertMessage 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 |