|
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
| 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 |
RawMessage |
getMessage()
Method which returns this messages' internal message |
byte |
getPriority()
Method which should return the priority level of this 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 PARAMETER
public RingMessage(InputBuffer buf,
Endpoint ringEndpoint,
java.util.Hashtable endpoints)
throws java.io.IOException
buf - ringEndpoint - DESCRIBE THE PARAMETERendpoints - DESCRIBE THE PARAMETER
java.io.IOException - DESCRIBE THE EXCEPTION
java.io.IOException| Method Detail |
public byte getPriority()
public RingId getId()
public RawMessage getMessage()
public java.lang.String getApplication()
public short getType()
public void serialize(OutputBuffer buf)
throws java.io.IOException
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 | ||||||||||