站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 cluster API Documentation 英文版文档

StatefulHASessionInstanceCache (JBoss Cluster API) - JBoss 4.0.1 sp1 cluster API Documentation 英文版文档


org.jboss.ejb.plugins
Class StatefulHASessionInstanceCache

java.lang.Object
  extended byorg.jboss.ejb.plugins.AbstractInstanceCache
      extended byorg.jboss.ejb.plugins.StatefulSessionInstanceCache
          extended byorg.jboss.ejb.plugins.StatefulHASessionInstanceCache
All Implemented Interfaces:
org.jboss.ejb.plugins.AbstractInstanceCacheMBean, org.jboss.ejb.AllowedOperationsFlags, org.jboss.ejb.ContainerPlugin, org.jboss.ejb.InstanceCache, org.jboss.monitor.MetricsConstants, org.jboss.monitor.Monitorable, org.jboss.system.Service, org.jboss.metadata.XmlLoadable

public class StatefulHASessionInstanceCache
extends org.jboss.ejb.plugins.StatefulSessionInstanceCache

SFSB cache for clustered environment. Mainly avoid "excessive" locking that can generate cluster-distributed deadlocks.

Version:
$Revision: 1.5 $

Revisions:

19 decembre 2002 Sacha Labourey:

  • First implementation
Author:
Sacha Labourey.
See Also:
StatefulSessionInstanceCache

Field Summary
 
Fields inherited from class org.jboss.ejb.plugins.AbstractInstanceCache
log
 
Fields inherited from interface org.jboss.ejb.AllowedOperationsFlags
IN_AFTER_BEGIN, IN_AFTER_COMPLETION, IN_BEFORE_COMPLETION, IN_BUSINESS_METHOD, IN_EJB_ACTIVATE, IN_EJB_CREATE, IN_EJB_FIND, IN_EJB_HOME, IN_EJB_LOAD, IN_EJB_PASSIVATE, IN_EJB_POST_CREATE, IN_EJB_REMOVE, IN_EJB_STORE, IN_EJB_TIMEOUT, IN_INTERCEPTOR_METHOD, IN_SERVICE_ENDPOINT_METHOD, IN_SET_ENTITY_CONTEXT, IN_SET_MESSAGE_DRIVEN_CONTEXT, IN_SET_SESSION_CONTEXT, IN_UNSET_ENTITY_CONTEXT, NOT_ALLOWED
 
Fields inherited from interface org.jboss.monitor.MetricsConstants
ACTIVITY, APPLICATION, BEAN, BEANCACHE_METRICS, CHECKPOINT, INVOCATION_METRICS, MEMORY_MONITOR, METHOD, PRIMARY_KEY, SYSTEM_METRICS, THREAD_MONITOR, TIME, TYPE
 
Constructor Summary
StatefulHASessionInstanceCache()
           
 
Method Summary
 org.jboss.ejb.EnterpriseContext get(Object id)
           
 void invalidateLocally(Object id)
          Remove an object from the local cache *without* any locking (synchronized, etc.) to avoid huge cluster-wide deadlock situations We have to unschedule passivation as well as the bean may be used on another node.
 
Methods inherited from class org.jboss.ejb.plugins.StatefulSessionInstanceCache
acquireContext, activate, canPassivate, destroy, doActivate, freeContext, getContainer, getKey, getPassivatedCount, passivate, postRemovalCleanup, preRemovalPreparation, removePassivated, setContainer, setKey
 
Methods inherited from class org.jboss.ejb.plugins.AbstractInstanceCache
create, flush, getCache, getCacheLock, getCachePolicyString, getCacheSize, importXml, insert, isActive, logActivation, logPassivation, release, remove, resetStatistic, retrieveStatistic, sample, start, stop, tryToPassivate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatefulHASessionInstanceCache

public StatefulHASessionInstanceCache()
Method Detail

invalidateLocally

public void invalidateLocally(Object id)
Remove an object from the local cache *without* any locking (synchronized, etc.) to avoid huge cluster-wide deadlock situations We have to unschedule passivation as well as the bean may be used on another node.


get

public org.jboss.ejb.EnterpriseContext get(Object id)
                                    throws RemoteException,
                                           NoSuchObjectException
Throws:
RemoteException
NoSuchObjectException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.