Interface DatabaseOverviewMBean

All Known Implementing Classes:
DatabaseOverviewMBeanImpl

public interface DatabaseOverviewMBean
  • Method Details

    • getDatabaseName

      String getDatabaseName()
      Returns:
      the database name
    • getDatabaseURL

      String getDatabaseURL()
      Returns:
      the URL of the database
    • getDatabaseUser

      String getDatabaseUser()
      Returns:
      the database user
    • getDatabaseVersion

      String getDatabaseVersion()
      Returns:
      the database version
    • getDriverVersion

      String getDriverVersion()
      Returns:
      the database driver version
    • getID

      String getID()
      Returns:
      the ID of the current data source
    • getJNDIName

      String getJNDIName()
      Returns:
      the JNDI name
    • getLoginTimeout

      Integer getLoginTimeout()
    • getMaxAllowedPhysicalOpen

      int getMaxAllowedPhysicalOpen()
      Returns:
      the maximum number of objects that can be allocated by the pool
    • getMaxInUse

      int getMaxInUse()
      Returns:
      the maximum number of the 'in use' connection
    • getMaxPhysicalOpen

      int getMaxPhysicalOpen()
      Returns:
      the maximum number of physical SQL connections.
    • getMaxPreparedParameterCount

      int getMaxPreparedParameterCount()
      Returns:
      the maximum allowed number of parameters within one prepared statement; -1 if no limit exists
    • getMillisWaitedForConnection

      long getMillisWaitedForConnection()
      Returns:
      the time in milliseconds how long it took to get a connection from the pool
    • getNumInUse

      int getNumInUse()
      Returns:
      the number of instances currently borrowed from the pool.
    • getNumPhysicalOpen

      int getNumPhysicalOpen()
      Returns:
      number of currently open JDBC connections.
    • getSchemaName

      String getSchemaName()
      Returns:
      the schema name of the database
    • isCanConnectToDataSource

      boolean isCanConnectToDataSource()
      Returns:
      false if a connection the pool is not possible.
    • getTablePrefix

      String getTablePrefix()
      Returns:
      the table prefix for all tables
    • isReadOnly

      boolean isReadOnly()
      Returns:
      true if the datasoure is read-only
    • resetStats

      void resetStats()
    • isActive

      boolean isActive()
      Returns:
      true if the current data source is active.
    • getAllDataSourceIDs

      Set<String> getAllDataSourceIDs()
      Returns:
      a list with all available data source IDs for the current tenant
    • getConnections

      long getConnections()
      Returns:
      the total number of connections so far. Reset with resetStats()
    • getReadOnlyDataSourceReadOnlyConnectionsNumber

      default Integer getReadOnlyDataSourceReadOnlyConnectionsNumber()
      Returns:
      the total number of read-only connections open to read-only data source.
    • getReadOnlyDataSourceReadWriteConnectionsNumber

      default Integer getReadOnlyDataSourceReadWriteConnectionsNumber()
      Returns:
      the total number of read-write connections open to read-only data source.