|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.pastry.messaging.Message
rice.pastry.messaging.PRawMessage
rice.pastry.commonapi.PastryEndpointMessage
public class PastryEndpointMessage
This class is an internal message to the commonapi gluecode.
| Field Summary | |
|---|---|
protected RawMessage |
message
|
static short |
TYPE
|
| Fields inherited from class rice.pastry.messaging.Message |
|---|
DEFAULT_PRIORITY_LEVEL |
| Fields inherited from interface rice.p2p.commonapi.Message |
|---|
HIGH_PRIORITY, LOW_PRIORITY, LOWEST_PRIORITY, MAX_PRIORITY, MEDIUM_HIGH_PRIORITY, MEDIUM_LOW_PRIORITY, MEDIUM_PRIORITY |
| Constructor Summary | |
|---|---|
PastryEndpointMessage(int address,
InputBuffer buf,
MessageDeserializer md,
NodeHandle sender)
|
|
PastryEndpointMessage(int address,
Message message,
NodeHandle sender)
Constructor. |
|
PastryEndpointMessage(int address,
RawMessage message,
NodeHandle sender)
|
|
| Method Summary | |
|---|---|
Message |
getMessage()
Returns the internal message |
short |
getType()
Raw Serialization |
void |
serialize(OutputBuffer buf)
|
void |
setMessage(Message message)
Returns the internal message |
void |
setMessage(RawMessage message)
Returns the internal message |
java.lang.String |
toString()
Returns the String representation of this message |
| Methods inherited from class rice.pastry.messaging.Message |
|---|
getDate, getDestination, getPriority, getSender, getSenderId, setPriority, setSender, stamp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface rice.p2p.commonapi.Message |
|---|
getPriority |
| Field Detail |
|---|
public static final short TYPE
protected RawMessage message
| Constructor Detail |
|---|
public PastryEndpointMessage(int address,
Message message,
NodeHandle sender)
pn - the pastry node that the application attaches to.
public PastryEndpointMessage(int address,
RawMessage message,
NodeHandle sender)
public PastryEndpointMessage(int address,
InputBuffer buf,
MessageDeserializer md,
NodeHandle sender)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public Message getMessage()
public void setMessage(Message message)
public void setMessage(RawMessage message)
public java.lang.String toString()
toString in class java.lang.Objectpublic short getType()
public void serialize(OutputBuffer buf)
throws java.io.IOException
java.io.IOException
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||