Class PoolingManagedDataSource

  • All Implemented Interfaces:
    Wrapper, CommonDataSource, DataSource, org.pentaho.di.core.database.CachedManagedDataSourceInterface

    public class PoolingManagedDataSource
    extends org.apache.commons.dbcp.PoolingDataSource
    implements org.pentaho.di.core.database.CachedManagedDataSourceInterface
    • Constructor Detail

      • PoolingManagedDataSource

        public PoolingManagedDataSource​(org.pentaho.database.model.IDatabaseConnection databaseConnection,
                                        org.pentaho.database.IDatabaseDialect dialect)
                                 throws Exception
        Throws:
        Exception
    • Method Detail

      • isExpired

        public boolean isExpired()
        Specified by:
        isExpired in interface org.pentaho.di.core.database.CachedManagedDataSourceInterface
      • tryInvalidateDataSource

        public void tryInvalidateDataSource​(String invalidatedBy)
        Specified by:
        tryInvalidateDataSource in interface org.pentaho.di.core.database.CachedManagedDataSourceInterface
      • addInUseBy

        public void addInUseBy​(String ownerName)
        Specified by:
        addInUseBy in interface org.pentaho.di.core.database.CachedManagedDataSourceInterface
      • removeInUseBy

        public void removeInUseBy​(String invalidatedBy)
        Specified by:
        removeInUseBy in interface org.pentaho.di.core.database.CachedManagedDataSourceInterface
      • setHash

        public void setHash​(String poolConfig)
        Specified by:
        setHash in interface org.pentaho.di.core.database.CachedManagedDataSourceInterface
      • getHash

        public String getHash()
        Specified by:
        getHash in interface org.pentaho.di.core.database.CachedManagedDataSourceInterface
      • hasSameConfig

        public boolean hasSameConfig​(String poolConfigHash)
      • isInUse

        public boolean isInUse()
        Specified by:
        isInUse in interface org.pentaho.di.core.database.CachedManagedDataSourceInterface
      • setInUseBy

        public void setInUseBy​(List<String> ownerList)
        Specified by:
        setInUseBy in interface org.pentaho.di.core.database.CachedManagedDataSourceInterface
      • expire

        public void expire()
        Specified by:
        expire in interface org.pentaho.di.core.database.CachedManagedDataSourceInterface