net.tomp2p.examples
Class ExampleUtils

java.lang.Object
  extended by net.tomp2p.examples.ExampleUtils

public class ExampleUtils
extends Object

This simple example creates 10 nodes, bootstraps to the first and put and get data from those 10 nodes.

Author:
draft

Constructor Summary
ExampleUtils()
           
 
Method Summary
static void bootstrap(Peer[] peers)
           
static Peer[] createAndAttachNodes(int nr, int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleUtils

public ExampleUtils()
Method Detail

bootstrap

public static void bootstrap(Peer[] peers)

createAndAttachNodes

public static Peer[] createAndAttachNodes(int nr,
                                          int port)
                                   throws Exception
Throws:
Exception


Copyright © 2012. All Rights Reserved.