Package org.apache.ignite.compute
Interface JobExecutionContext
public interface JobExecutionContext
Context of the
ComputeJob execution.-
Method Summary
Modifier and TypeMethodDescriptionCancellation token that is canceled when the job is canceled.Collection of deployment units associated with this job execution.ignite()Ignite API entry point.booleanFlag indicating whether the job was cancelled.@Nullable PartitionPartition associated with this job.
-
Method Details
-
ignite
Ignite ignite()Ignite API entry point.- Returns:
- Ignite instance.
-
isCancelled
boolean isCancelled()Flag indicating whether the job was cancelled.- Returns:
truewhen the job was cancelled.
-
partition
Partition associated with this job. Not anullonly whenBroadcastJobTarget.table(String)target is used for submitting jobs. In this case, the partition is local on a node executing the job.- Returns:
- Partition associated with this job.
-
cancellationToken
CancellationToken cancellationToken()Cancellation token that is canceled when the job is canceled. Can be passed to SQL queries and other operations that acceptCancellationTokento propagate cancellation from the job to those operations.- Returns:
- Cancellation token associated with this job.
-
deploymentUnits
Collection<DeploymentUnitInfo> deploymentUnits()Collection of deployment units associated with this job execution.- Returns:
- Collection of deployment units for this job execution.
-