org.objectweb.jonas_ejb.container
Class JStatefulPool

java.lang.Object
  |
  +--org.objectweb.jonas_ejb.container.JStatefulPool

public class JStatefulPool
extends java.lang.Object

This class manages SessionContext objects for Session Stateful beans It is responsible for keeping Contexts in memory and storing them on disk when the swapper ask for more available memory.


Constructor Summary
JStatefulPool()
          Constructor
 
Method Summary
 int addContext(JStatefulContext ctx)
          add a new Context in the pool
 JStatefulContext getContext(int ctxid)
          get a Context matching this Id
 void removeContext(int ctxid)
          remove the Context matching this Id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JStatefulPool

public JStatefulPool()
Constructor
Method Detail

addContext

public int addContext(JStatefulContext ctx)
add a new Context in the pool

getContext

public JStatefulContext getContext(int ctxid)
get a Context matching this Id

removeContext

public void removeContext(int ctxid)
remove the Context matching this Id