Rice Pastry API

rice.pastry.testing
Class Ping

java.lang.Object
  extended byrice.pastry.client.PastryAppl
      extended byrice.pastry.testing.Ping
All Implemented Interfaces:
MessageReceiver

public class Ping
extends PastryAppl

Ping A performance test suite for pastry. This is the per-node app object.

Version:
$Id: Ping.java 2805 2005-11-17 16:22:24Z jeffh $
Author:
Rongmei Zhang

Field Summary
 
Fields inherited from class rice.pastry.client.PastryAppl
address, instance, logger, thePastryNode
 
Constructor Summary
Ping(PastryNode pn)
          Constructor for Ping.
 
Method Summary
 boolean enrouteMessage(Message msg, Id from, NodeHandle nextHop, SendOptions opt)
          DESCRIBE THE METHOD
 Address getAddress()
          Gets the Address attribute of the Ping object
 Credentials getCredentials()
          Gets the Credentials attribute of the Ping object
 void leafSetChange(NodeHandle nh, boolean wasAdded)
          DESCRIBE THE METHOD
 void messageForAppl(Message msg)
          DESCRIBE THE METHOD
 void routeSetChange(NodeHandle nh, boolean wasAdded)
          DESCRIBE THE METHOD
 void sendPing(NodeId nid)
          DESCRIBE THE METHOD
 
Methods inherited from class rice.pastry.client.PastryAppl
deliverWhenNotReady, destroy, getLeafSet, getNodeHandle, getNodeId, getRoutingTable, isClosest, notifyReady, receiveMessage, registerReceiver, routeMsg, routeMsgDirect, sendMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ping

public Ping(PastryNode pn)
Constructor for Ping.

Parameters:
pn - DESCRIBE THE PARAMETER
Method Detail

getAddress

public Address getAddress()
Gets the Address attribute of the Ping object

Overrides:
getAddress in class PastryAppl
Returns:
The Address value

getCredentials

public Credentials getCredentials()
Gets the Credentials attribute of the Ping object

Specified by:
getCredentials in class PastryAppl
Returns:
The Credentials value

sendPing

public void sendPing(NodeId nid)
DESCRIBE THE METHOD

Parameters:
nid - DESCRIBE THE PARAMETER

messageForAppl

public void messageForAppl(Message msg)
DESCRIBE THE METHOD

Specified by:
messageForAppl in class PastryAppl
Parameters:
msg - DESCRIBE THE PARAMETER

enrouteMessage

public boolean enrouteMessage(Message msg,
                              Id from,
                              NodeHandle nextHop,
                              SendOptions opt)
DESCRIBE THE METHOD

Overrides:
enrouteMessage in class PastryAppl
Parameters:
msg - DESCRIBE THE PARAMETER
from - DESCRIBE THE PARAMETER
nextHop - DESCRIBE THE PARAMETER
opt - DESCRIBE THE PARAMETER
Returns:
DESCRIBE THE RETURN VALUE

leafSetChange

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

Overrides:
leafSetChange in class PastryAppl
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

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection