org.objectweb.jonas_ejb.container.JStatelessFactory Class Reference

Inherits org.objectweb.jonas_ejb.container.JSessionFactory.

Inheritance diagram for org.objectweb.jonas_ejb.container.JStatelessFactory:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_ejb.container.JStatelessFactory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JStatelessFactory (SessionStatelessDesc dd, JContainer cont)
void initInstancePool ()
int getPoolSize ()
void reduceCache ()
TimerService getTimerService ()
JSessionSwitch createNewSession () throws RemoteException
JSessionContext getJContext (JSessionSwitch ss)
void releaseJContext (JContext ctx)
void notifyTimeout (Timer timer)
int getMinPoolSize ()
int getMaxCacheSize ()
int getCacheSize ()

Protected Attributes

List bctxlist = new ArrayList()

Detailed Description

This class is a factory for a Session Stateless Bean.
Author:
Philippe Durieux

Definition at line 54 of file JStatelessFactory.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.JStatelessFactory.JStatelessFactory SessionStatelessDesc  dd,
JContainer  cont
 

constructor

Parameters:
dd Session Stateless Deployment Descriptor
cnt Container where the bean is defined

Definition at line 82 of file JStatelessFactory.java.

References org.objectweb.jonas_ejb.deployment.api.BeanDesc.getCacheMax(), org.objectweb.jonas_ejb.container.JContainer.getClassLoader(), org.objectweb.jonas_ejb.deployment.api.SessionStatelessDesc.getFullWrpSEHomeName(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.getPoolMin(), and org.objectweb.jonas_ejb.container.JServiceEndpointHome.register().

Here is the call graph for this function:


Member Function Documentation

JSessionSwitch org.objectweb.jonas_ejb.container.JStatelessFactory.createNewSession  )  throws RemoteException [virtual]
 

Creates a new Session Stateless

Returns:
the new JSessionSwitch

Implements org.objectweb.jonas_ejb.container.JSessionFactory.

Definition at line 222 of file JStatelessFactory.java.

Referenced by org.objectweb.jonas_ejb.container.JStatelessFactory.initInstancePool().

int org.objectweb.jonas_ejb.container.JStatelessFactory.getCacheSize  ) 
 

Returns:
current cache size ( = nb of instance created) for Jmx

Definition at line 380 of file JStatelessFactory.java.

Referenced by org.objectweb.jonas_ejb.container.JStatelessFactory.getJContext(), org.objectweb.jonas_ejb.container.JStatelessFactory.reduceCache(), and org.objectweb.jonas_ejb.container.JStatelessFactory.releaseJContext().

JSessionContext org.objectweb.jonas_ejb.container.JStatelessFactory.getJContext JSessionSwitch  ss  )  [virtual]
 

Returns:
a SessionContext for Stateless Session Bean

Implements org.objectweb.jonas_ejb.container.JSessionFactory.

Definition at line 231 of file JStatelessFactory.java.

References org.objectweb.jonas_ejb.container.JStatelessFactory.bctxlist, org.objectweb.jonas_ejb.container.JStatelessFactory.getCacheSize(), and org.objectweb.jonas_ejb.container.JSessionContext.initSessionContext().

Here is the call graph for this function:

int org.objectweb.jonas_ejb.container.JStatelessFactory.getMaxCacheSize  ) 
 

Returns:
max cache size for Jmx

Definition at line 373 of file JStatelessFactory.java.

int org.objectweb.jonas_ejb.container.JStatelessFactory.getMinPoolSize  ) 
 

Returns:
min pool size for Jmx

Definition at line 366 of file JStatelessFactory.java.

int org.objectweb.jonas_ejb.container.JStatelessFactory.getPoolSize  )  [virtual]
 

Returns:
the Instance pool size for this Ejb

Implements org.objectweb.jonas_ejb.container.JFactory.

Definition at line 171 of file JStatelessFactory.java.

References org.objectweb.jonas_ejb.container.JStatelessFactory.bctxlist.

TimerService org.objectweb.jonas_ejb.container.JStatelessFactory.getTimerService  )  [virtual]
 

Obtains the TimerService associated for this Bean

Returns:
a JTimerService instance.

Implements org.objectweb.jonas_ejb.container.JFactory.

Definition at line 210 of file JStatelessFactory.java.

void org.objectweb.jonas_ejb.container.JStatelessFactory.initInstancePool  )  [virtual]
 

Init pool of instances.

Implements org.objectweb.jonas_ejb.container.JFactory.

Definition at line 130 of file JStatelessFactory.java.

References org.objectweb.jonas_ejb.container.JStatelessFactory.bctxlist, org.objectweb.jonas_ejb.container.JStatelessFactory.createNewSession(), org.objectweb.jonas_ejb.container.JFactory.resetComponentContext(), and org.objectweb.jonas_ejb.container.JFactory.setComponentContext().

Here is the call graph for this function:

void org.objectweb.jonas_ejb.container.JStatelessFactory.notifyTimeout Timer  timer  ) 
 

Notify a timeout for this bean

Parameters:
timer timer whose expiration caused this notification.

Definition at line 294 of file JStatelessFactory.java.

References org.objectweb.jonas_ejb.container.JFactory.checkSecurity(), org.objectweb.jonas_ejb.container.RequestCtx.currTx, org.objectweb.jonas_ejb.container.JRemote.exportObject(), org.objectweb.jonas_ejb.container.JSessionSwitch.getICtx(), org.objectweb.jonas_ejb.container.JSessionContext.getInstance(), org.objectweb.jonas_ejb.container.JSessionSwitch.getRemote(), org.objectweb.jonas_ejb.container.JFactory.getTimerTxAttribute(), org.objectweb.jonas_ejb.container.JFactory.postInvoke(), org.objectweb.jonas_ejb.container.JFactory.preInvoke(), and org.objectweb.jonas_ejb.container.RequestCtx.sysExc.

Here is the call graph for this function:

void org.objectweb.jonas_ejb.container.JStatelessFactory.reduceCache  ) 
 

Reduce number of instances in memory in the free list we reduce to the minPoolSize

Implements org.objectweb.jonas_ejb.container.BeanFactory.

Definition at line 179 of file JStatelessFactory.java.

References org.objectweb.jonas_ejb.container.JStatelessFactory.bctxlist, and org.objectweb.jonas_ejb.container.JStatelessFactory.getCacheSize().

Here is the call graph for this function:

void org.objectweb.jonas_ejb.container.JStatelessFactory.releaseJContext JContext  ctx  ) 
 

Called after each method call

Parameters:
ctx the Session Context

Definition at line 268 of file JStatelessFactory.java.

References org.objectweb.jonas_ejb.container.JStatelessFactory.bctxlist, and org.objectweb.jonas_ejb.container.JStatelessFactory.getCacheSize().

Here is the call graph for this function:


Member Data Documentation

List org.objectweb.jonas_ejb.container.JStatelessFactory.bctxlist = new ArrayList() [protected]
 

instance pool management (list of available JSessionContext objects) Contexts are pooled only for Stateless Session beans because for Stateful sessions a newInstance() is required by the spec.

Definition at line 61 of file JStatelessFactory.java.

Referenced by org.objectweb.jonas_ejb.container.JStatelessFactory.getJContext(), org.objectweb.jonas_ejb.container.JStatelessFactory.getPoolSize(), org.objectweb.jonas_ejb.container.JStatelessFactory.initInstancePool(), org.objectweb.jonas_ejb.container.JStatelessFactory.reduceCache(), and org.objectweb.jonas_ejb.container.JStatelessFactory.releaseJContext().


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