Class GridJobWorker

    • Method Detail

      • getJob

        @Nullable
        public @Nullable ComputeJob getJob()
        Gets deployed job or null of job could not be deployed.
        Returns:
        Deployed job.
      • getDeployment

        public GridDeployment getDeployment()
        Returns:
        Deployed task.
      • getCreateTime

        public long getCreateTime()
        Returns:
        Create time.
      • getStartTime

        public long getStartTime()
        Returns:
        Start time.
      • getFinishTime

        public long getFinishTime()
        Returns:
        Finish time.
      • isStarted

        public boolean isStarted()
        Returns:
        Is started.
      • getPartsReservation

        public GridReservable getPartsReservation()
        Returns:
        Grid reservable resource.
      • getJobId

        public IgniteUuid getJobId()
        Returns:
        Unique job ID.
      • isFinishing

        public boolean isFinishing()
        Gets job finishing state.
        Returns:
        true if job is being finished after execution and false otherwise.
      • getTaskNode

        public ClusterNode getTaskNode()
        Returns:
        Parent task node ID.
      • isTimedOut

        public boolean isTimedOut()
        Returns:
        True if job is timed out.
      • isInternal

        public boolean isInternal()
        Returns:
        True if parent task is internal or Visor-related.
      • onStopping

        public void onStopping()
        Callback for whenever grid is stopping.
      • held

        public boolean held()
        Returns:
        True if job was halted.
      • hold

        public boolean hold()
        Sets halt flags.
      • body

        protected void body()
        The implementation should provide the execution body for this runnable.
        Specified by:
        body in class GridWorker
      • execute

        public void execute()
        Executes the job.
      • cancel

        public void cancel()
        Cancels this runnable.
        Overrides:
        cancel in class GridWorker
      • cancel

        public void cancel​(boolean sys)
        Parameters:
        sys - System flag.
      • executorName

        public String executorName()
        Returns:
        Custom executor name.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • onCancel

        protected void onCancel​(boolean firstCancelRequest)
        Callback on runner cancellation.
        Overrides:
        onCancel in class GridWorker
        Parameters:
        firstCancelRequest - Flag indicating that worker cancellation was requested for the first time.
      • onCancelledBeforeWorkerScheduled

        protected void onCancelledBeforeWorkerScheduled()
        Callback on special case, when task is cancelled before is has been scheduled.
        Overrides:
        onCancelledBeforeWorkerScheduled in class GridWorker