Package org.openspaces.core.space.mode
package org.openspaces.core.space.mode
A package exposing Space mode (primary/backup) events through Spring application event
support. Includes a simple mode Spring context loader allowing to load a Spring application context
only when the Space is primary, and unload it when it is backup.
-
ClassDescriptionBase class for different space mode events.A Space mode event that is raised after the space mode was changed to the space mode reflected in this event.A Space mode event that is raised before the space mode is changed to the space mode reflected in this event.Allows a bean's method to be invoked after a space changes its mode to
SpaceMode.BACKUP.Allows a bean's method to be invoked after a space changes its mode toSpaceMode.PRIMARY.Allows a bean's method to be invoked before a space changes its mode toSpaceMode.BACKUP.Allows a bean's method to be invoked before a space changes its mode toSpaceMode.PRIMARY.A generic interface allowing to refresh context loader.Executes the refresh context mode operation using OpenSpaces sync remoting (allowing to use broadcast mode).Extension to SpaceModeContextLoader allowing for the context loader to be refreshable and load new code.Enables beans implementing this interface to get notified after a space changes its mode toSpaceMode.BACKUP.Enables beans implementing this interface to get notified after a space changes its mode toSpaceMode.PRIMARY.Enables beans implementing this interface to get notified before a space changes its mode toSpaceMode.BACKUP.Enables beans implementing this interface to get notified before a space changes its mode toSpaceMode.PRIMARY.A Space mode based Spring context loader allows to load Spring application context if the Space is inPRIMARYmode.