org.jboss.cache.interceptors
Class ActivationInterceptor

java.lang.Object
  |
  +--org.jboss.cache.interceptors.Interceptor
        |
        +--org.jboss.cache.interceptors.CacheLoaderInterceptor
              |
              +--org.jboss.cache.interceptors.ActivationInterceptor

public class ActivationInterceptor
extends CacheLoaderInterceptor

Loads nodes that don't exist at the time of the call into memory from the CacheLoader. If the nodes were evicted earlier then we remove them from the cache loader after their attributes have been initalized and their children have been loaded in memory.

Version:
$Id: ActivationInterceptor.java,v 1.11 2005/09/09 10:52:14 hmesha Exp $
Author:
{Hany Mesha}

Field Summary
protected static java.lang.Object NULL
           
protected  EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap transactions
          List that we have registered for
protected  javax.transaction.TransactionManager tx_mgr
           
protected  TransactionTable tx_table
           
 
Fields inherited from class org.jboss.cache.interceptors.CacheLoaderInterceptor
loader
 
Constructor Summary
ActivationInterceptor()
           
 
Method Summary
protected  CacheLoader getLoader()
           
 java.lang.Object invoke(org.jgroups.blocks.MethodCall m)
          Makes sure a node is loaded into memory before a call executes.
 
Methods inherited from class org.jboss.cache.interceptors.CacheLoaderInterceptor
getNode, loadAttributesFromCacheLoader, lock, setCache
 
Methods inherited from class org.jboss.cache.interceptors.Interceptor
getNext, setNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tx_mgr

protected javax.transaction.TransactionManager tx_mgr

tx_table

protected TransactionTable tx_table

transactions

protected EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap transactions
List that we have registered for


NULL

protected static final java.lang.Object NULL
Constructor Detail

ActivationInterceptor

public ActivationInterceptor()
Method Detail

invoke

public java.lang.Object invoke(org.jgroups.blocks.MethodCall m)
                        throws java.lang.Throwable
Makes sure a node is loaded into memory before a call executes. If node is already loaded and its attributes already initialized, then remove it from the cache loader and notify the cache listeners that the node has been activated.

Overrides:
invoke in class CacheLoaderInterceptor
Parameters:
m -
Returns:
Throws:
java.lang.Throwable

getLoader

protected CacheLoader getLoader()


Copyright © 1998-2005 JBoss Inc . All Rights Reserved.