|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrice.p2p.multiring.messaging.RingMessage
public class RingMessage
Field Summary | |
---|---|
protected java.lang.String |
application
The name of the application which sent this message |
protected RingId |
id
The target of this ring message |
protected RawMessage |
message
The internal message to be sent |
static short |
TYPE
DESCRIBE THE FIELD |
Constructor Summary | |
---|---|
RingMessage(InputBuffer buf,
Endpoint ringEndpoint,
java.util.Hashtable endpoints)
TODO: This can probably be done more efficiently, IE, deserialize the message on getMessage(). |
|
RingMessage(RingId id,
RawMessage message,
java.lang.String application)
Constructor which takes a unique integer Id |
Method Summary | |
---|---|
java.lang.String |
getApplication()
Method which returns this messages' applicaiton name |
RingId |
getId()
Method which returns this messages' id |
Message |
getMessage()
Gets the Message attribute of the RingMessage object |
int |
getPriority()
Method which should return the priority level of this message. |
RawMessage |
getRawMessage()
Method which returns this messages' internal message |
short |
getType()
Gets the Type attribute of the RingMessage object |
void |
serialize(OutputBuffer buf)
DESCRIBE THE METHOD |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected RingId id
protected RawMessage message
protected java.lang.String application
public static final short TYPE
Constructor Detail |
---|
public RingMessage(RingId id, RawMessage message, java.lang.String application)
id
- The unique idmessage
- DESCRIBE THE PARAMETERapplication
- DESCRIBE THE PARAMETERpublic RingMessage(InputBuffer buf, Endpoint ringEndpoint, java.util.Hashtable endpoints) throws java.io.IOException
buf
- ringEndpoint
- DESCRIBE THE PARAMETERendpoints
- DESCRIBE THE PARAMETER
java.io.IOException
Method Detail |
---|
public int getPriority()
public RingId getId()
public RawMessage getRawMessage()
public Message getMessage()
public java.lang.String getApplication()
public short getType()
getType
in interface RawScribeContent
public void serialize(OutputBuffer buf) throws java.io.IOException
serialize
in interface RawScribeContent
buf
- 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 |