Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » ejb » plugins » [javadoc | source]
org.jboss.ejb.plugins
abstract public class: AbstractInstancePool [javadoc | source]
java.lang.Object
   org.jboss.mx.util.JBossNotificationBroadcasterSupport
      org.jboss.system.ServiceMBeanSupport
         org.jboss.ejb.plugins.AbstractInstancePool

All Implemented Interfaces:
    XmlLoadable, AbstractInstancePoolMBean, InstancePool, org.jboss.kernel.spi.dependency.KernelControllerContextAware, ServiceMBean, MBeanRegistration, NotificationEmitter

Direct Known Subclasses:
    StatelessSessionInstancePool, StatefulSessionInstancePool, MessageDrivenInstancePool, SingletonStatelessSessionInstancePool, EntityInstancePool

Abstract Instance Pool class containing the basic logic to create an EJB Instance Pool.
Field Summary
protected  Container container    The Container the instance pool is associated with 
protected  LinkedList pool    The pool data structure 
protected  int maxSize    The maximum number of instances allowed in the pool 
protected  boolean reclaim    determine if we reuse EnterpriseContext objects i.e. if we actually do pooling 
Fields inherited from org.jboss.system.ServiceMBeanSupport:
SERVICE_CONTROLLER_SIG,  log,  server,  serviceName
Method from org.jboss.ejb.plugins.AbstractInstancePool Summary:
clear,   create,   destroyService,   discard,   free,   get,   getAvailableCount,   getContainer,   getCurrentSize,   getMaxSize,   importXml,   setContainer
Methods from org.jboss.system.ServiceMBeanSupport:
create,   createService,   destroy,   destroyService,   getDeploymentInfo,   getLog,   getName,   getNextNotificationSequenceNumber,   getObjectName,   getServer,   getServiceName,   getState,   getStateString,   jbossInternalCreate,   jbossInternalDescription,   jbossInternalDestroy,   jbossInternalLifecycle,   jbossInternalStart,   jbossInternalStop,   pojoChange,   pojoCreate,   pojoDestroy,   pojoStart,   pojoStop,   postDeregister,   postRegister,   preDeregister,   preRegister,   setKernelControllerContext,   start,   startService,   stop,   stopService,   unsetKernelControllerContext
Methods from org.jboss.mx.util.JBossNotificationBroadcasterSupport:
addNotificationListener,   getNotificationInfo,   handleNotification,   nextNotificationSequenceNumber,   removeNotificationListener,   removeNotificationListener,   sendNotification
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ejb.plugins.AbstractInstancePool Detail:
 public  void clear() 
 abstract protected EnterpriseContext create(Object instance) throws Exception
 protected  void destroyService() throws Exception 
 public  void discard(EnterpriseContext ctx) 
 public  void free(EnterpriseContext ctx) 
    Return an instance after invocation. Called in 2 cases: a) Done with finder method b) Just removed
 public EnterpriseContext get() throws Exception 
    Get an instance without identity. Can be used by finders,create-methods, and activation
 public long getAvailableCount() 
    Get the current avaiable count from the strict max view. If there is no strict max then this will be Long.MAX_VALUE to indicate there is no restriction.
 public Container getContainer() 
 public int getCurrentSize() 
 public int getMaxSize() 
 public  void importXml(Element element) throws DeploymentException 
    XmlLoadable implementation
 public  void setContainer(Container c) 
    Set the callback to the container. This is for initialization. The IM may extract the configuration from the container.