public class NetworkConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PORT |
static java.lang.String |
NODES_FILE_NAME |
Constructor and Description |
---|
NetworkConfig() |
Modifier and Type | Method and Description |
---|---|
static NetworkInfo |
readNetworkDescription(java.lang.String directory)
Reads a network description directory from disk.
|
static NetworkInfo |
readNodesFile(java.io.File file)
Read host:port pairs from a Mendel node configuration file and create
the network overlay description GroupInfo.
|
public static final int DEFAULT_PORT
public static final java.lang.String NODES_FILE_NAME
public static NetworkInfo readNetworkDescription(java.lang.String directory) throws java.io.FileNotFoundException, java.io.IOException
directory
- The full path name of the network description directoryFileNotFoundException,
- IOExceptionjava.io.FileNotFoundException
java.io.IOException
public static NetworkInfo readNodesFile(java.io.File file) throws java.io.IOException
file
- the configuration File containing the group membersjava.io.IOException