Class EventImpl
- java.lang.Object
-
- org.infinispan.notifications.cachemanagerlistener.event.impl.EventImpl
-
- All Implemented Interfaces:
CacheStartedEvent
,CacheStoppedEvent
,ConfigurationChangedEvent
,Event
,MergeEvent
,ViewChangedEvent
public class EventImpl extends Object implements CacheStartedEvent, CacheStoppedEvent, ViewChangedEvent, MergeEvent, ConfigurationChangedEvent
Implementation of cache manager events- Since:
- 4.0
- Author:
- Manik Surtani
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.infinispan.notifications.cachemanagerlistener.event.ConfigurationChangedEvent
ConfigurationChangedEvent.EventType
-
Nested classes/interfaces inherited from interface org.infinispan.notifications.cachemanagerlistener.event.Event
Event.Type
-
-
Constructor Summary
Constructors Constructor Description EventImpl()
EventImpl(String cacheName, EmbeddedCacheManager cacheManager, Event.Type type, List<Address> newMemberList, List<Address> oldMemberList, Address localAddress, int viewId)
-
Method Summary
-
-
-
Constructor Detail
-
EventImpl
public EventImpl()
-
EventImpl
public EventImpl(String cacheName, EmbeddedCacheManager cacheManager, Event.Type type, List<Address> newMemberList, List<Address> oldMemberList, Address localAddress, int viewId)
-
-
Method Detail
-
getCacheName
public String getCacheName()
- Specified by:
getCacheName
in interfaceCacheStartedEvent
- Specified by:
getCacheName
in interfaceCacheStoppedEvent
-
setCacheName
public void setCacheName(String cacheName)
-
getCacheManager
public EmbeddedCacheManager getCacheManager()
- Specified by:
getCacheManager
in interfaceEvent
-
setCacheManager
public void setCacheManager(EmbeddedCacheManager cacheManager)
-
getType
public Event.Type getType()
-
setType
public void setType(Event.Type type)
-
getNewMembers
public List<Address> getNewMembers()
Description copied from interface:ViewChangedEvent
Gets the current list of members.- Specified by:
getNewMembers
in interfaceViewChangedEvent
- Returns:
- the new view associated with this view change. List cannot be null.
-
getOldMembers
public List<Address> getOldMembers()
Description copied from interface:ViewChangedEvent
Gets the previous list of members.- Specified by:
getOldMembers
in interfaceViewChangedEvent
- Returns:
- the old view associated with this view change. List cannot be null.
-
getLocalAddress
public Address getLocalAddress()
- Specified by:
getLocalAddress
in interfaceViewChangedEvent
-
getViewId
public int getViewId()
Description copied from interface:ViewChangedEvent
Get JGroups view id.- Specified by:
getViewId
in interfaceViewChangedEvent
- Returns:
-
setViewId
public void setViewId(int viewId)
-
setLocalAddress
public void setLocalAddress(Address localAddress)
-
getSubgroupsMerged
public List<List<Address>> getSubgroupsMerged()
- Specified by:
getSubgroupsMerged
in interfaceMergeEvent
-
isMergeView
public boolean isMergeView()
- Specified by:
isMergeView
in interfaceViewChangedEvent
-
setMergeView
public void setMergeView(boolean b)
-
setConfigurationEventType
public void setConfigurationEventType(ConfigurationChangedEvent.EventType eventType)
-
setConfigurationEntityType
public void setConfigurationEntityType(String type)
-
setConfigurationEntityName
public void setConfigurationEntityName(String name)
-
getConfigurationEventType
public ConfigurationChangedEvent.EventType getConfigurationEventType()
- Specified by:
getConfigurationEventType
in interfaceConfigurationChangedEvent
-
getConfigurationEntityType
public String getConfigurationEntityType()
- Specified by:
getConfigurationEntityType
in interfaceConfigurationChangedEvent
-
getConfigurationEntityName
public String getConfigurationEntityName()
- Specified by:
getConfigurationEntityName
in interfaceConfigurationChangedEvent
-
-