Class ServiceMiddlewareExample


  • public class ServiceMiddlewareExample
    extends java.lang.Object
    The example shows how to add a middleware layer for distributed services in Ignite.

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

    NOTE:
    Starting ignite.sh directly will not work, as distributed services (and interceptors) cannot be peer-deployed and classes must be in the classpath for each node.

    • 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

      • ServiceMiddlewareExample

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