Rice Pastry API

rice.tutorial.rawserialization
Class DistTutorial

java.lang.Object
  extended by rice.tutorial.rawserialization.DistTutorial

public class DistTutorial
extends java.lang.Object

This tutorial shows how to use FreePastry 2.0's raw serialization (instead of Java Serialization).

Author:
Jeff Hoye

Constructor Summary
DistTutorial(int bindport, java.net.InetSocketAddress bootaddress, int numNodes, Environment env)
          This constructor launches numNodes PastryNodes.
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistTutorial

public DistTutorial(int bindport,
                    java.net.InetSocketAddress bootaddress,
                    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:
bindport - the local port to bind to
bootaddress - the IP:port of the node to boot from
numNodes - the number of nodes to create in this JVM
env - the environment for these nodes
Throws:
java.lang.Exception
Method Detail

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

Throws:
java.lang.Exception

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection