Package psiprobe.beans.accessors
Class OracleDatasourceAccessor
java.lang.Object
psiprobe.beans.accessors.OracleDatasourceAccessor
- All Implemented Interfaces:
DatasourceAccessor
Accesses oracle.jdbc.pool.OracleDataSource.
Oracle connection pool is quite different from any other available for Tomcat. Datasources are run by static OracleConnectionCacheManager, whereby application context scope datasource would have a named entry in OracleConnectionCacheManager.
Datasources do not have information about pool as such, therefore this accessor has to do quite tedious job of verifying whether the datasource has a record in the cache manager or not. The pool information is subsequently retrieved from the relevant cache manager entry.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
OracleDatasourceAccessor
public OracleDatasourceAccessor()
-
-
Method Details
-
getInfo
Description copied from interface:DatasourceAccessorGets the info.- Specified by:
getInfoin interfaceDatasourceAccessor- Parameters:
resource- the resource- Returns:
- the info
- Throws:
Exception- the exception
-
reset
Description copied from interface:DatasourceAccessorReset.- Specified by:
resetin interfaceDatasourceAccessor- Parameters:
resource- the resource- Returns:
- true, if successful
- Throws:
Exception- the exception
-
canMap
Description copied from interface:DatasourceAccessorCan map.- Specified by:
canMapin interfaceDatasourceAccessor- Parameters:
resource- the resource- Returns:
- true, if successful
-