Package org.pentaho.di.core.database
Interface CachedManagedDataSourceInterface
-
- All Superinterfaces:
CommonDataSource
,DataSource
,Wrapper
public interface CachedManagedDataSourceInterface extends DataSource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addInUseBy(String ownerName)
Adds an owner to this Datasourcevoid
expire()
Sets the state of the DatasourceString
getHash()
Gets the Datasource hashboolean
isExpired()
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
setHash(String dataSource)
Sets the Datasource hashvoid
setInUseBy(List<String> ownerList)
Sets the owner of this Datasourcevoid
tryInvalidateDataSource(String invalidatedBy)
Try to invalidate the Datasource-
Methods 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 Detail
-
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
void setInUseBy(List<String> ownerList)
Sets the owner of this Datasource- Parameters:
ownerList
-
-
addInUseBy
void addInUseBy(String ownerName)
Adds an owner to this Datasource- Parameters:
ownerName
-
-
removeInUseBy
void removeInUseBy(String ownerName)
Removes an owner to this Datasource- Parameters:
ownerName
-
-
getHash
String getHash()
Gets the Datasource hash
-
setHash
void setHash(String dataSource)
Sets the Datasource hash- Parameters:
dataSource
-
-
tryInvalidateDataSource
void tryInvalidateDataSource(String invalidatedBy)
Try to invalidate the Datasource- Parameters:
invalidatedBy
-
-
-