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:DatasourceAccessor
Gets the info.- Specified by:
getInfo
in interfaceDatasourceAccessor
- Parameters:
resource
- the resource- Returns:
- the info
- Throws:
Exception
- the exception
-
reset
Description copied from interface:DatasourceAccessor
Reset.- Specified by:
reset
in interfaceDatasourceAccessor
- Parameters:
resource
- the resource- Returns:
- true, if successful
- Throws:
Exception
- the exception
-
canMap
Description copied from interface:DatasourceAccessor
Can map.- Specified by:
canMap
in interfaceDatasourceAccessor
- Parameters:
resource
- the resource- Returns:
- true, if successful
-