Package de.xima.fc.server.config
Interface ServerConfig
-
- All Known Implementing Classes:
FrontendServerConfig,MasterServerConfig
public interface ServerConfigCommon interface for server configuration details.- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract 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.static ServerConfiggetInstance()Retrieves the current instance of ServerConfig using CDI.ServerIdgetServerId()Unique identifier of the server instance.ServerTypegetServerType()Type of the server instance.
-
-
-
Method Detail
-
getInstance
static ServerConfig getInstance()
Retrieves the current instance of ServerConfig using CDI.- Returns:
- The current ServerConfig instance.
-
getConfigDir
File getConfigDir()
Directory where the server configuration files are located.- Returns:
- The configuration directory as a File object.
-
getDatabaseConnectionConfig
Optional<DatabaseConnectionConfig> getDatabaseConnectionConfig()
Gets the database connection configuration if available. Not all server types require a database connection, e.g. frontend-servers may not need one.- Returns:
- An Optional containing the DatabaseConnectionConfig if available, or an empty Optional if not.
-
getServerId
ServerId getServerId()
Unique identifier of the server instance.- Returns:
- The ServerId representing the unique identifier of the server.
-
getServerType
ServerType getServerType()
Type of the server instance.- Returns:
- The ServerType representing the type of the server.
-
-