Rice Pastry API

rice.pastry.testing
Class RegrTestApp

java.lang.Object
  extended byrice.pastry.client.PastryAppl
      extended byrice.pastry.client.CommonAPIAppl
          extended byrice.pastry.testing.RegrTestApp
All Implemented Interfaces:
java.util.Observer

public class RegrTestApp
extends CommonAPIAppl

RegrTestApp A regression test suite for pastry. This is the per-node app object.

Version:
$Id: RegrTestApp.java 3274 2006-05-15 16:17:47Z jeffh $
Author:
andrew ladd, peter druschel

Field Summary
 
Fields inherited from class rice.pastry.client.PastryAppl
address, deserializer, instance, logger, receiver, thePastryNode
 
Constructor Summary
RegrTestApp(PastryNode pn, PastryRegrTest prg)
          Constructor for RegrTestApp.
 
Method Summary
 void deliver(Id key, Message msg)
          DESCRIBE THE METHOD
 void forward(RouteMessage rm)
          DESCRIBE THE METHOD
 int getAddress()
          Gets the Address attribute of the RegrTestApp object
 PastryNode getPastryNode()
          Gets the PastryNode attribute of the RegrTestApp object
 void notifyReady()
          Invoked when the Pastry node has joined the overlay network and is ready to send and receive messages
 void routeSetChange(NodeHandle nh, boolean wasAdded)
          DESCRIBE THE METHOD
 void sendMsg(Id nid)
          DESCRIBE THE METHOD
 void sendTrace(Id nid)
          DESCRIBE THE METHOD
 void update(NodeHandle nh, boolean wasAdded)
          DESCRIBE THE METHOD
 
Methods inherited from class rice.pastry.client.CommonAPIAppl
leafSetChange, localLookup, messageForAppl, neighborSet, range, range, receiveMessage, replicaSet, route
 
Methods inherited from class rice.pastry.client.PastryAppl
accept, connect, deliverWhenNotReady, destroy, enrouteMessage, getLeafSet, getNodeHandle, getNodeId, getRoutingTable, isClosest, receiveMessageInternal, receiveSocket, register, routeMsg, routeMsgDirect, setDeserializer, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegrTestApp

public RegrTestApp(PastryNode pn,
                   PastryRegrTest prg)
Constructor for RegrTestApp.

Parameters:
pn - DESCRIBE THE PARAMETER
prg - DESCRIBE THE PARAMETER
Method Detail

getAddress

public int getAddress()
Gets the Address attribute of the RegrTestApp object

Overrides:
getAddress in class PastryAppl
Returns:
The Address value

getPastryNode

public PastryNode getPastryNode()
Gets the PastryNode attribute of the RegrTestApp object

Returns:
The PastryNode value

sendMsg

public void sendMsg(Id nid)
DESCRIBE THE METHOD

Parameters:
nid - DESCRIBE THE PARAMETER

sendTrace

public void sendTrace(Id nid)
DESCRIBE THE METHOD

Parameters:
nid - DESCRIBE THE PARAMETER

deliver

public void deliver(Id key,
                    Message msg)
DESCRIBE THE METHOD

Specified by:
deliver in class CommonAPIAppl
Parameters:
key - DESCRIBE THE PARAMETER
msg - DESCRIBE THE PARAMETER

forward

public void forward(RouteMessage rm)
DESCRIBE THE METHOD

Overrides:
forward in class CommonAPIAppl
Parameters:
rm - DESCRIBE THE PARAMETER

update

public void update(NodeHandle nh,
                   boolean wasAdded)
DESCRIBE THE METHOD

Overrides:
update in class CommonAPIAppl
Parameters:
nh - DESCRIBE THE PARAMETER
wasAdded - DESCRIBE THE PARAMETER

routeSetChange

public void routeSetChange(NodeHandle nh,
                           boolean wasAdded)
DESCRIBE THE METHOD

Overrides:
routeSetChange in class PastryAppl
Parameters:
nh - DESCRIBE THE PARAMETER
wasAdded - DESCRIBE THE PARAMETER

notifyReady

public void notifyReady()
Invoked when the Pastry node has joined the overlay network and is ready to send and receive messages

Overrides:
notifyReady in class CommonAPIAppl

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection