|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionPoolFailoverCallback
Controls the failover of WebLogic Server MultiPools.
If an application registers a class with WebLogic Server that implements this interface, WebLogic Server invokes this interface's method "allowPoolFailover()" and take different action depending on the return code from the method invocation.
For failover, applies to MultiPools with the High Availability algorithm only. For failback (when re-enabling an automatically disabled connection pool), applies to all MultiPools.
JDBCMultiPoolMBean.setConnectionPoolFailoverCallbackHandler(java.lang.String)
Field Summary | |
---|---|
static int |
DONOT_FAILOVER
A return code from the allowPoolFailover method. |
static int |
OK
A return code from the allowPoolFailover method. |
static int |
OPCODE_CURR_POOL_BUSY
A parameter passed to the callback handler in the allowPoolFailover method. |
static int |
OPCODE_CURR_POOL_DEAD
A parameter passed to the callback handler in the allowPoolFailover() method. |
static int |
OPCODE_REENABLE_CURR_POOL
A parameter passed to the callback handler in the allowPoolFailover method. |
static int |
RETRY_CURRENT
A return code from the allowPoolFailover method. |
Method Summary | |
---|---|
int |
allowPoolFailover(String currPool,
String nextPool,
int opcode)
The WebLogic Server MultiPool invokes this method under various failover or failback conditions. |
Field Detail |
---|
static final int OPCODE_CURR_POOL_DEAD
allowPoolFailover()
method.
Indicates that JDBC connections in the connection pool have failed a connection test.
The MultiPool is ready to failover to the nextPool
connection pool.
static final int OPCODE_CURR_POOL_BUSY
Indicates that all JDBC connections in the current connection pool are in use.
The MultiPool is ready to reroute the connection request to the nextPool
connection pool.
static final int OPCODE_REENABLE_CURR_POOL
Indicates that the 'currPool' connection pool is now available and the MultiPool can re-enable that connection pool.
static final int OK
Indicates that the MultiPool should proceed with the current operation.
static final int RETRY_CURRENT
Indicates that the MultiPool should retry connection requests with the current connection pool.
static final int DONOT_FAILOVER
Indicates that the MultiPool should NOT failover or failback. If the MultiPool is attempting to failover, Weblogic Server will throw a weblogic.jdbc.extensions.PoolUnavailableSQLException. On failback, no exception will be thrown.
Method Detail |
---|
int allowPoolFailover(String currPool, String nextPool, int opcode)
currPool
- - name of connection pool currently in use.
Will NEVER be null.nextPool
- - name of next available connection pool listed in the MultiPool.
currPool
is the last connection pool in the list.'OPCODE_REENABLE_CURR_POOL'
.opcode
- - operation being performed:
OPCODE_CURR_POOL_DEAD
OPCODE_CURR_POOL_BUSY
OPCODE_REENABLE_CURR_POOL
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs92 Copyright 2006 BEA Systems Inc. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |