public class ServerNetworkConfig extends AbstractServerConfig implements Clearable
ServerConfigFile.NETWORK
,
Serialized FormModifier 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
ServerHost s 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, write
clone, deepClone
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toString
public 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()
Clearable
public 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 AbstractServerConfig
java.lang.Exception
public void write(ApplicationContext ctx, java.io.File outputFile) throws java.lang.Exception
write
in class AbstractServerConfig
java.lang.Exception
public final java.util.List<ServerHost> getDefinedServerHosts()
ServerHost
s 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)
Dumpable
toDumpString
in interface Dumpable
toDumpString
in class DumpableObject
Copyright © 2014 EsprIT-Systems. All Rights Reserved.