|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrice.pastry.messaging.Message
rice.scribe.messaging.ScribeMessage
This is an abstract implementation of a Scribe message object.
Field Summary | |
protected NodeHandle |
m_source
The ID of the source of this message. |
protected NodeId |
m_topicId
The ID of the topic that this message refers to. |
Constructor Summary | |
ScribeMessage(Address addr,
NodeHandle source,
NodeId tid,
Credentials c)
Constructor |
Method Summary | |
java.io.Serializable |
getData()
Gets the data inside of the ScribeMessage object. |
NodeHandle |
getSource()
Returns the nodeId of the node that generated the message. |
NodeId |
getTopicId()
Returns the topicId associated with the message. |
abstract void |
handleDeliverMessage(Scribe scribe,
Topic topic)
This method is called whenever the scribe node receives a message for itself and wants to process it. |
abstract boolean |
handleForwardMessage(Scribe scribe,
Topic topic)
This method is called whenever the scribe node forwards a message in the scribe network. |
void |
setData(java.io.Serializable data)
Sets the data contained in the message. |
abstract java.lang.String |
toString()
|
Methods inherited from class rice.pastry.messaging.Message |
getCredentials, getDate, getDestination, getSenderId, getStream, hasPriority, setPriority, setSenderId, stamp |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected NodeId m_topicId
protected NodeHandle m_source
Constructor Detail |
public ScribeMessage(Address addr, NodeHandle source, NodeId tid, Credentials c)
addr
- the address of the scribe receiver.source
- the node generating the message.c
- the credentials associated with the mesasge.Method Detail |
public abstract void handleDeliverMessage(Scribe scribe, Topic topic)
scribe
- the scribe applicationtopic
- the topic within the scribe applicationpublic abstract boolean handleForwardMessage(Scribe scribe, Topic topic)
scribe
- the scribe application.topic
- the topic within the scribe application.
public void setData(java.io.Serializable data)
data
- the data contained in the message.public java.io.Serializable getData()
public NodeId getTopicId()
public NodeHandle getSource()
public abstract java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |