Class SpaceComponentManager

java.lang.Object
com.gigaspaces.cluster.activeelection.SpaceComponentManager
All Implemented Interfaces:
ISpaceModeListener, Remote, EventListener

public class SpaceComponentManager extends Object implements ISpaceModeListener
SpaceComponentManager handles SpaceInternal components.
The manager handles all space mode transitions and changes the components state according to the space state.

Space states: -------------------------------------------------------------

  • NONE - the initial state of the space before election.
  • PRIMARY - the state of the space after is was selected as primary.
  • BACKUP - the state of the space after it was selected as backup.

Space components types:
--------------------------------------------------------------
backup components - components that can run on backup spaces.
primary only - components that can run only on primary spaces.

The following state transitions are handled:
--------------------------------------------------
NONE-->PRIMARY - space becomes primary after the first election. All components are started.

NONE-->BACKUP - space becomes backup after the first election. Only the backup components are started.

BACKUP-->PRIMARY - space becomes primary after previously being backup. Only the primary-only components are started, since backup components are already up.

PRIMARY-->BACKUP - in case of a "split-brain" where two spaces are primary at the same time, one of them returns to backup. In this case all the space components are restarted.

Since:
6.0
Version:
1.0
Author:
anna