Rice Pastry API

rice.pastry.testing
Class RoutingTableTest

java.lang.Object
  extended byrice.pastry.testing.RoutingTableTest

public class RoutingTableTest
extends java.lang.Object

This tutorial shows how to setup a FreePastry node using the Socket Protocol.

Version:
$Id: pretty.settings 2305 2005-03-11 20:22:33Z jeffh $
Author:
Jeff Hoye

Field Summary
static boolean earlyAbort
          DESCRIBE THE FIELD
static int T_ave
          DESCRIBE THE FIELD
static int T_ctr
          DESCRIBE THE FIELD
static int T_total
          DESCRIBE THE FIELD
static boolean useMaintenance
          DESCRIBE THE FIELD
static boolean useMessaging
          DESCRIBE THE FIELD
 
Constructor Summary
RoutingTableTest(int numNodes, Environment env)
          This constructor launches numNodes PastryNodes.
 
Method Summary
 PastryNode createNode()
          DESCRIBE THE METHOD
static void main(java.lang.String[] args)
          Usage: java [-cp FreePastry-.jar] rice.tutorial.lesson4.DistTutorial localbindport bootIP bootPort numNodes example java rice.tutorial.DistTutorial 9001 pokey.cs.almamater.edu 9001 10
 void sendSomeMessages()
          DESCRIBE THE METHOD
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

useMaintenance

public static final boolean useMaintenance
DESCRIBE THE FIELD

See Also:
Constant Field Values

useMessaging

public static final boolean useMessaging
DESCRIBE THE FIELD

See Also:
Constant Field Values

earlyAbort

public static final boolean earlyAbort
DESCRIBE THE FIELD

See Also:
Constant Field Values

T_total

public static int T_total
DESCRIBE THE FIELD


T_ctr

public static int T_ctr
DESCRIBE THE FIELD


T_ave

public static int T_ave
DESCRIBE THE FIELD

Constructor Detail

RoutingTableTest

public RoutingTableTest(int numNodes,
                        Environment env)
                 throws java.lang.Exception
This constructor launches numNodes PastryNodes. They will bootstrap to an existing ring if one exists at the specified location, otherwise it will start a new ring.

Parameters:
numNodes - the number of nodes to create in this JVM
env - the environment for these nodes
Throws:
java.lang.Exception - DESCRIBE THE EXCEPTION
Method Detail

sendSomeMessages

public void sendSomeMessages()
                      throws java.lang.InterruptedException
DESCRIBE THE METHOD

Throws:
java.lang.InterruptedException - DESCRIBE THE EXCEPTION

createNode

public PastryNode createNode()
                      throws java.lang.InterruptedException
DESCRIBE THE METHOD

Returns:
DESCRIBE THE RETURN VALUE
Throws:
java.lang.InterruptedException - DESCRIBE THE EXCEPTION

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Usage: java [-cp FreePastry-.jar] rice.tutorial.lesson4.DistTutorial localbindport bootIP bootPort numNodes example java rice.tutorial.DistTutorial 9001 pokey.cs.almamater.edu 9001 10

Parameters:
args - The command line arguments
Throws:
java.lang.Exception - DESCRIBE THE EXCEPTION

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.