Package org.openspaces.core.space.mode
Class AbstractSpaceModeChangeEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.openspaces.core.space.mode.AbstractSpaceModeChangeEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AfterSpaceModeChangeEvent,BeforeSpaceModeChangeEvent
public abstract class AbstractSpaceModeChangeEvent
extends org.springframework.context.ApplicationEvent
Base class for different space mode events.
- Author:
- kimchy
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSpaceModeChangeEvent(IJSpace space, SpaceMode spaceMode) Creates a new Space mode event. -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
AbstractSpaceModeChangeEvent
Creates a new Space mode event.- Parameters:
space- The space that changed its modespaceMode- The space mode of the space
-
-
Method Details
-
getSpace
Returns the space that initiated this event. -
getSpaceMode
-
isNone
public boolean isNone()The space mode isNONE, in other words - unknown. -
isBackup
public boolean isBackup()The space mode isBACKUP. -
isPrimary
public boolean isPrimary()The space mode isPRIMARY.
-