p2pMapReduce.networkModule
Class NetworkConfiguration

java.lang.Object
  extended by p2pMapReduce.networkModule.NetworkConfiguration

public class NetworkConfiguration
extends java.lang.Object

Contains all the startup and configuration parameters for a NetworkModuleIF. Once it has been used to create a network module it should not be used more.


Field Summary
static java.lang.String USER_NODE
          Boolean value Indicates to the network module if this node is a user node.
 
Constructor Summary
NetworkConfiguration()
           
 
Method Summary
static java.lang.String createTempDir(java.lang.String rootDir)
           
 java.lang.Object get(java.lang.String key)
           
 java.lang.Object set(java.lang.String key, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_NODE

public static final java.lang.String USER_NODE
Boolean value Indicates to the network module if this node is a user node.

See Also:
Constant Field Values
Constructor Detail

NetworkConfiguration

public NetworkConfiguration()
Method Detail

set

public java.lang.Object set(java.lang.String key,
                            java.lang.Object value)

get

public java.lang.Object get(java.lang.String key)

createTempDir

public static java.lang.String createTempDir(java.lang.String rootDir)
Returns:
a random directory name