public abstract class AbstractServerConfigMap extends ReplacementMap
Constructor and Description |
---|
AbstractServerConfigMap(ServerHost serverHost,
java.io.File workspaceDir) |
Modifier and Type | Method and Description |
---|---|
void |
addBatchTaskConfig(ServerBatchTaskConfigEntry entry) |
void |
addCoServerConnections(java.lang.String serverName,
java.lang.String... coServerNames) |
void |
addGroup(Group group) |
void |
addServerHost(java.lang.String serverName,
java.lang.String hostName,
int port) |
void |
addUser(User user) |
java.lang.Object |
getAsBoolean(ServerParamsConfigKey key) |
java.lang.Object |
getAsBoolean(ServerStartupConfigKey key) |
double |
getAsDouble(ServerParamsConfigKey key) |
double |
getAsDouble(ServerStartupConfigKey key) |
java.io.File |
getAsFile(ServerStartupConfigKey key) |
int |
getAsInt(ServerParamsConfigKey key) |
int |
getAsInt(ServerStartupConfigKey key) |
java.lang.String |
getAsString(ServerParamsConfigKey key) |
java.lang.String |
getAsString(ServerStartupConfigKey key) |
java.io.File |
getConfigDir() |
java.io.File |
getDataDir() |
java.io.File |
getHistoryDir() |
java.io.File |
getLogDir() |
ServerConfig |
getServerConfig()
Returns a
ServerConfig object that was read from the servers config directory |
protected ResourceDef[] |
getServerConfigResourceDefs() |
protected ResourceDef[] |
getServerWebDataResourceDefs() |
java.io.File |
getTaskDir() |
java.io.File |
getWebDir() |
java.io.File |
getWorkspaceDir() |
void |
install()
Installs all missing config files into the config directory, applying the replacements of this map
|
void |
purge()
Removes all content of the workspaceDir
|
void |
put(ServerParamsConfigKey key,
boolean value) |
void |
put(ServerParamsConfigKey key,
double value) |
void |
put(ServerParamsConfigKey key,
int value) |
void |
put(ServerParamsConfigKey key,
java.lang.String value) |
void |
put(ServerStartupConfigKey key,
boolean value) |
void |
put(ServerStartupConfigKey key,
double value) |
void |
put(ServerStartupConfigKey key,
int value) |
void |
put(ServerStartupConfigKey key,
java.lang.String value) |
void |
setEmailAddresses(java.lang.String... addrs) |
clear, filter, getAsBoolean, getAsDouble, getAsInt, getAsString, getMap, getSize, put, put, put, put, putAll, putAll, toDumpString, toString
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toString
public AbstractServerConfigMap(ServerHost serverHost, java.io.File workspaceDir)
public void setEmailAddresses(java.lang.String... addrs)
public void addUser(User user)
public void addBatchTaskConfig(ServerBatchTaskConfigEntry entry)
public void addGroup(Group group)
public final void addServerHost(java.lang.String serverName, java.lang.String hostName, int port)
public final void addCoServerConnections(java.lang.String serverName, java.lang.String... coServerNames)
public java.io.File getWorkspaceDir()
public java.io.File getConfigDir()
public java.io.File getDataDir()
public java.io.File getLogDir()
public java.io.File getHistoryDir()
public java.io.File getTaskDir()
public java.io.File getWebDir()
public final void install() throws java.lang.Exception
java.lang.Exception
protected ResourceDef[] getServerConfigResourceDefs()
protected ResourceDef[] getServerWebDataResourceDefs()
public void purge() throws java.lang.Exception
java.lang.Exception
public ServerConfig getServerConfig() throws java.lang.Exception
ServerConfig
object that was read from the servers config directoryjava.lang.Exception
public void put(ServerStartupConfigKey key, boolean value)
public void put(ServerStartupConfigKey key, double value)
public void put(ServerStartupConfigKey key, int value)
public void put(ServerStartupConfigKey key, java.lang.String value)
public java.lang.Object getAsBoolean(ServerStartupConfigKey key)
public double getAsDouble(ServerStartupConfigKey key)
public int getAsInt(ServerStartupConfigKey key)
public java.lang.String getAsString(ServerStartupConfigKey key)
public java.io.File getAsFile(ServerStartupConfigKey key)
public void put(ServerParamsConfigKey key, boolean value)
public void put(ServerParamsConfigKey key, double value)
public void put(ServerParamsConfigKey key, int value)
public void put(ServerParamsConfigKey key, java.lang.String value)
public java.lang.Object getAsBoolean(ServerParamsConfigKey key)
public double getAsDouble(ServerParamsConfigKey key)
public int getAsInt(ServerParamsConfigKey key)
public java.lang.String getAsString(ServerParamsConfigKey key)
Copyright © 2013 EsprIT-Systems. All Rights Reserved.