Package de.xima.fc.server.config.fs.impl
Class FrontendServerConfig
- java.lang.Object
-
- de.xima.fc.server.config.fs.impl.FrontendServerConfig
-
- All Implemented Interfaces:
ServerConfig
@ApplicationScoped public class FrontendServerConfig extends Object implements ServerConfig
- Since:
- 29.01.26
- Author:
- Norman Lorenz
-
-
Constructor Summary
Constructors Constructor Description FrontendServerConfig(IFrontendServerConfig serverConfig)
-
Method Summary
All 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.
-
-
-
Constructor Detail
-
FrontendServerConfig
@Inject public FrontendServerConfig(IFrontendServerConfig serverConfig)
-
-
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.
-
-