org.infinispan.notifications.cachemanagerlistener.event
Class EventImpl

java.lang.Object
  extended by org.infinispan.notifications.cachemanagerlistener.event.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
EventImpl()
           
EventImpl(String cacheName, EmbeddedCacheManager cacheManager, Event.Type type, List<Address> newMemberList, List<Address> oldMemberList, Address localAddress, int viewId)
           
 
Method Summary
 boolean equals(Object o)
           
 EmbeddedCacheManager getCacheManager()
           
 String getCacheName()
           
 Address getLocalAddress()
           
 List<Address> getNewMembers()
           
 List<Address> getOldMembers()
           
 List<List<Address>> getSubgroupsMerged()
           
 Event.Type getType()
           
 int getViewId()
           
 int hashCode()
           
 boolean isMergeView()
           
 boolean isNeedsToRejoin()
           
 void setCacheManager(EmbeddedCacheManager cacheManager)
           
 void setCacheName(String cacheName)
           
 void setLocalAddress(Address localAddress)
           
 void setMergeView(boolean b)
           
 void setNeedsToRejoin(boolean needsToRejoin)
           
 void setNewMembers(List<Address> newMembers)
           
 void setOldMembers(List<Address> oldMembers)
           
 void setSubgroupsMerged(List<List<Address>> subgroupsMerged)
           
 void setType(Event.Type type)
           
 void setViewId(int viewId)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 interface CacheStartedEvent
Specified by:
getCacheName in interface CacheStoppedEvent

setCacheName

public void setCacheName(String cacheName)

getCacheManager

public EmbeddedCacheManager getCacheManager()
Specified by:
getCacheManager in interface Event

setCacheManager

public void setCacheManager(EmbeddedCacheManager cacheManager)

getType

public Event.Type getType()
Specified by:
getType in interface Event

setType

public void setType(Event.Type type)

getNewMembers

public List<Address> getNewMembers()
Specified by:
getNewMembers in interface ViewChangedEvent
Returns:
the new view associated with this view change.

setNewMembers

public void setNewMembers(List<Address> newMembers)

setOldMembers

public void setOldMembers(List<Address> oldMembers)

getOldMembers

public List<Address> getOldMembers()
Specified by:
getOldMembers in interface ViewChangedEvent

getLocalAddress

public Address getLocalAddress()
Specified by:
getLocalAddress in interface ViewChangedEvent

getViewId

public int getViewId()
Specified by:
getViewId in interface ViewChangedEvent

setViewId

public void setViewId(int viewId)

setLocalAddress

public void setLocalAddress(Address localAddress)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

setNeedsToRejoin

public void setNeedsToRejoin(boolean needsToRejoin)

isNeedsToRejoin

public boolean isNeedsToRejoin()
Specified by:
isNeedsToRejoin in interface ViewChangedEvent

setSubgroupsMerged

public void setSubgroupsMerged(List<List<Address>> subgroupsMerged)

getSubgroupsMerged

public List<List<Address>> getSubgroupsMerged()
Specified by:
getSubgroupsMerged in interface MergeEvent

isMergeView

public boolean isMergeView()
Specified by:
isMergeView in interface ViewChangedEvent

setMergeView

public void setMergeView(boolean b)


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