Package de.xima.fc.server.config.ms.impl
Class MasterServerConfig
- java.lang.Object
-
- de.xima.fc.server.config.ms.impl.MasterServerConfig
-
- All Implemented Interfaces:
ServerConfig
@ApplicationScoped public class MasterServerConfig extends Object implements ServerConfig
Master server configuration implementation.- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
-
Constructor Summary
Constructors Constructor Description MasterServerConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetConfigDir()Directory where the server configuration files are located.Optional<DatabaseConnectionConfig>getDatabaseConnectionConfig()Gets the database connection configuration if available.ServerIdgetServerId()Unique identifier of the server instance.ServerTypegetServerType()Type of the server instance.static longgetSystemConnectionMonitoringTimeoutMs()
-
-
-
Method Detail
-
getConfigDir
public File 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
public Optional<DatabaseConnectionConfig> 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
public ServerId 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
public ServerType 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()
-
-