|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.objectweb.jonas.dbm.Pool
Connection Pool
| Constructor Summary | |
Pool(ConnectionManager cmgr)
Pool constructor |
|
| Method Summary | |
void |
check4MaxAge()
Check all connections not in a transaction if their maxage is reached and if so kill them. |
void |
closeAllConnections()
Close all connections in the pool, when server is shut down. |
PoolItem |
closeConnection(javax.sql.XAConnection xac,
int flag)
Mark a specific Connection in the pool as closed. |
void |
freeConnections(javax.transaction.Transaction tx)
The transaction has committed (or rolled back). |
int |
getCurrentNumberOfXAConnection()
Management method: |
PoolItem |
newConnection(javax.sql.XAConnection xac,
java.lang.String user,
javax.transaction.Transaction tx)
Add a new XAConnection in the pool |
PoolItem |
openConnection(java.lang.String user,
javax.transaction.Transaction tx)
lookup connection in the pool for this user/tx |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Pool(ConnectionManager cmgr)
| Method Detail |
public PoolItem openConnection(java.lang.String user,
javax.transaction.Transaction tx)
user - user nametx - Transaction the connection is involved
public PoolItem newConnection(javax.sql.XAConnection xac,
java.lang.String user,
javax.transaction.Transaction tx)
public void freeConnections(javax.transaction.Transaction tx)
tx - the non null transaction
public PoolItem closeConnection(javax.sql.XAConnection xac,
int flag)
public void check4MaxAge()
public void closeAllConnections()
public int getCurrentNumberOfXAConnection()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||