rice.scribe.messaging
Class MessageRequestToParent
java.lang.Object
rice.pastry.messaging.Message
rice.scribe.messaging.ScribeMessage
rice.scribe.messaging.MessageRequestToParent
- All Implemented Interfaces:
- java.io.Serializable
- public class MessageRequestToParent
- extends ScribeMessage
- implements java.io.Serializable
MessageRequestToParent is a message sent by a CHILD node to the PARENT
requesting it for the list of topics for which the PARENT node has this
node as a CHILD.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MessageRequestToParent
public MessageRequestToParent(Address addr,
NodeHandle source,
Credentials c)
- Constructor
- Parameters:
addr - the address of the scribe receiver.source - the node generating the message.c - the credentials associated with the mesasge.
handleDeliverMessage
public void handleDeliverMessage(Scribe scribe,
Topic tp)
- This method is called whenever the scribe node receives a message for
itself and wants to process it. The processing is delegated by scribe
to the message.
- Specified by:
handleDeliverMessage in class ScribeMessage
- Parameters:
scribe - the scribe application.tp - the dummy topic ( = null), used because MessageRequestToParent
extends ScribeMessage.
handleForwardMessage
public boolean handleForwardMessage(Scribe scribe,
Topic topic)
- This method is called whenever the scribe node forwards a message in
the scribe network. The processing is delegated by scribe to the
message.
- Specified by:
handleForwardMessage in class ScribeMessage
- Parameters:
scribe - the scribe application.topic - the Topic is null
- Returns:
- true if the message should be routed further, false otherwise.
toString
public java.lang.String toString()
- Specified by:
toString in class ScribeMessage