Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.cache
Class AbstractTreeCacheListener

    java.lang.Object
      org.jboss.cache.AbstractTreeCacheListener

All Implemented Interfaces:
  ExtendedTreeCacheListener, TreeCacheListener

Direct Known Subclasses:
  ConsoleListener, SharedStoreCacheLoader, TreeCacheView.MyListener

    public abstract class AbstractTreeCacheListener

extends java.lang.Object
implements TreeCacheListener, ExtendedTreeCacheListener

An abstract implementation of `TreeCacheListener` and `ExtendedTreeCacheListener`. Subclass this if you don't want to implement all the methods in the `TreeCacheListener` and `ExtendedTreeCacheListener` interfaces.

Author:
  hmesha

Constructor Summary
`AbstractTreeCacheListener()`

Method Summary
`void` | `cacheStarted(TreeCache cache)` Called when the cache is started.
`void` | `cacheStopped(TreeCache cache)` Called when the cache is stopped.
`void` | `nodeActivate(Fqn fqn, boolean pre)` Called when a node is to be or has been activated into memory via the CacheLoader that was evicted earlier.
`void` | `nodeCreated(Fqn fqn)` Called when a node is created
`void` | `nodeEvict(Fqn fqn, boolean pre)` Called when a node is about to be evicted or has been evicted from the in-memory cache.
`void` | `nodeEvicted(Fqn fqn)` Called when a node is evicted (not the same as remove()).
`void` | `nodeLoaded(Fqn fqn)` Called when a node is loaded into memory via the CacheLoader.
`void` | `nodeModified(Fqn fqn)` Called when a node is modified, e.g., one (key, value) pair in the internal map storage has been modified.
`void` | `nodeModify(Fqn fqn, boolean pre, boolean isLocal)` Called when a node is about to be modified or has been modified.
`void` | `nodePassivate(Fqn fqn, boolean pre)` Called when a node is to be or has been written to the backend store via the cache loader due to a node eviction by the eviction policy provider
`void` | `nodeRemove(Fqn fqn, boolean pre, boolean isLocal)` Called when a node is about to be removed or has been removed from the in-memory cache.
`void` | `nodeRemoved(Fqn fqn)` Called when a node is removed.
`void` | `nodeVisited(Fqn fqn)` Called when a node is visisted, i.e., get().
`void` | `viewChange(org.jgroups.View new_view)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### AbstractTreeCacheListener

    public AbstractTreeCacheListener()

Method Detail

### nodeCreated

    public void nodeCreated(Fqn fqn)

  Description copied from interface: `TreeCacheListener`
  Called when a node is created

  Specified by:
    `nodeCreated` in interface `TreeCacheListener`

### nodeRemoved

    public void nodeRemoved(Fqn fqn)

  Description copied from interface: `TreeCacheListener`
  Called when a node is removed.

  Specified by:
    `nodeRemoved` in interface `TreeCacheListener`

### nodeLoaded

    public void nodeLoaded(Fqn fqn)

  Description copied from interface: `TreeCacheListener`
  Called when a node is loaded into memory via the CacheLoader. This is not the same as `TreeCacheListener.nodeCreated(Fqn)`.

  Specified by:
    `nodeLoaded` in interface `TreeCacheListener`

### nodeEvicted

    public void nodeEvicted(Fqn fqn)

  Description copied from interface: `TreeCacheListener`
  Called when a node is evicted (not the same as remove()).

  Specified by:
    `nodeEvicted` in interface `TreeCacheListener`

### nodeModify

    public void nodeModify(Fqn fqn,
                           boolean pre,
                           boolean isLocal)

  Description copied from interface: `ExtendedTreeCacheListener`
  Called when a node is about to be modified or has been modified. Note: Currently TreeCacheListener has `TreeCacheListener.nodeModified(Fqn)` which will be merged with this method in release 1.3.

  Specified by:
    `nodeModify` in interface `ExtendedTreeCacheListener`
  See Also:
    `TreeCacheListener.nodeModified(Fqn)`

### nodeModified

    public void nodeModified(Fqn fqn)

  Description copied from interface: `TreeCacheListener`
  Called when a node is modified, e.g., one (key, value) pair in the internal map storage has been modified.

  Specified by:
    `nodeModified` in interface `TreeCacheListener`

### nodeVisited

    public void nodeVisited(Fqn fqn)

  Description copied from interface: `TreeCacheListener`
  Called when a node is visisted, i.e., get().

  Specified by:
    `nodeVisited` in interface `TreeCacheListener`

### cacheStarted

    public void cacheStarted(TreeCache cache)

  Description copied from interface: `TreeCacheListener`
  Called when the cache is started.

  Specified by:
    `cacheStarted` in interface `TreeCacheListener`

### cacheStopped

    public void cacheStopped(TreeCache cache)

  Description copied from interface: `TreeCacheListener`
  Called when the cache is stopped.

  Specified by:
    `cacheStopped` in interface `TreeCacheListener`

### viewChange

    public void viewChange(org.jgroups.View new_view)

  Specified by:
    `viewChange` in interface `TreeCacheListener`

### nodeEvict

    public void nodeEvict(Fqn fqn,
                          boolean pre)

  Description copied from interface: `ExtendedTreeCacheListener`
  Called when a node is about to be evicted or has been evicted from the in-memory cache. Note: Currently TreeCacheListener has `TreeCacheListener.nodeEvicted(Fqn)` which will be merged with method in release 1.3.

  Specified by:
    `nodeEvict` in interface `ExtendedTreeCacheListener`
  See Also:
    `TreeCacheListener.nodeEvicted(Fqn)`

### nodeRemove

    public void nodeRemove(Fqn fqn,
                           boolean pre,
                           boolean isLocal)

  Description copied from interface: `ExtendedTreeCacheListener`
  Called when a node is about to be removed or has been removed from the in-memory cache. Note: Currently TreeCacheListener has `TreeCacheListener.nodeRemoved(Fqn)` which will be merged with this method in release 1.3.

  Specified by:
    `nodeRemove` in interface `ExtendedTreeCacheListener`
  See Also:
    `TreeCacheListener.nodeRemoved(Fqn)`

### nodeActivate

    public void nodeActivate(Fqn fqn,
                             boolean pre)

  Description copied from interface: `ExtendedTreeCacheListener`
  Called when a node is to be or has been activated into memory via the CacheLoader that was evicted earlier.

  Specified by:
    `nodeActivate` in interface `ExtendedTreeCacheListener`

### nodePassivate

    public void nodePassivate(Fqn fqn,
                              boolean pre)

  Description copied from interface: `ExtendedTreeCacheListener`
  Called when a node is to be or has been written to the backend store via the cache loader due to a node eviction by the eviction policy provider

  Specified by:
    `nodePassivate` in interface `ExtendedTreeCacheListener`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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