|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttyrex.resource.PoolMetrics
tyrex.resource.jca.ConnectionPool
| Field Summary | |
static int |
TABLE_SIZE
The initial table size, unless a maximum number of connections is specified. |
| Fields inherited from class tyrex.resource.PoolMetrics |
_available, _total |
| Constructor Summary | |
(package private) |
ConnectionPool(java.lang.String name,
PoolLimits limits,
ConnectorLoader loader,
TyrexTransactionManager txManager,
Category category)
|
| Method Summary | |
boolean |
add(java.lang.Object object)
|
boolean |
addAll(java.util.Collection collection)
|
java.lang.Object |
allocateConnection(javax.resource.spi.ManagedConnectionFactory factory,
javax.resource.spi.ConnectionRequestInfo requestInfo)
|
void |
clear()
|
void |
connectionClosed(javax.resource.spi.ConnectionEvent event)
|
void |
connectionErrorOccurred(javax.resource.spi.ConnectionEvent event)
|
boolean |
contains(java.lang.Object object)
|
boolean |
containsAll(java.util.Collection collection)
|
void |
destroy()
Called to destory the resource once it is no longer in use. |
boolean |
equals(java.lang.Object object)
|
protected long |
expire()
Called periodically to expire connections that have been available in the pool for longer than maxRetain seconds. |
java.lang.Object |
getClientFactory()
Returns the client connection factory. |
java.lang.Class |
getClientFactoryClass()
Returns the client connection factory class. |
PoolLimits |
getPoolLimits()
Returns the limits placed on the connection pool. |
PoolMetrics |
getPoolMetrics()
Returns the pool metrics. |
javax.transaction.xa.XAResource |
getXAResource()
Returns the XA resource interface. |
int |
hashCode()
|
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
void |
localTransactionCommitted(javax.resource.spi.ConnectionEvent event)
|
void |
localTransactionRolledback(javax.resource.spi.ConnectionEvent event)
|
void |
localTransactionStarted(javax.resource.spi.ConnectionEvent event)
|
boolean |
remove(java.lang.Object object)
|
boolean |
removeAll(java.util.Collection collection)
|
boolean |
retainAll(java.util.Collection collection)
|
void |
run()
|
int |
size()
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] array)
|
java.lang.String |
toString()
|
| Methods inherited from class tyrex.resource.PoolMetrics |
getAvailable, getCurrentUnused, getCurrentUsed, getTotal, getTotalCreated, getTotalDiscarded, getTotalErrors, getTotalUsed, getUnusedAvgDuration, getUsedAvgDuration, recordCreated, recordDiscard, recordError, recordUnusedDuration, recordUsedDuration, reset |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int TABLE_SIZE
| Constructor Detail |
ConnectionPool(java.lang.String name,
PoolLimits limits,
ConnectorLoader loader,
TyrexTransactionManager txManager,
Category category)
throws javax.resource.ResourceException
| Method Detail |
public PoolMetrics getPoolMetrics()
Resource
getPoolMetrics in interface Resourcepublic PoolLimits getPoolLimits()
Resource
getPoolLimits in interface Resourcepublic java.lang.Object getClientFactory()
Resource
getClientFactory in interface Resourcepublic java.lang.Class getClientFactoryClass()
Resource
getClientFactoryClass in interface Resourcepublic java.lang.String toString()
public javax.transaction.xa.XAResource getXAResource()
Resource
getXAResource in interface Resourcepublic void destroy()
ResourceThe application server must render the connection factory inaccessible to the application before calling this method.
destroy in interface Resourcepublic void run()
run in interface java.lang.Runnable
public java.lang.Object allocateConnection(javax.resource.spi.ManagedConnectionFactory factory,
javax.resource.spi.ConnectionRequestInfo requestInfo)
throws javax.resource.ResourceException
allocateConnection in interface javax.resource.spi.ConnectionManagerjavax.resource.ResourceExceptionpublic void connectionClosed(javax.resource.spi.ConnectionEvent event)
connectionClosed in interface javax.resource.spi.ConnectionEventListenerpublic void connectionErrorOccurred(javax.resource.spi.ConnectionEvent event)
connectionErrorOccurred in interface javax.resource.spi.ConnectionEventListenerpublic void localTransactionCommitted(javax.resource.spi.ConnectionEvent event)
localTransactionCommitted in interface javax.resource.spi.ConnectionEventListenerpublic void localTransactionRolledback(javax.resource.spi.ConnectionEvent event)
localTransactionRolledback in interface javax.resource.spi.ConnectionEventListenerpublic void localTransactionStarted(javax.resource.spi.ConnectionEvent event)
localTransactionStarted in interface javax.resource.spi.ConnectionEventListenerprotected long expire()
public boolean add(java.lang.Object object)
add in interface java.util.Setpublic boolean addAll(java.util.Collection collection)
addAll in interface java.util.Setpublic void clear()
clear in interface java.util.Setpublic boolean contains(java.lang.Object object)
contains in interface java.util.Setpublic boolean containsAll(java.util.Collection collection)
containsAll in interface java.util.Setpublic boolean equals(java.lang.Object object)
equals in interface java.util.Setpublic int hashCode()
hashCode in interface java.util.Setpublic boolean isEmpty()
isEmpty in interface java.util.Setpublic java.util.Iterator iterator()
iterator in interface java.util.Setpublic boolean remove(java.lang.Object object)
remove in interface java.util.Setpublic boolean removeAll(java.util.Collection collection)
removeAll in interface java.util.Setpublic boolean retainAll(java.util.Collection collection)
retainAll in interface java.util.Setpublic int size()
size in interface java.util.Setpublic java.lang.Object[] toArray()
toArray in interface java.util.Setpublic java.lang.Object[] toArray(java.lang.Object[] array)
toArray in interface java.util.Set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||