|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.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
|
Constructor Summary | |
---|---|
RingMessage(InputBuffer buf,
Endpoint ringEndpoint,
java.util.Hashtable<java.lang.String,Endpoint> 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()
|
int |
getPriority()
Method which should return the priority level of this message. |
RawMessage |
getRawMessage()
Method which returns this messages' internal message |
short |
getType()
|
void |
serialize(OutputBuffer buf)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short TYPE
protected RingId id
protected RawMessage message
protected java.lang.String application
Constructor Detail |
---|
public RingMessage(RingId id, RawMessage message, java.lang.String application)
id
- The unique idsource
- The source addressdest
- The destination addresspublic RingMessage(InputBuffer buf, Endpoint ringEndpoint, java.util.Hashtable<java.lang.String,Endpoint> endpoints) throws java.io.IOException
buf
- endpoint
- md
- sender
- priority
-
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
java.io.IOException
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |