Class ComputeReducerExample
- java.lang.Object
-
- org.apache.ignite.examples.computegrid.ComputeReducerExample
-
public class ComputeReducerExample extends java.lang.ObjectDemonstrates a simple use of Ignite with reduce closure.Phrase is split into words and distributed across nodes where length of each word is calculated. Then total phrase length is calculated using reducer.
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 Ignite node withexamples/config/example-ignite.xmlconfiguration.
-
-
Constructor Summary
Constructors Constructor Description ComputeReducerExample()
-
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.
-
-