Class EventsExample


  • public class EventsExample
    extends java.lang.Object
    Demonstrates event consume API that allows to register event listeners on remote nodes. Note that ignite events are disabled by default and must be specifically enabled, just like in examples/config/example-ignite.xml file.

    Remote nodes should always be started with configuration: 'ignite.sh examples/config/example-ignite.xml'.

    Alternatively you can run ExampleNodeStartup in another JVM which will start node with examples/config/example-ignite.xml configuration.

    • Constructor Summary

      Constructors 
      Constructor Description
      EventsExample()  
    • 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

      • EventsExample

        public EventsExample()
    • Method Detail

      • main

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