planet.test.helloworld
Class DHTPeerTest

java.lang.Object
  extended by planet.generic.commonapi.GenericApp
      extended by planet.test.helloworld.DHTPeerTest

public class DHTPeerTest
extends GenericApp

Makes a simple Hello World test.

Version:
1.0
Author:
Carles Pairot , Jordi Pujol

Constructor Summary
DHTPeerTest()
          Builds a network, following the values of the properties files.
 
Method Summary
static void main(java.lang.String[] args)
          Starts the test, building a network following the values of the properties files and send a simple Hello World message.
 int sendMessage()
          Send a Hello World message to the network, getting a radomly existing DHTApplication of the network.
 
Methods inherited from class planet.generic.commonapi.GenericApp
timeElapsedInSeconds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DHTPeerTest

public DHTPeerTest()
            throws InitializationException
Builds a network, following the values of the properties files.

Throws:
InitializationException
Method Detail

sendMessage

public int sendMessage()
Send a Hello World message to the network, getting a radomly existing DHTApplication of the network.


main

public static void main(java.lang.String[] args)
Starts the test, building a network following the values of the properties files and send a simple Hello World message.

Parameters:
args - Nothing waiting.