| |
|
| java.lang.Object java.lang.Thread org.objectweb.jonas_ejb.container.Swapper
Swapper | class Swapper extends Thread (Code) | | This class is responsible for swapping bean instances to keep memory usage
low enough, according to entity max-cache-size and inactivity-timeout values
and to passivate instances on timeout when used outside transactions.
There is 1 swapper per Container.
author: Philippe Durieux |
Swapper | public Swapper(JContainer cont)(Code) | | constructor
Parameters: cont - The Container |
addBeanFactory | public synchronized void addBeanFactory(BeanFactory bf)(Code) | | add a BeanFactory to the list
Parameters: bf - the Bean Factory |
addBeanFactorySync | public synchronized void addBeanFactorySync(BeanFactory bf)(Code) | | synchronizes all instances accessed outside transaction.
This is "CS policy" specific
Parameters: bf - the Bean Factory |
run | public void run()(Code) | | run method for Thread implementation.
|
setSwapperTimeout | public synchronized void setSwapperTimeout(int t)(Code) | | set timeout value
Parameters: t - in seconds |
stopIt | public synchronized void stopIt()(Code) | | stop the swapper.
|
|
|
|