public interface GridCollisionJobContext
| Modifier and Type | Method and Description |
|---|---|
boolean |
activate()
Activates the job.
|
boolean |
cancel()
Cancels the job.
|
GridComputeJob |
getJob()
Job for this context.
|
GridComputeJobContext |
getJobContext()
Gets job context.
|
GridComputeTaskSession |
getTaskSession()
Gets current task session associated with this job.
|
GridComputeTaskSession getTaskSession()
GridComputeJobContext 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.
GridComputeJob 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()
GridComputeJob.cancel() will
be called on the job. If job was in wait state, then it will be rejected
prior to execution and GridComputeJob.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.Copyright © 2014. All rights reserved.