@Documented @Retention(value=RUNTIME) @Target(value={METHOD,FIELD}) public @interface JobContextResource
ComputeJobContext
instance.
It can be injected into grid jobs only.
Job context can be injected into instances of following classes:
Here is how injection would typically happen:
public class MyGridJob implements ComputeJob { ... @IgniteJobContextResource private ComputeJobContext jobCtx; ... }or
public class MyGridJob implements ComputeJob { ... private ComputeJobContext jobCtx; ... @JobContextResource public void setJobContext(ComputeJobContext jobCtx) { this.jobCtx = jobCtx; } ... }
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024