public static class GridClosureProcessor.C2<R> extends Object implements ComputeJob, Binarylizable, GridNoImplicitInjection, GridInternalWrapper<Callable>
| Constructor and Description |
|---|
C2() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
This method is called when system detects that completion of this
job can no longer alter the overall outcome (for example, when parent task
has already reduced the results).
|
Object |
execute()
Executes this job.
|
void |
readBinary(BinaryReader reader)
Reads fields from provided reader.
|
String |
toString() |
Callable |
userObject()
Get user object where resources must be injected.
|
void |
writeBinary(BinaryWriter writer)
Writes fields to provided writer.
|
@GridToStringInclude protected Callable<R> c
public Object execute()
execute in interface ComputeJobnull). This result will be returned
in ComputeJobResult.getData() method passed into
ComputeTask.result(ComputeJobResult, List) task method on caller node.public void cancel()
IgniteFuture.cancel() is called.
Note that job cancellation is only a hint, and just like with
Thread.interrupt() method, it is really up to the actual job
instance to gracefully finish execution and exit.
cancel in interface ComputeJobpublic void writeBinary(BinaryWriter writer) throws BinaryObjectException
BinarylizablewriteBinary in interface Binarylizablewriter - Binary object writer.BinaryObjectException - In case of error.public void readBinary(BinaryReader reader) throws BinaryObjectException
BinarylizablereadBinary in interface Binarylizablereader - Binary object reader.BinaryObjectException - In case of error.public Callable userObject()
userObject in interface GridInternalWrapper<Callable>
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018