|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
boolean |
anycastHandler(ScribeMessage msg)
Invoked by underlying scribe when it receives a anycast Message, to check if there is a local application which can take care of this anycast message. |
void |
faultHandler(ScribeMessage msg,
NodeHandle faultyParent)
Invoked by Scribe just before the "repair" SUBSCRIBE message is sent when a node suspects its parent is faulty. |
void |
forwardHandler(ScribeMessage msg)
Called by Scribe before the node forwards a message to its children in the multicast tree. |
void |
isNewRoot(NodeId topicId)
Upcall made by scribe to registered applications to inform them that local node is now the root for some topic, and hence can take appropriate action. |
void |
newParent(NodeId topicId,
NodeHandle newParent,
java.io.Serializable data)
Upcall made by scribe to the registered applications to inform them that a new parent is found for local node in the topic tree. |
void |
receiveMessage(ScribeMessage msg)
Called by Scribe when a multicast message arrives. |
void |
scribeIsReady()
Invoked when the underlying Scribe substrate is ready. |
void |
subscribeHandler(NodeId topicId,
NodeHandle child,
boolean wasAdded,
java.io.Serializable obj)
Invoked by Scribe after a child is added to or removed from one of the node's children tables. |
Method Detail |
public void scribeIsReady()
public void receiveMessage(ScribeMessage msg)
msg
- The message sent in the PUBLISH message.public void forwardHandler(ScribeMessage msg)
msg
- The message about to be forwarded.public void subscribeHandler(NodeId topicId, NodeHandle child, boolean wasAdded, java.io.Serializable obj)
topicId
- The topic for which child was added or removed.child
- The corresponding child.wasAdded
- true if child was added and false if child was removed.obj
- The additional data associated with the subscription message, SUBSCRIBE
msg, sent by the "original" child, not the forwarding node.public void faultHandler(ScribeMessage msg, NodeHandle faultyParent)
msg
- The SUBSCRIBE message that is sent to repair the multicast tree.faultyParent
- The suspected faulty parent.public boolean anycastHandler(ScribeMessage msg)
msg
- The corresponding Anycast message
public void isNewRoot(NodeId topicId)
topicId
- The topic for which local node is the
new root.public void newParent(NodeId topicId, NodeHandle newParent, java.io.Serializable data)
topicId
- The topic for which new parent is foundnewParent
- The new parentdata
- The data received with the ACK message.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |