Package org.pentaho.di.core.database
Interface CachedManagedDataSourceInterface
- All Superinterfaces:
CommonDataSource,DataSource,Wrapper
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddInUseBy(String ownerName) Adds an owner to this Datasourcevoidexpire()Sets the state of the DatasourcegetHash()Gets the Datasource hashbooleanValidates if the Datasource has been expired and can no longer be used.booleanisInUse()Validate whther or not the Datasaource is being used.voidremoveInUseBy(String ownerName) Removes an owner to this DatasourcevoidSets the Datasource hashvoidsetInUseBy(List<String> ownerList) Sets the owner of this DatasourcevoidtryInvalidateDataSource(String invalidatedBy) Try to invalidate the DatasourceMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLoggerMethods inherited from interface javax.sql.DataSource
createConnectionBuilder, getConnection, getConnection, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriterMethods 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-
-