Interface Configuration

All Known Implementing Classes:
DefaultConfiguration

public interface Configuration
Application configuration
  • Method Details

    • getDatabaseUser

      String getDatabaseUser()
      Retrieve the database user
      Returns:
      the user to access the database
    • getDatabasePassword

      String getDatabasePassword()
      Retrieves the database password
      Returns:
      the unencrypted password to access the database
    • getDatabaseConnectionString

      String getDatabaseConnectionString()
      Retrieves the connection string
      Returns:
      the jdbc string to connect to the database
    • getDatabaseHostString

      String getDatabaseHostString()
      Retrieves the database hostname string
      Returns:
      the host string to use as part of the JDBC connection URL
    • getDatabasePort

      int getDatabasePort()
      Retrieves the database port integer
      Returns:
      the port integern to use as part of the JDBC connection URL
    • getDatabaseNameString

      String getDatabaseNameString()
      Retrieves the database name string
      Returns:
      the postgresql database name string to use as part of the JDBC connection URL
    • getBatchSize

      int getBatchSize()
      Retrieves the number of attestation results to process at a time.
      Returns:
      the maximum number of attestation results to process.
    • getCorePoolSize

      int getCorePoolSize()
      Retrieves the number of core threads for the queue processor
      Returns:
      the number of core threads
    • getMaximumPoolSize

      int getMaximumPoolSize()
      Retrieves the maximum number of threads for the queue processor
      Returns:
      the maximum number of threads
    • getThreadKeepAliveInSeconds

      long getThreadKeepAliveInSeconds()
      The number of seconds a thread will remain alive even without work to do.
      Returns:
      the number of seconds a thread will be kept idle.
    • toProperties

      Properties toProperties()
      Convert this configuration to a Properties
      Returns:
      a Properties representing the configuration.