|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.persist.broker.RDBConnectionPool
Manage multiple connections.
Nested Class Summary | |
static class |
RDBConnectionPool.Test
Unit tests. |
Constructor Summary | |
RDBConnectionPool()
|
Method Summary | |
protected void |
addConnection(RDBConnection con)
The other way the pool works is maintains the list of connections. |
protected RDBConnection |
getConnection()
Every thread will attempt to get a connection to the database. |
protected long |
getSqlTime()
Gets the SqlTime attribute of the RDBConnectionPool object |
protected void |
incrementSqlTime(long l)
Used for metric information |
void |
initialize(java.lang.String connectUrl,
java.lang.String userName,
java.lang.String password,
int connectionCount)
Deprecated. |
protected void |
notifyConnection()
|
protected void |
resetSqlTime()
Description of the Method |
void |
setBrokerProperty(BrokerPropertyIF b)
|
void |
setConnections(RDBConnection[] conns)
|
protected void |
waitForConnection()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RDBConnectionPool()
Method Detail |
public void setBrokerProperty(BrokerPropertyIF b)
b
- The new BrokerProperty valuepublic void setConnections(RDBConnection[] conns)
conns
- com.objectwave.persist.RDBConnection[]public void initialize(java.lang.String connectUrl, java.lang.String userName, java.lang.String password, int connectionCount)
connectUrl
- Description of ParameteruserName
- Description of Parameterpassword
- Description of ParameterconnectionCount
- Description of Parameterprotected long getSqlTime()
protected RDBConnection getConnection()
protected void incrementSqlTime(long l)
l
- Description of Parameterprotected void resetSqlTime()
protected void addConnection(RDBConnection con)
con
- The feature to be added to the Connection attributeprotected final void notifyConnection()
protected final void waitForConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |