public abstract class AbstractSpaceModeChangeEvent extends ApplicationEvent
source
Constructor and Description |
---|
AbstractSpaceModeChangeEvent(IJSpace space,
com.gigaspaces.cluster.activeelection.SpaceMode spaceMode)
Creates a new Space mode event.
|
Modifier and Type | Method and Description |
---|---|
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 . |
getTimestamp
getSource, toString
public AbstractSpaceModeChangeEvent(IJSpace space, com.gigaspaces.cluster.activeelection.SpaceMode spaceMode)
space
- The space that changed its modespaceMode
- The space mode of the spacepublic IJSpace getSpace()
public com.gigaspaces.cluster.activeelection.SpaceMode getSpaceMode()
public boolean isNone()
NONE
, in other words - unknown.public boolean isBackup()
BACKUP
.public boolean isPrimary()
PRIMARY
.Copyright © GigaSpaces.