public class PlatformClosureJob extends PlatformAbstractJob
ignite, job, ptr, task| Constructor and Description |
|---|
PlatformClosureJob()
Externalizable support. |
PlatformClosureJob(PlatformAbstractTask task,
long ptr,
Object job)
Constructor.
|
| 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 |
execute0(PlatformContext ctx)
Internal job execution routine.
|
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
public PlatformClosureJob()
Externalizable support.public PlatformClosureJob(PlatformAbstractTask task, long ptr, Object job)
task - Parent task.ptr - Job pointer.job - Job.@Nullable public Object execute0(PlatformContext ctx) throws IgniteCheckedException
execute0 in class PlatformAbstractJobctx - Interop processor.IgniteCheckedException - If failed.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.
public void writeExternal(ObjectOutput out) throws IOException
IOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018