Class JdbcAuditEventHandlerConfiguration.ConnectionPool

java.lang.Object
org.forgerock.audit.handlers.jdbc.JdbcAuditEventHandlerConfiguration.ConnectionPool
Enclosing class:
JdbcAuditEventHandlerConfiguration

public static class JdbcAuditEventHandlerConfiguration.ConnectionPool extends Object
Configuration for a connection pool.
  • Constructor Details

    • ConnectionPool

      public ConnectionPool()
  • Method Details

    • getDriverClassName

      public String getDriverClassName()
      Gets the class name of the driver to use for the jdbc connection.
      Returns:
      The class name.
    • setDriverClassName

      public void setDriverClassName(String driverClassName)
      Sets the class name of the driver to use for the jdbc connection.
      Parameters:
      driverClassName - The driver class name.
    • getDataSourceClassName

      public String getDataSourceClassName()
      Gets the datasource class name for the JDBC database.
      Returns:
      The JDBC driver class
    • setDataSourceClassName

      public void setDataSourceClassName(String driverClass)
      Sets the datasource class name for the configured database.
      Parameters:
      driverClass - The name of the JDBC driver class.
    • getJdbcUrl

      public String getJdbcUrl()
      Gets the JDBC database url.
      Returns:
      The JDBC database url.
    • setJdbcUrl

      public void setJdbcUrl(String jdbcUrl)
      Sets the JDBC database url.
      Parameters:
      jdbcUrl - The name of the JDBC database url.
    • getUsername

      public String getUsername()
      Gets the username to use to connect to the JDBC database.
      Returns:
      The username to used to connect to the JDBC database.
    • setUsername

      public void setUsername(String username)
      Sets the username to use to connect to the JDBC database.
      Parameters:
      username - The username to used to connect to the JDBC database.
    • getPassword

      public String getPassword()
      Gets the password to use to connect to the JDBC database.
      Returns:
      The password to used to connect to the JDBC database.
    • setPassword

      public void setPassword(String password)
      Sets the password to use to connect to the JDBC database.
      Parameters:
      password - The password to used to connect to the JDBC database.
    • getPoolName

      public String getPoolName()
      Gets the name of the connection pool.
      Returns:
      The name of the connection pool.
    • setPoolName

      public void setPoolName(String poolName)
      Sets the name of the connection pool.
      Parameters:
      poolName - The name of the connection pool.
    • getMaxPoolSize

      public int getMaxPoolSize()
      Gets the maximum size of the connection pool.
      Returns:
      The maximum size of the connection pool.
    • setMaxPoolSize

      public void setMaxPoolSize(int maxPoolSize)
      Sets the maximum size of the connection pool.
      Parameters:
      maxPoolSize - The maximum pool size of the connection pool.
    • getMinIdle

      public int getMinIdle()
      Gets the minimum number of idle connections in the connection pool.
      Returns:
      The minimum number of idle connections in the connection pool.
    • setMinIdle

      public void setMinIdle(int minIdle)
      Sets the minimum number of idle connections in the connection pool.
      Parameters:
      minIdle - The minimum number of idle connections in the connection pool.
    • getMaxLifetime

      public int getMaxLifetime()
      Gets the maximum lifetime of a connection in the connection pool.
      Returns:
      The maximum lifetime of a connection in the connection pool.
    • setMaxLifetime

      public void setMaxLifetime(int maxLifetime)
      Sets the maximum lifetime of a connection in the connection pool.
      Parameters:
      maxLifetime - The maximum lifetime of a connection in the connection pool.
    • getIdleTimeout

      public int getIdleTimeout()
      Gets the maximum time a connection is allowed to be idle.
      Returns:
      The maximum time a connection is allowed to be idle.
    • setIdleTimeout

      public void setIdleTimeout(int idleTimeout)
      Sets the maximum time a connection is allowed to be idle.
      Parameters:
      idleTimeout - The maximum time a connection is allowed to be idle.
    • getConnectionTimeout

      public int getConnectionTimeout()
      Gets the maximum amount of time to wait for a connection from the connection pool.
      Returns:
      The maximum amount of time to wait for a connection from the connection pool.
    • setConnectionTimeout

      public void setConnectionTimeout(int connectionTimeout)
      Sets the maximum amount of time to wait for a connection from the connection pool.
      Parameters:
      connectionTimeout - The maximum amount of time to wait for a connection from the connection pool.
    • getAutoCommit

      public boolean getAutoCommit()
      Gets the auto commit value.
      Returns:
      The auto commit value.
    • setAutoCommit

      public void setAutoCommit(boolean autoCommit)
      Sets the auto commit value.
      Parameters:
      autoCommit - The auto commit value.