public class NetworkConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PORT |
static java.lang.String |
GROUP_EXT |
Constructor and Description |
---|
NetworkConfig() |
Modifier and Type | Method and Description |
---|---|
static GroupInfo |
readGroupFile(java.io.File file)
Read host:port pairs from a group description file (*.group).
|
static NetworkInfo |
readNetworkDescription(java.lang.String directory)
Reads a network description directory from disk.
|
public static final int DEFAULT_PORT
public static final java.lang.String GROUP_EXT
public static NetworkInfo readNetworkDescription(java.lang.String directory) throws java.io.FileNotFoundException, java.io.IOException
directory
- full path name of the network description directory.java.io.FileNotFoundException
java.io.IOException
public static GroupInfo readGroupFile(java.io.File file) throws java.io.IOException
file
- File containing the group members.java.io.IOException