Package org.pentaho.di.core.database
Interface CachedManagedDataSourceInterface
- All Superinterfaces:
CommonDataSource
,DataSource
,Wrapper
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addInUseBy
(String ownerName) Adds an owner to this Datasourcevoid
expire()
Sets the state of the DatasourcegetHash()
Gets the Datasource hashboolean
Validates if the Datasource has been expired and can no longer be used.boolean
isInUse()
Validate whther or not the Datasaource is being used.void
removeInUseBy
(String ownerName) Removes an owner to this Datasourcevoid
Sets the Datasource hashvoid
setInUseBy
(List<String> ownerList) Sets the owner of this Datasourcevoid
tryInvalidateDataSource
(String invalidatedBy) Try to invalidate the DatasourceMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLogger
Methods inherited from interface javax.sql.DataSource
createConnectionBuilder, getConnection, getConnection, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Method Details
-
isExpired
boolean isExpired()Validates if the Datasource has been expired and can no longer be used. -
expire
void expire()Sets the state of the Datasource -
isInUse
boolean isInUse()Validate whther or not the Datasaource is being used.- Returns:
-
setInUseBy
Sets the owner of this Datasource- Parameters:
ownerList
-
-
addInUseBy
Adds an owner to this Datasource- Parameters:
ownerName
-
-
removeInUseBy
Removes an owner to this Datasource- Parameters:
ownerName
-
-
getHash
String getHash()Gets the Datasource hash -
setHash
Sets the Datasource hash- Parameters:
dataSource
-
-
tryInvalidateDataSource
Try to invalidate the Datasource- Parameters:
invalidatedBy
-
-