Interface ServerConfig


public interface ServerConfig
Common interface for server configuration details.
Since:
{PROMPT_VERSION}
Author:
Norman Lorenz
  • Method Details

    • 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.