planet.test.dht
Class DHTTest

java.lang.Object
  extended byplanet.generic.commonapi.GenericApp
      extended byplanet.test.dht.DHTTest

public class DHTTest
extends GenericApp

Main application that tests to inserts a wide number of key/value pairs at the ring and lookups a concrete existing key.

Version:
1.0
Author:
Carles Pairot , Jordi Pujol

Constructor Summary
DHTTest()
          Constructor that initialize a network with MAX_NODES, and register over each node an instance of DHTApplication.
 
Method Summary
static void main(java.lang.String[] args)
          Initialize a network with the number of nodes specified by command line argument, and inserts all keys/values existing at file claves.txt.
 
Methods inherited from class planet.generic.commonapi.GenericApp
printNetwork, restart, start, timeElapsedInSeconds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DHTTest

public DHTTest()
        throws InitializationException
Constructor that initialize a network with MAX_NODES, and register over each node an instance of DHTApplication.

Method Detail

main

public static void main(java.lang.String[] args)
Initialize a network with the number of nodes specified by command line argument, and inserts all keys/values existing at file claves.txt.

Parameters:
args -