Class Config


  • public final class Config
    extends Object
    Configuration POJO.

    Contains configuration for particular db instance Instances.

    Since:
    0.6
    • Constructor Detail

      • Config

        public Config​(int port,
                      @NotNull
                      @NotNull String usr,
                      @NotNull
                      @NotNull String password,
                      @NotNull
                      @NotNull String dbn,
                      @NotNull
                      @NotNull List<String> opts)
        Creates new configuration.
        Parameters:
        port - TCP port
        usr - Db user name
        password - Db password
        dbn - Db name
        opts - Configuration options
        Suppressed Checkstyle violations:
        ParameterNumberCheck (15 lines)
    • Method Detail

      • port

        public int port()
        Get TCP port we're on.
        Returns:
        Port number
      • user

        public String user()
        Get Db user name.
        Returns:
        User name
      • password

        public String password()
        Get Db password.
        Returns:
        Password
      • dbname

        public String dbname()
        Get Db name.
        Returns:
        Database name
      • options

        public List<String> options()
        Get configuration options.
        Returns:
        Options