Class CacheAffinityExample


  • public final class CacheAffinityExample
    extends java.lang.Object
    This example demonstrates the simplest code that populates the distributed cache and co-locates simple closure execution with each key. The goal of this particular example is to provide the simplest code example of this logic.

    Remote nodes should always be started with special configuration file which enables P2P class loading: 'ignite.{sh|bat} examples/config/example-ignite.xml'.

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

    • 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

      • CacheAffinityExample

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