Class ComputeWithCustomResultMarshallerExample
java.lang.Object
org.apache.ignite.example.compute.ComputeWithCustomResultMarshallerExample
This example demonstrates the usage of the
IgniteCompute.execute(JobTarget, JobDescriptor, Object) API with a custom result marshaller.
Find instructions on how to run the example in the README.md file located in the "examples" directory root.
The following steps related to code deployment should be additionally executed before running the current example:
-
Build "ignite-examples-x.y.z.jar" using the next command:
./gradlew :ignite-examples:jar -
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classJob that calculates length of the provided word.static classThe result object for the WordInfoJob.static classMarshals WordInfoResult into a byte array. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ComputeWithCustomResultMarshallerExample
public ComputeWithCustomResultMarshallerExample()
-
-
Method Details
-
main
Main method of the example.- Parameters:
args- The command line arguments.
-