Class LifecycleExample


  • public final class LifecycleExample
    extends java.lang.Object
    This example shows how to provide your own LifecycleBean implementation to be able to hook into Ignite lifecycle. The LifecycleExample.LifecycleExampleBean bean will output occurred lifecycle events to the console.

    This example does not require remote nodes to be started.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Executes example.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LifecycleExample

        public LifecycleExample()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws IgniteException
        Executes example.
        Parameters:
        args - Command line arguments, none required.
        Throws:
        IgniteException - If example execution failed.