Interface BSimJDBCDataSource

All Known Implementing Classes:
BSimH2FileDBConnectionManager.BSimH2FileDataSource, BSimPostgresDBConnectionManager.BSimPostgresDataSource

public interface BSimJDBCDataSource
  • Method Details

    • getStatus

    • getConnection

      Connection getConnection() throws SQLException
      Get DB Connection object performing any required authentication.
      Returns:
      Connection object
      Throws:
      SQLException - if connection fails
    • getConnectionType

      FunctionDatabase.ConnectionType getConnectionType()
    • getServerInfo

      BSimServerInfo getServerInfo()
      Get the server info that corresponds to this data source. It is important to note that the returned instance is normalized for the purpose of caching and may not match the original server info object used to obtain this data source instance.
      Returns:
      server info
    • getActiveConnections

      int getActiveConnections()
      Get the number of active connections in the associated connection pool
      Returns:
      number of active connections
    • getIdleConnections

      int getIdleConnections()
      Get the number of idle connections in the associated connection pool
      Returns:
      number of idle connections
    • dispose

      void dispose()
      Dispose pooled datasource.