org.objectweb.jonas.dbm.PoolKeeper Class Reference

Collaboration diagram for org.objectweb.jonas.dbm.PoolKeeper:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PoolKeeper (Pool pool)
void setSamplingPeriod (int sec)
void run ()

Detailed Description

Keeps pool as small as possible (after conn's has reached MaxAge)
Author:
Philippe Durieux Contributor(s):

Definition at line 36 of file PoolKeeper.java.


Constructor & Destructor Documentation

org.objectweb.jonas.dbm.PoolKeeper.PoolKeeper Pool  pool  ) 
 

Constructor

Parameters:
pool Pool to monitor

Definition at line 59 of file PoolKeeper.java.


Member Function Documentation

void org.objectweb.jonas.dbm.PoolKeeper.run  ) 
 

Start the pool keeper thread

Definition at line 81 of file PoolKeeper.java.

References org.objectweb.jonas.dbm.Pool.adjust(), and org.objectweb.jonas.dbm.Pool.sampling().

Here is the call graph for this function:

void org.objectweb.jonas.dbm.PoolKeeper.setSamplingPeriod int  sec  ) 
 

Set the sampling period. This cannot be done in the PoolKeeper constructor, because the sampling period has not been set already in the Pool. Moreover, this can be reconfigured later.

Parameters:
sec sampling period in sec.

Definition at line 73 of file PoolKeeper.java.

Referenced by org.objectweb.jonas.dbm.Pool.setSamplingPeriod().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:06:47 2005 for JOnAS by  doxygen 1.3.9.1