A bean that reacts to grid lifecycle events defined in LifecycleEventType. Use this bean whenever you need to plug some custom logic before or after grid startup and stopping routines.
More...
There are four events you can react to:
-
BEFORE_GRID_START Invoked before grid startup routine is initiated. Note that grid is not available during this event, therefore if you injected a grid instance via InstanceResourceAttribute attribute, you cannot use it yet.
-
AFTER_GRID_START Invoked right after grid has started. At this point, if you injected a grid instance via InstanceResourceAttribute attribute, you can start using it.
-
BEFORE_GRID_STOP Invoked right before grid stop routine is initiated. Grid is still available at this stage, so if you injected a grid instance via InstanceResourceAttribute attribute, you can use it.
-
AFTER_GRID_STOP Invoked right after grid has stopped. Note that grid is not available during this event.