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:
  • Constructor Details

    • AbstractSpaceModeChangeEvent

      public AbstractSpaceModeChangeEvent(IJSpace space, SpaceMode spaceMode)
      Creates a new Space mode event.
      Parameters:
      space - The space that changed its mode
      spaceMode - The space mode of the space
  • Method Details

    • getSpace

      public IJSpace getSpace()
      Returns the space that initiated this event.
    • getSpaceMode

      public SpaceMode getSpaceMode()
    • isNone

      public boolean isNone()
      The space mode is NONE, in other words - unknown.
    • isBackup

      public boolean isBackup()
      The space mode is BACKUP.
    • isPrimary

      public boolean isPrimary()
      The space mode is PRIMARY.