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:
{PROMPT_VERSION}
Author:
Norman Lorenz
  • Constructor Details

    • MasterServerConfig

      public MasterServerConfig()
  • Method Details

    • getConfigDir

      public File getConfigDir()
      Description copied from interface: ServerConfig
      Directory where the server configuration files are located.
      Specified by:
      getConfigDir in interface ServerConfig
      Returns:
      The configuration directory as a File object.
    • getDatabaseConnectionConfig

      public Optional<DatabaseConnectionConfig> getDatabaseConnectionConfig()
      Description copied from interface: ServerConfig
      Gets the database connection configuration if available. Not all server types require a database connection, e.g. frontend-servers may not need one.
      Specified by:
      getDatabaseConnectionConfig in interface ServerConfig
      Returns:
      An Optional containing the DatabaseConnectionConfig if available, or an empty Optional if not.
    • getServerId

      public ServerId getServerId()
      Description copied from interface: ServerConfig
      Unique identifier of the server instance.
      Specified by:
      getServerId in interface ServerConfig
      Returns:
      The ServerId representing the unique identifier of the server.
    • getServerType

      public ServerType getServerType()
      Description copied from interface: ServerConfig
      Type of the server instance.
      Specified by:
      getServerType in interface ServerConfig
      Returns:
      The ServerType representing the type of the server.
    • getSystemConnectionMonitoringTimeoutMs

      public static long getSystemConnectionMonitoringTimeoutMs()