net.tomp2p.examples
Class ExamplePutGet

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

public class ExamplePutGet
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
ExamplePutGet()
           
 
Method Summary
static void exampleGetBlocking(Peer[] peers, Number160 nr)
           
static void exampleGetNonBlocking(Peer[] peers, Number160 nr)
           
static void examplePutGet(Peer[] peers, Number160 nr)
           
static void examplePutGetConfig(Peer[] peers, Number160 nr2)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExamplePutGet

public ExamplePutGet()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

examplePutGet

public static void examplePutGet(Peer[] peers,
                                 Number160 nr)
                          throws IOException,
                                 ClassNotFoundException
Throws:
IOException
ClassNotFoundException

examplePutGetConfig

public static void examplePutGetConfig(Peer[] peers,
                                       Number160 nr2)
                                throws IOException,
                                       ClassNotFoundException
Throws:
IOException
ClassNotFoundException

exampleGetBlocking

public static void exampleGetBlocking(Peer[] peers,
                                      Number160 nr)
                               throws ClassNotFoundException,
                                      IOException
Throws:
ClassNotFoundException
IOException

exampleGetNonBlocking

public static void exampleGetNonBlocking(Peer[] peers,
                                         Number160 nr)


Copyright © 2013. All Rights Reserved.