| |
|
| java.lang.Object org.objectweb.jonas.resource.pool.lib.HArrayPool
HArrayPool | public class HArrayPool implements Pool(Code) | | The class HArrayPool implements a Pool as a HashSet of ManagedConnections,
managing free/active resources.
Updated to use an LRU list of free resources
Author: Eric HARDESTY
|
HArrayPool | public HArrayPool(Logger logger, String jndiname)(Code) | | HArrayPool constructor
Parameters: logger - Logger for the pool to use |
adjust | public synchronized void adjust() throws Exception(Code) | | Adjust the pool size, according to poolMax and minSize values.
Also remove old connections in the freeList.
throws: Exception - if an exception occurs |
closeAllConnections | public synchronized void closeAllConnections()(Code) | | Close all connections in the pool when server is shutting down.
|
getBusyMaxRecent | public int getBusyMaxRecent()(Code) | | maximum nb of busy connections in last sampling period |
getBusyMinRecent | public int getBusyMinRecent()(Code) | | minimum nb of busy connections in last sampling period |
getConnectionFailures | public int getConnectionFailures()(Code) | | int number of connection failures on open |
getConnectionLeaks | public int getConnectionLeaks()(Code) | | int number of connection leaks |
getCurrentBusy | public int getCurrentBusy()(Code) | | int number of busy connections |
getCurrentOpened | public int getCurrentOpened()(Code) | | int number of opened connections |
getCurrentWaiters | public int getCurrentWaiters()(Code) | | current number of connection waiters |
getMaxOpentime | public int getMaxOpentime()(Code) | | max age for connections (in mns) |
getMaxWaitTime | public int getMaxWaitTime()(Code) | | waiter timeout in seconds |
getMaxWaiters | public int getMaxWaiters()(Code) | | max nb of waiters |
getOpenedCount | public int getOpenedCount()(Code) | | int number of physical jdbc connection opened |
getRejectedFull | public int getRejectedFull()(Code) | | int number of open calls that were rejected due to waiter overflow |
getRejectedOpen | public int getRejectedOpen()(Code) | | int number of open calls that were rejected |
getRejectedOther | public int getRejectedOther()(Code) | | int number of open calls that were rejected |
getRejectedTimeout | public int getRejectedTimeout()(Code) | | int number of open calls that were rejected by timeout |
getSamplingPeriod | public int getSamplingPeriod()(Code) | | sampling period in sec. |
getServedOpen | public int getServedOpen()(Code) | | int number of connection served |
getSize | public synchronized int getSize()(Code) | | Get the size of the pool
int size of the pool |
getWaiterCount | public int getWaiterCount()(Code) | | total nb of waiters since the datasource creation |
getWaitersHigh | public int getWaitersHigh()(Code) | | maximum nb of waiters since the datasource creation |
getWaitersHighRecent | public int getWaitersHighRecent()(Code) | | maximum nb of waiters in last sampling period |
getWaitingHigh | public long getWaitingHigh()(Code) | | max waiting time since the datasource creation |
getWaitingHighRecent | public long getWaitingHighRecent()(Code) | | max waiting time in last sampling period |
getWaitingTime | public long getWaitingTime()(Code) | | total waiting time since the datasource creation |
printLists | void printLists()(Code) | | Print information about the pool
|
recomputeBusy | public void recomputeBusy()(Code) | | compute current min/max busyConnections
|
setMaxOpentime | public void setMaxOpentime(int mx)(Code) | | Parameters: mx - max time of open connection in minutes |
setMaxWaitTime | public void setMaxWaitTime(int sec)(Code) | | Parameters: sec - max time to wait for a connection, in seconds |
setMaxWaiters | public void setMaxWaiters(int nb)(Code) | | Parameters: nb - max nb of waiters |
setSamplingPeriod | public void setSamplingPeriod(int sec)(Code) | | Parameters: sec - sampling period in sec. |
|
|
|