GigaSpaces XAP 9.5 API

org.openspaces.core.space.mode
Class AbstractSpaceModeChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.springframework.context.ApplicationEvent
          extended by org.openspaces.core.space.mode.AbstractSpaceModeChangeEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AfterSpaceModeChangeEvent, BeforeSpaceModeChangeEvent

public abstract class AbstractSpaceModeChangeEvent
extends ApplicationEvent

Base class for different space mode events.

Author:
kimchy
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AbstractSpaceModeChangeEvent(IJSpace space, com.gigaspaces.cluster.activeelection.SpaceMode spaceMode)
          Creates a new Space mode event.
 
Method Summary
 IJSpace getSpace()
          Returns the space that initiated this event.
 com.gigaspaces.cluster.activeelection.SpaceMode getSpaceMode()
           
 boolean isBackup()
          The space mode is BACKUP.
 boolean isNone()
          The space mode is NONE, in other words - unknown.
 boolean isPrimary()
          The space mode is PRIMARY.
 
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractSpaceModeChangeEvent

public AbstractSpaceModeChangeEvent(IJSpace space,
                                    com.gigaspaces.cluster.activeelection.SpaceMode spaceMode)
Creates a new Space mode event.

Parameters:
space - The space that changed its mode
spaceMode - The space mode of the space
Method Detail

getSpace

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


getSpaceMode

public com.gigaspaces.cluster.activeelection.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.


GigaSpaces XAP 9.5 API

Copyright © GigaSpaces.