Apache Ignite.NET
Apache.Ignite.Core.Lifecycle.ILifecycleBean Interface Reference

A bean that reacts to Ignite lifecycle events defined in LifecycleEventType. Use this bean whenever you need to plug some custom logic before or after Ignite startup and stopping routines. More...

Public Member Functions

void OnLifecycleEvent (LifecycleEventType evt)
 This method is called when lifecycle event occurs. More...
 

Detailed Description

There are four events you can react to:

  • BeforeNodeStart Invoked before Ignite startup routine is initiated. Note that Ignite is not available during this event, therefore if you injected an Ignite instance via InstanceResourceAttribute attribute, you cannot use it yet.
  • AfterNodeStart Invoked right after Ignite has started. At this point, if you injected an Ignite instance via InstanceResourceAttribute attribute, you can start using it.
  • BeforeNodeStop Invoked right before Ignite stop routine is initiated. Ignite is still available at this stage, so if you injected an Ignite instance via InstanceResourceAttribute attribute, you can use it.
  • AfterNodeStop Invoked right after Ignite has stopped. Note that Ignite is not available during this event.

Member Function Documentation

void Apache.Ignite.Core.Lifecycle.ILifecycleBean.OnLifecycleEvent ( LifecycleEventType  evt)
Parameters
evtLifecycle event.