rice.scribe
Interface IScribeApp

public interface IScribeApp
Version:
$Id: IScribeApp.java,v 1.9 2002/09/07 22:17:05 animesh Exp $
Author:
Romer Gil
Eric Engineer
Atul Singh
Animesh Nandi
Method Detail

scribeIsReady

public void scribeIsReady()
Invoked when the underlying Scribe substrate is ready. The Scribe substrate becomes ready as soon as the local Pastry node on which it lies is ready. In order to get this upcall it is necessary that the IScribeApp registers itself to the Scribe substrate using the registerApp() method in IScribe interface.

receiveMessage

public void receiveMessage(rice.scribe.messaging.ScribeMessage msg)
Called by Scribe when a multicast message arrives.
Parameters:
msg - The message sent in the PUBLISH message.

forwardHandler

public void forwardHandler(rice.scribe.messaging.ScribeMessage msg)
Called by Scribe before the node forwards a message to its children in the multicast tree.
Parameters:
msg - The message about to be forwarded.

subscribeHandler

public void subscribeHandler(rice.scribe.messaging.ScribeMessage msg)
Invoked by Scribe after a new child is added to one of the node's children tables.
Parameters:
msg - The SUBSCRIBE message from the new child.

faultHandler

public void faultHandler(rice.scribe.messaging.ScribeMessage msg,
                         rice.pastry.NodeHandle faultyParent)
Invoked by Scribe just before the "repair" SUBSCRIBE message is sent when a node suspects its parent is faulty.
Parameters:
msg - The SUBSCRIBE message that is sent to repair the multicast tree.
faultyParent - The suspected faulty parent.