Class ComputeBroadcastExample

java.lang.Object
org.apache.ignite.example.compute.ComputeBroadcastExample

public class ComputeBroadcastExample extends Object
This example demonstrates the usage of the IgniteCompute.execute(BroadcastJobTarget, JobDescriptor, Object) API.

Find instructions on how to run the example in the README.md file located in the "examples" directory root.

This example is intended to be run on a cluster with more than one node to show that the job is broadcast to each node.

The following steps related to code deployment should be additionally executed before running the current example:

  1. Build "ignite-examples-x.y.z.jar" using the next command:
    ./gradlew :ignite-examples:jar
  2. Create a new deployment unit using the CLI tool:
    cluster unit deploy computeExampleUnit \ --version 1.0.0 \ --path=$IGNITE_HOME/examples/build/libs/ignite-examples-x.y.z.jar
  • Constructor Details

    • ComputeBroadcastExample

      public ComputeBroadcastExample()
  • Method Details

    • main

      public static void main(String[] args)
      Main method of the example.
      Parameters:
      args - The command line arguments.