org.apache.tomcat.dbcp.dbcp2

## Interface BasicDataSourceMXBean

- All Superinterfaces:
    DataSourceMXBean
  All Known Implementing Classes:
    BasicDataSource, BasicManagedDataSource

      public interface BasicDataSourceMXBean
      extends DataSourceMXBean

  Interface to keep API compatibility. Methods listed here are not made available to JMX.

  As of 2.9.0, this interface extends `DataSourceMXBean`.

  Since:
    2.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getPassword()` Deprecated. exposing password via JMX is an Information Exposure issue.

    - ### Methods inherited from interface org.apache.tomcat.dbcp.dbcp2.DataSourceMXBean

      `getAbandonedUsageTracking, getCacheState, getConnectionInitSqlsAsArray, getDefaultAutoCommit, getDefaultCatalog, getDefaultReadOnly, getDefaultSchema, getDefaultTransactionIsolation, getDisconnectionSqlCodesAsArray, getDriverClassName, getDurationBetweenEvictionRuns, getFastFailValidation, getInitialSize, getLifo, getLogAbandoned, getLogExpiredConnections, getMaxConnDuration, getMaxConnLifetimeMillis, getMaxIdle, getMaxOpenPreparedStatements, getMaxTotal, getMaxWaitDuration, getMaxWaitMillis, getMinEvictableIdleDuration, getMinEvictableIdleTimeMillis, getMinIdle, getNumActive, getNumIdle, getNumTestsPerEvictionRun, getRemoveAbandonedOnBorrow, getRemoveAbandonedOnMaintenance, getRemoveAbandonedTimeout, getRemoveAbandonedTimeoutDuration, getSoftMinEvictableIdleDuration, getSoftMinEvictableIdleTimeMillis, getTestOnBorrow, getTestOnCreate, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, getUrl, getUsername, getValidationQuery, getValidationQueryTimeout, getValidationQueryTimeoutDuration, isAccessToUnderlyingConnectionAllowed, isClearStatementPoolOnReturn, isClosed, isPoolPreparedStatements, restart, start`

- - ### Method Detail

    - #### getPassword

          @Deprecated
          String getPassword()

      Deprecated. exposing password via JMX is an Information Exposure issue.
      See `BasicDataSource.getPassword()`
      Returns:
        `BasicDataSource.getPassword()`

Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.