public class ServerNetworkConfig extends AbstractServerConfig implements Clearable
ServerConfigFile.NETWORK,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
coServerConnectionsTable |
static java.lang.String |
coServersKey |
static java.lang.String |
hostNameKey |
static java.lang.String |
networkConfigType |
static java.lang.String |
portKey |
static java.lang.String |
serverHostsTable |
static java.lang.String |
serverNameKey |
| Constructor and Description |
|---|
ServerNetworkConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCoServerConnections(java.lang.String serverName,
java.lang.String... coServerNames) |
void |
addServerHost(java.lang.String serverName,
java.lang.String hostName,
int port) |
void |
clear()
Clears the content
|
ServerHost |
fetchServerHostByName(java.lang.String serverName) |
java.util.List<ServerHost> |
getCoClientsOf(java.lang.String serverName) |
java.util.List<ServerHost> |
getCoServersOf(java.lang.String serverName) |
java.util.List<ServerHost> |
getDefinedServerHosts()
Returns all
ServerHosts defined in the network config file |
void |
read(ApplicationContext ctx,
java.io.File inputFile) |
void |
removeAllCoServerConnectionsOf(java.lang.String serverName) |
boolean |
removeCoServerFromServer(java.lang.String serverName,
java.lang.String coServerName) |
boolean |
removeServerHost(java.lang.String serverName) |
DumpString |
toDumpString(DumpString s)
This method allows subclasses to add values to the existing DumpString of the superclass.
|
void |
write(ApplicationContext ctx,
java.io.File outputFile) |
equals, getConfigFileIn, getConfigFileName, hashCode, read, toString, writeclone, deepCloneconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toStringpublic static final java.lang.String networkConfigType
public static final java.lang.String serverHostsTable
public static final java.lang.String coServerConnectionsTable
public static final java.lang.String serverNameKey
public static final java.lang.String hostNameKey
public static final java.lang.String portKey
public static final java.lang.String coServersKey
public void clear()
Clearablepublic void addServerHost(java.lang.String serverName,
java.lang.String hostName,
int port)
public boolean removeServerHost(java.lang.String serverName)
public void removeAllCoServerConnectionsOf(java.lang.String serverName)
public void addCoServerConnections(java.lang.String serverName,
java.lang.String... coServerNames)
public boolean removeCoServerFromServer(java.lang.String serverName,
java.lang.String coServerName)
public void read(ApplicationContext ctx, java.io.File inputFile) throws java.lang.Exception
read in class AbstractServerConfigjava.lang.Exceptionpublic void write(ApplicationContext ctx, java.io.File outputFile) throws java.lang.Exception
write in class AbstractServerConfigjava.lang.Exceptionpublic final java.util.List<ServerHost> getDefinedServerHosts()
ServerHosts defined in the network config filepublic java.util.List<ServerHost> getCoClientsOf(java.lang.String serverName)
public java.util.List<ServerHost> getCoServersOf(java.lang.String serverName)
public final ServerHost fetchServerHostByName(java.lang.String serverName)
public DumpString toDumpString(DumpString s)
DumpabletoDumpString in interface DumpabletoDumpString in class DumpableObjectCopyright © 2014 EsprIT-Systems. All Rights Reserved.