org.objectweb.jonas_ejb.container.JStatefulPool Class Reference

List of all members.

Public Member Functions

 JStatefulPool ()
synchronized int addContext (JStatefulContext ctx)
synchronized JStatefulContext getContext (int ctxid)
synchronized void removeContext (int ctxid)

Detailed Description

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.
Author:
Philippe Durieux

Definition at line 38 of file JStatefulPool.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.JStatefulPool.JStatefulPool  ) 
 

Constructor

Definition at line 49 of file JStatefulPool.java.


Member Function Documentation

synchronized int org.objectweb.jonas_ejb.container.JStatefulPool.addContext JStatefulContext  ctx  ) 
 

add a new Context in the pool

Parameters:
ctx The Stateful Session Context
Returns:
The Ident associated to it.

Definition at line 58 of file JStatefulPool.java.

Referenced by org.objectweb.jonas_ejb.container.JStatefulSwitch.bindICtx().

synchronized JStatefulContext org.objectweb.jonas_ejb.container.JStatefulPool.getContext int  ctxid  ) 
 

get a Context matching this Id

Parameters:
ctxid Ident for this Session
Returns:
The Session Context

Definition at line 81 of file JStatefulPool.java.

Referenced by org.objectweb.jonas_ejb.container.JStatefulSwitch.getICtx().

synchronized void org.objectweb.jonas_ejb.container.JStatefulPool.removeContext int  ctxid  ) 
 

remove the Context matching this Id

Parameters:
ctxid Ident for this Session

Definition at line 99 of file JStatefulPool.java.

Referenced by org.objectweb.jonas_ejb.container.JStatefulSwitch.noLongerUsed().


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