Class GridCollisionJobContextAdapter

    • Constructor Detail

      • GridCollisionJobContextAdapter

        protected GridCollisionJobContextAdapter​(GridJobWorker jobWorker)
        Parameters:
        jobWorker - Job worker instance.
    • Method Detail

      • getJobContext

        public ComputeJobContext getJobContext()
        Gets job context. Use this context to set/get attributes that should be visible only to this job and should not be distributed to other jobs in the grid.

        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.

        Specified by:
        getJobContext in interface CollisionJobContext
        Returns:
        Job context.
      • getJobWorker

        public GridJobWorker getJobWorker()
        Returns:
        Job worker.