|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.tamino.db.api.connection.TConnectionPoolImpl
public class TConnectionPoolImpl
TConnectionPool represents a pool of openned connections. The pool provides services to get and put back openned connections. When instantiated a connection pool initially holds a fixed but client specified number of openned connections for a specific database URI, user and password. Once the amount of checked out connections reaches this size new connections are automatically instantiated and put to the pool to a user given size of maximum connections. Each connection pool gets a logical name that can be used by a connection pool manager that basically manages a set of connection pools.
Constructor Summary | |
---|---|
TConnectionPoolImpl(org.w3c.dom.Element element)
It is recommend to no longer use this method. |
|
TConnectionPoolImpl(java.lang.String name,
TConnectionPoolDescriptor descriptor,
boolean poolTaminoConnections,
java.util.Locale locale)
Intitializes the connection pool with a logical name. |
Method Summary | |
---|---|
void |
deleteConnection(TPooledConnection connection)
Deletes a pooled connection. |
TConnection |
getConnection()
Gets a opened connection from the pool. |
TConnectionPoolDescriptor |
getDescriptor()
Gets the TCOnnectionPoolDescriptor |
java.util.Locale |
getLocale()
Gets the locale. |
java.lang.String |
getName()
Gets the connection pools logical name. |
TConnectionPoolStatistics |
getStatistics()
Method getStatistics |
void |
release()
Releases all opened connections given within the pool. |
void |
retainConnection(TConnection connection)
Retains the handed connection back to the pool. |
void |
setLocale(java.util.Locale locale)
Sets the locale. |
java.lang.String |
toString()
Shows the current status of the connection pool as a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TConnectionPoolImpl(java.lang.String name, TConnectionPoolDescriptor descriptor, boolean poolTaminoConnections, java.util.Locale locale) throws TServerNotAvailableException
TServerNotAvailableException
public TConnectionPoolImpl(org.w3c.dom.Element element) throws TConnectionNotAvailableException
element
- describes the above XML tree structure.
TConnectionNotAvailableException
Method Detail |
---|
public TConnection getConnection() throws TConnectionNotAvailableException
getConnection
in interface TConnectionPool
TConnectionNotAvailableException
public void deleteConnection(TPooledConnection connection)
deleteConnection
in interface TConnectionPool
connection
- a TConnectionWrapperpublic void retainConnection(TConnection connection)
retainConnection
in interface TConnectionPool
connection
- is the TConnection that should be put pack into the pool.public void release()
release
in interface TConnectionPool
public java.lang.String getName()
getName
in interface TConnectionPool
public void setLocale(java.util.Locale locale)
setLocale
in interface TConnectionPool
public java.util.Locale getLocale()
getLocale
in interface TConnectionPool
public java.lang.String toString()
toString
in class java.lang.Object
public TConnectionPoolStatistics getStatistics()
TConnectionPool
getStatistics
in interface TConnectionPool
public TConnectionPoolDescriptor getDescriptor()
TConnectionPool
getDescriptor
in interface TConnectionPool
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |