org.infinispan.notifications.cachemanagerlistener
Class CacheManagerNotifierImpl

java.lang.Object
  extended by org.infinispan.notifications.AbstractListenerImpl
      extended by org.infinispan.notifications.cachemanagerlistener.CacheManagerNotifierImpl
All Implemented Interfaces:
CacheManagerNotifier, Listenable

public class CacheManagerNotifierImpl
extends AbstractListenerImpl
implements CacheManagerNotifier

Global, shared notifications on the cache manager.

Since:
4.0
Author:
Manik Surtani

Nested Class Summary
 
Nested classes/interfaces inherited from class org.infinispan.notifications.AbstractListenerImpl
AbstractListenerImpl.ListenerInvocation
 
Field Summary
 
Fields inherited from class org.infinispan.notifications.AbstractListenerImpl
asyncProcessor, listenersMap, syncProcessor
 
Constructor Summary
CacheManagerNotifierImpl()
           
 
Method Summary
protected  Map<Class<? extends Annotation>,Class> getAllowedMethodAnnotations()
           
protected  Log getLog()
           
 void injectCacheManager(CacheManager cacheManager)
           
 void notifyCacheStarted(String cacheName)
           
 void notifyCacheStopped(String cacheName)
           
 void notifyViewChange(List<Address> members, List<Address> oldMembers, Address myAddress, int viewId)
          Notifies all registered listeners of a viewChange event.
 
Methods inherited from class org.infinispan.notifications.AbstractListenerImpl
addListener, getListenerCollectionForAnnotation, getListeners, removeAllCacheListeners, removeListener, start, testListenerClassValidity, testListenerMethodValidity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.infinispan.notifications.Listenable
addListener, getListeners, removeListener
 

Constructor Detail

CacheManagerNotifierImpl

public CacheManagerNotifierImpl()
Method Detail

injectCacheManager

public void injectCacheManager(CacheManager cacheManager)

notifyViewChange

public void notifyViewChange(List<Address> members,
                             List<Address> oldMembers,
                             Address myAddress,
                             int viewId)
Description copied from interface: CacheManagerNotifier
Notifies all registered listeners of a viewChange event. Note that viewChange notifications are ALWAYS sent immediately.

Specified by:
notifyViewChange in interface CacheManagerNotifier

notifyCacheStarted

public void notifyCacheStarted(String cacheName)
Specified by:
notifyCacheStarted in interface CacheManagerNotifier

notifyCacheStopped

public void notifyCacheStopped(String cacheName)
Specified by:
notifyCacheStopped in interface CacheManagerNotifier

getLog

protected Log getLog()
Specified by:
getLog in class AbstractListenerImpl

getAllowedMethodAnnotations

protected Map<Class<? extends Annotation>,Class> getAllowedMethodAnnotations()
Specified by:
getAllowedMethodAnnotations in class AbstractListenerImpl

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.