Rice Pastry API

rice.scribe.testing
Class DistScribeRegrTestMessage

java.lang.Object
  |
  +--rice.pastry.messaging.Message
        |
        +--rice.scribe.testing.DistScribeRegrTestMessage
All Implemented Interfaces:
java.io.Serializable

public class DistScribeRegrTestMessage
extends Message
implements java.io.Serializable

DistScribeRegrTestMessage is used by the dist regression test application on the Scribe layer to do publishing on some topics, etc. This message will be delivered to this application periodically so that the periodic testing activities can be accomplished.

Version:
$Id: DistScribeRegrTestMessage.java,v 1.4 2002/09/13 20:24:27 animesh Exp $
Author:
Atul Singh, Animesh Nandi
See Also:
Serialized Form

Constructor Summary
DistScribeRegrTestMessage(rice.pastry.messaging.Address addr, rice.pastry.security.Credentials c)
          Constructor
 
Method Summary
 boolean distinctChildrenTableConsistencyTest(rice.scribe.Scribe scribe)
          Check the consistency between distinctChildrenTable maintained by scribe on a node and the children maintained by each Topic on that node.
 boolean distinctParentTableConsistencyTest(rice.scribe.Scribe scribe)
          Check the consistency between distinctParentTable maintained by scribe on a node and the parent maintained by each Topic on that node.
 void handleDeliverMessage(rice.scribe.testing.DistScribeRegrTestApp scribeApp)
          This method is called whenever the pastry node receives a message for the DistScribeRegrTestApp.
 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
 

Constructor Detail

DistScribeRegrTestMessage

public DistScribeRegrTestMessage(rice.pastry.messaging.Address addr,
                                 rice.pastry.security.Credentials c)
Constructor

Parameters:
addr - the address of the distScribeRegrTestApp receiver.
c - the credentials associated with the mesasge.
Method Detail

handleDeliverMessage

public void handleDeliverMessage(rice.scribe.testing.DistScribeRegrTestApp scribeApp)
This method is called whenever the pastry node receives a message for the DistScribeRegrTestApp.

Parameters:
scribeApp - the DistScribeRegrTestApp application.

distinctChildrenTableConsistencyTest

public boolean distinctChildrenTableConsistencyTest(rice.scribe.Scribe scribe)
Check the consistency between distinctChildrenTable maintained by scribe on a node and the children maintained by each Topic on that node.

Parameters:
scribe - the Scribe object residing on local node
Returns:
true if test passes, else false

distinctParentTableConsistencyTest

public boolean distinctParentTableConsistencyTest(rice.scribe.Scribe scribe)
Check the consistency between distinctParentTable maintained by scribe on a node and the parent maintained by each Topic on that node.

Parameters:
scribe - the Scribe object residing on local node
Returns:
true if test passes, else false

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection