public abstract class PlatformAbstractJob extends Object implements PlatformJob, Externalizable
| Modifier and Type | Field and Description |
|---|---|
protected Ignite |
ignite
Ignite instance.
|
protected Object |
job
Job.
|
protected long |
ptr
Pointer to job in the native platform.
|
protected PlatformAbstractTask |
task
Parent task; present only on local job instance.
|
| Modifier | Constructor and Description |
|---|---|
protected |
PlatformAbstractJob()
Externalizable support. |
protected |
PlatformAbstractJob(PlatformAbstractTask task,
long ptr,
Object job)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
createJob(PlatformContext ctx)
Create job in native platform if needed.
|
@Nullable Object |
execute()
Executes this job.
|
protected abstract Object |
execute0(PlatformContext ctx)
Internal job execution routine.
|
Object |
job()
Gets native job.
|
long |
pointer()
Gets native pointer to deployed job.
|
protected Object |
runLocal(PlatformContext ctx,
boolean cancel)
Run local job.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelreadExternal, writeExternal@IgniteInstanceResource protected transient Ignite ignite
protected transient PlatformAbstractTask task
protected transient long ptr
protected Object job
protected PlatformAbstractJob()
Externalizable support.protected PlatformAbstractJob(PlatformAbstractTask task, long ptr, Object job)
task - Parent task.ptr - Pointer.job - Job.@Nullable public @Nullable 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.protected abstract Object execute0(PlatformContext ctx) throws IgniteCheckedException
ctx - Interop processor.IgniteCheckedException - If failed.protected boolean createJob(PlatformContext ctx) throws IgniteCheckedException
ctx - Context.True if job was created, false if this is local job and creation is not necessary.IgniteCheckedException - If failed.protected Object runLocal(PlatformContext ctx, boolean cancel)
ctx - Context.cancel - Cancel flag.public long pointer()
pointer in interface PlatformJobpublic Object job()
job in interface PlatformJob
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021