Class MasterServerConfig
java.lang.Object
de.xima.fc.server.config.ms.impl.MasterServerConfig
- All Implemented Interfaces:
ServerConfig
Master server configuration implementation.
- Since:
- {PROMPT_VERSION}
- Author:
- Norman Lorenz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDirectory where the server configuration files are located.Gets the database connection configuration if available.Unique identifier of the server instance.Type of the server instance.static long
-
Constructor Details
-
MasterServerConfig
public MasterServerConfig()
-
-
Method Details
-
getConfigDir
Description copied from interface:ServerConfigDirectory where the server configuration files are located.- Specified by:
getConfigDirin interfaceServerConfig- Returns:
- The configuration directory as a File object.
-
getDatabaseConnectionConfig
Description copied from interface:ServerConfigGets the database connection configuration if available. Not all server types require a database connection, e.g. frontend-servers may not need one.- Specified by:
getDatabaseConnectionConfigin interfaceServerConfig- Returns:
- An Optional containing the DatabaseConnectionConfig if available, or an empty Optional if not.
-
getServerId
Description copied from interface:ServerConfigUnique identifier of the server instance.- Specified by:
getServerIdin interfaceServerConfig- Returns:
- The ServerId representing the unique identifier of the server.
-
getServerType
Description copied from interface:ServerConfigType of the server instance.- Specified by:
getServerTypein interfaceServerConfig- Returns:
- The ServerType representing the type of the server.
-
getSystemConnectionMonitoringTimeoutMs
public static long getSystemConnectionMonitoringTimeoutMs()
-