Class CacheAffinityExample
- java.lang.Object
-
- org.apache.ignite.examples.datagrid.CacheAffinityExample
-
public final class CacheAffinityExample extends java.lang.ObjectThis 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
ExampleNodeStartupin another JVM which will start node withexamples/config/example-ignite.xmlconfiguration.
-
-
Constructor Summary
Constructors Constructor Description CacheAffinityExample()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Executes example.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws IgniteExceptionExecutes example.- Parameters:
args- Command line arguments, none required.- Throws:
IgniteException- If example execution failed.
-
-