Class EventImpl
- java.lang.Object
-
- org.infinispan.notifications.cachemanagerlistener.event.impl.EventImpl
-
- All Implemented Interfaces:
CacheStartedEvent,CacheStoppedEvent,Event,MergeEvent,ViewChangedEvent
public class EventImpl extends Object implements CacheStartedEvent, CacheStoppedEvent, ViewChangedEvent, MergeEvent
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.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)EmbeddedCacheManagergetCacheManager()StringgetCacheName()AddressgetLocalAddress()List<Address>getNewMembers()Gets the current list of members.List<Address>getOldMembers()Gets the previous list of members.List<List<Address>>getSubgroupsMerged()Event.TypegetType()intgetViewId()Get JGroups view id.inthashCode()booleanisMergeView()voidsetCacheManager(EmbeddedCacheManager cacheManager)voidsetCacheName(String cacheName)voidsetLocalAddress(Address localAddress)voidsetMergeView(boolean b)voidsetNewMembers(List<Address> newMembers)voidsetOldMembers(List<Address> oldMembers)voidsetSubgroupsMerged(List<List<Address>> subgroupsMerged)voidsetType(Event.Type type)voidsetViewId(int viewId)StringtoString()
-
-
-
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:
getCacheNamein interfaceCacheStartedEvent- Specified by:
getCacheNamein interfaceCacheStoppedEvent
-
setCacheName
public void setCacheName(String cacheName)
-
getCacheManager
public EmbeddedCacheManager getCacheManager()
- Specified by:
getCacheManagerin 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:ViewChangedEventGets the current list of members.- Specified by:
getNewMembersin interfaceViewChangedEvent- Returns:
- the new view associated with this view change. List cannot be null.
-
getOldMembers
public List<Address> getOldMembers()
Description copied from interface:ViewChangedEventGets the previous list of members.- Specified by:
getOldMembersin interfaceViewChangedEvent- Returns:
- the old view associated with this view change. List cannot be null.
-
getLocalAddress
public Address getLocalAddress()
- Specified by:
getLocalAddressin interfaceViewChangedEvent
-
getViewId
public int getViewId()
Description copied from interface:ViewChangedEventGet JGroups view id.- Specified by:
getViewIdin interfaceViewChangedEvent- Returns:
-
setViewId
public void setViewId(int viewId)
-
setLocalAddress
public void setLocalAddress(Address localAddress)
-
getSubgroupsMerged
public List<List<Address>> getSubgroupsMerged()
- Specified by:
getSubgroupsMergedin interfaceMergeEvent
-
isMergeView
public boolean isMergeView()
- Specified by:
isMergeViewin interfaceViewChangedEvent
-
setMergeView
public void setMergeView(boolean b)
-
-