public interface CollisionJobContext
Modifier and Type | Method and Description |
---|---|
boolean |
activate()
Activates the job.
|
boolean |
cancel()
Cancels the job.
|
ComputeJob |
getJob()
Job for this context.
|
ComputeJobContext |
getJobContext()
Gets job context.
|
ComputeTaskSession |
getTaskSession()
Gets current task session associated with this job.
|
ComputeTaskSession getTaskSession()
ComputeJobContext getJobContext()
Job context travels with job whenever it gets failed-over to another node, so attributes set on the context on one node will be visible on other nodes this job may potentially end up on.
ComputeJob getJob()
boolean activate()
true
if it was
able to activate the job, and false
otherwise.True
if it was possible to activate the job, and
false
otherwise.boolean cancel()
ComputeJob.cancel()
will
be called on the job. If job was in wait state, then it will be rejected
prior to execution and ComputeJob.cancel()
will not be called.
Collision resolution is handled concurrently, so it may be possible that other threads
already activated or cancelled/rejected this job. This method will return true
if it was able to cancel/reject the job and false
otherwise.
True
if it was possible to cancel/reject this job, false
otherwise.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023