|
Oracle Database JDBC Java API Reference 11g Release 2 E13995-03 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.jdbc.pool.OracleConnectionCacheManager
Deprecated. Use Oracle Universal Connection Pool instead. Connection Cache Manager class for the Implicit Connection Caching Mechanism.
public class OracleConnectionCacheManager
| Field Summary | |
|---|---|
static java.lang.String |
PHYSICAL_CONNECTION_CLOSED_COUNTDeprecated. |
static java.lang.String |
PHYSICAL_CONNECTION_CREATED_COUNTDeprecated. |
static int |
REFRESH_ALL_CONNECTIONSDeprecated. |
static int |
REFRESH_INVALID_CONNECTIONSDeprecated. |
static boolean |
TRACEDeprecated. |
| Method Summary | |
|---|---|
java.lang.String |
createCache(OracleDataSource ods, java.util.Properties cacheProperties)Deprecated. Use Oracle Universal Connection Pool instead. Creates a connection cache using an auto-generated Connection Cache name, and the supplied Connection Cache Properties. The Connection Cache created is associated with the DataSource Object provided. |
void |
createCache(java.lang.String cacheName, OracleDataSource ods, java.util.Properties cacheProperties)Deprecated. Use Oracle Universal Connection Pool instead. Creates a connection cache using the supplied Connection Cache name, and the Connection Cache Properties. The Connection Cache created is associated with the DataSource Object provided. |
void |
disableCache(java.lang.String cacheName)Deprecated. Use Oracle Universal Connection Pool instead. Disable a given connection cache |
void |
enableCache(java.lang.String cacheName)Deprecated. Use Oracle Universal Connection Pool instead. Enable a given connection cache |
boolean |
existsCache(java.lang.String cacheName)Deprecated. Use Oracle Universal Connection Pool instead. Check if connection cache exists. |
java.lang.String[] |
getCacheNameList()Deprecated. Use Oracle Universal Connection Pool instead. Get all the cache names managed by this connection cache manager |
java.util.Properties |
getCacheProperties(java.lang.String cacheName)Deprecated. Use Oracle Universal Connection Pool instead. Get the connection cache properties corresponding to the cache name. |
static OracleConnectionCacheManager |
getConnectionCacheManagerInstance()Deprecated. Use Oracle Universal Connection Pool instead. Returns the static ConnectionCacheManager Instance. If necessary a new instance is created and returned to the caller. |
int[] |
getConnectionErrorCodes()Deprecated. |
int |
getNumberOfActiveConnections(java.lang.String cacheName)Deprecated. Use Oracle Universal Connection Pool instead. Get the number of connections already in use (checked out connections) |
int |
getNumberOfAvailableConnections(java.lang.String cacheName)Deprecated. Use Oracle Universal Connection Pool instead. Get the number connections in the cache, that are available for use |
java.util.Map |
getStatistics(java.lang.String cacheName)Deprecated. Use Oracle Universal Connection Pool instead. Get the statistics about the implicit connection cache. The stats contains the number of connections opened and the number of connections closed. |
boolean |
isFatalConnectionError(java.sql.SQLException se)Deprecated. |
void |
purgeCache(java.lang.String cacheName, boolean cleanupCheckedOutConnections)Deprecated. Use Oracle Universal Connection Pool instead. Purges Connections in the Connection Cache. A boolean flag indicates whether all connections in the cache are cleaned up(including checkedout connections) or just the connections in the cache |
void |
refreshCache(java.lang.String cacheName, int mode)Deprecated. Use Oracle Universal Connection Pool instead. Refreshes Connections in the Connection Cache. |
void |
reinitializeCache(java.lang.String cacheName, java.util.Properties cacheProperties)Deprecated. Use Oracle Universal Connection Pool instead. Reinitialize a connection cache using the new set of properties supplied |
void |
removeCache(java.lang.String cacheName, long waitTimeout)Deprecated. Use Oracle Universal Connection Pool instead. Removes the Connection Cache, associated with the given Connection Cache Name. When a timeout value is specified, the remove processing pauses for the specified period of time, before proceeding to remove the connection cache. |
void |
setConnectionErrorCodes(int[] fatalErrorCodes)Deprecated. |
void |
setConnectionPoolDataSource(java.lang.String cacheName, javax.sql.ConnectionPoolDataSource ds)Deprecated. Use Oracle Universal Connection Pool instead. Sets the ConnectionPoolDataSource that may be used to create the implicit connection cache. If the connections are already created on the connection cache, then an exception is thrown. If no connections are opened, then the new ConnectionPoolDataSource is used and may overwrite the previous one, if any. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int REFRESH_INVALID_CONNECTIONS
public static final int REFRESH_ALL_CONNECTIONS
public static final java.lang.String PHYSICAL_CONNECTION_CREATED_COUNT
public static final java.lang.String PHYSICAL_CONNECTION_CLOSED_COUNT
public static final boolean TRACE
| Method Detail |
|---|
public static OracleConnectionCacheManager getConnectionCacheManagerInstance()
throws java.sql.SQLException
None -java.sql.SQLException - if a database access error occurs
public java.lang.String createCache(OracleDataSource ods,
java.util.Properties cacheProperties)
throws java.sql.SQLException
ods - OracleDataSource objectcacheProperties - Connection Cache Properties for this cachejava.sql.SQLException - if a database access error occurs
public void createCache(java.lang.String cacheName,
OracleDataSource ods,
java.util.Properties cacheProperties)
throws java.sql.SQLException
cacheName - Connection Cache Nameods - OracleDataSource objectcacheProperties - Connection Cache Properties for this cachejava.sql.SQLException - if a database access error occurs
public void removeCache(java.lang.String cacheName,
long waitTimeout)
throws java.sql.SQLException
cacheName - Connection Cache NamewaitTimeout - Timeout value, specified in seconds. A zero or a positive value will be the time allowed before closure of the cache. A negative timeout prompts aborting all the connections before close.java.sql.SQLException - if a database access error occurs
public void reinitializeCache(java.lang.String cacheName,
java.util.Properties cacheProperties)
throws java.sql.SQLException
cacheName - Connection Cache Namejava.sql.SQLException - if a database access error occurs
public boolean existsCache(java.lang.String cacheName)
throws java.sql.SQLException
cacheName - Connection Cache Namejava.sql.SQLException - if a database access error occurs
public void enableCache(java.lang.String cacheName)
throws java.sql.SQLException
cacheName - Connection Cache Namejava.sql.SQLException - if a database access error occurs
public void disableCache(java.lang.String cacheName)
throws java.sql.SQLException
cacheName - Connection Cache Namejava.sql.SQLException - if a database access error occurs
public void refreshCache(java.lang.String cacheName,
int mode)
throws java.sql.SQLException
cacheName - Connection Cache Namemode - The operation to be done on the cache. Operation modes are, REFRESH_INVALID_CONNECTIONS - Refresh invalid connection on the node which is down. REFRESH_ALL_CONNECTIONS - Refresh all connection on the node which is down.java.sql.SQLException - if a database access error occurs
public void purgeCache(java.lang.String cacheName,
boolean cleanupCheckedOutConnections)
throws java.sql.SQLException
cacheName - Connection Cache Namejava.sql.SQLException - if a database access error occurs
public java.util.Properties getCacheProperties(java.lang.String cacheName)
throws java.sql.SQLException
cacheName - Connection Cache Namejava.sql.SQLException - if a database access error occurs
public java.lang.String[] getCacheNameList()
throws java.sql.SQLException
None -java.sql.SQLException - if a database access error occurs
public int getNumberOfAvailableConnections(java.lang.String cacheName)
throws java.sql.SQLException
cacheName - Connection Cache Namejava.sql.SQLException - if a database access error occurs
public int getNumberOfActiveConnections(java.lang.String cacheName)
throws java.sql.SQLException
cacheName - Connection Cache Namejava.sql.SQLException - if a database access error occurs
public void setConnectionPoolDataSource(java.lang.String cacheName,
javax.sql.ConnectionPoolDataSource ds)
throws java.sql.SQLException
cacheName - Connection Cache Nameds - a datasource from which the Implicit Cache can create PooledConnections.java.sql.SQLException - A ConnectionPoolDataSource object already exists and connections are already open.public boolean isFatalConnectionError(java.sql.SQLException se)
public void setConnectionErrorCodes(int[] fatalErrorCodes)
throws java.sql.SQLException
java.sql.SQLException
public int[] getConnectionErrorCodes()
throws java.sql.SQLException
java.sql.SQLException
public java.util.Map getStatistics(java.lang.String cacheName)
throws java.sql.SQLException
cacheName - Name of the cachejava.sql.SQLException
|
Oracle Database JDBC Java API Reference 11g Release 2 E13995-03 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||