Class ForkJob

java.lang.Object
QueueNet.Job
QueueNet.ForkJob
All Implemented Interfaces:
Cloneable

public class ForkJob extends Job

Title: Fork Job

Description: This class implements the fork job.

Author:
Lulai Zhu Date: 06-10-2016 Time: 14.00.00
  • Constructor Details

    • ForkJob

      public ForkJob(JobClass jobClass, ForkJobInfo forkJobInfo)
      Creates a new ForkJob, given job class and shared information.
      Parameters:
      jobClass - class of the fork job.
      forkJobInfo - info of the fork job.
  • Method Details

    • getForkedJob

      public Job getForkedJob()
      Gets parent job that was forked.
      Returns:
      parent job that was forked.
    • getForkedNum

      public int getForkedNum()
      Gets number of child jobs forked from the parent job.
      Returns:
      number of child jobs forked from the parent job.
    • getForkNode

      public NetNode getForkNode()
      Gets fork node that forked the parent job.
      Returns:
      fork node that forked the parent job.
    • getOriginalJob

      public Job getOriginalJob()
      Gets original job that was forked.
      Returns:
      original job that was forked.
    • getForkJobInfo

      public ForkJobInfo getForkJobInfo()
      Gets information of this fork job.
      Returns:
      information of this fork job.