public class PlatformFullJob extends PlatformAbstractJob
If the job is expected to be executed locally, it contains only pointer to the corresponding entity in the native platform. In case of topology change or failover, job is serialized on demand.
If we know in advance that the job is to be executed on remote node, then it is serialized into byte array right away.
This class is not thread safe.
ignite, job, ptr, task| Constructor and Description |
|---|
PlatformFullJob()
Externalizable support. |
PlatformFullJob(PlatformContext ctx,
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 PlatformFullJob()
Externalizable support.public PlatformFullJob(PlatformContext ctx, PlatformAbstractTask task, long ptr, Object job)
ctx - Platform context.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.0.0 Release Date : April 30 2017