Class LifecycleExample
- java.lang.Object
-
- org.apache.ignite.examples.misc.lifecycle.LifecycleExample
-
public final class LifecycleExample extends java.lang.ObjectThis example shows how to provide your ownLifecycleBeanimplementation to be able to hook into Ignite lifecycle. TheLifecycleExample.LifecycleExampleBeanbean will output occurred lifecycle events to the console.This example does not require remote nodes to be started.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLifecycleExample.LifecycleExampleBeanSimpleLifecycleBeanimplementation that outputs event type when it is occurred.
-
Constructor Summary
Constructors Constructor Description LifecycleExample()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Executes example.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws IgniteExceptionExecutes example.- Parameters:
args- Command line arguments, none required.- Throws:
IgniteException- If example execution failed.
-
-