Class ServicesExample


  • public class ServicesExample
    extends java.lang.Object
    Example that demonstrates how to deploy distributed services in Ignite. Distributed services are especially useful when deploying singletons on the ignite, be that cluster-singleton, or per-node-singleton, etc...

    To start remote nodes, you must run ExampleNodeStartup in another JVM which will start node with examples/config/example-ignite.xml configuration.

    NOTE:
    Starting ignite.sh directly will not work, as distributed services cannot be peer-deployed and classes must be on the classpath for every node.

    • Constructor Summary

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

      • ServicesExample

        public ServicesExample()
    • 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.