Class ForkJobInfo
java.lang.Object
QueueNet.ForkJobInfo
Title: Fork Job Info
Description: This class implements the fork job info.
- Author:
- Lulai Zhu Date: 06-10-2016 Time: 14.00.00
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionForkJobInfo(Job forkedJob, int forkedNum, NetNode forkNode) Creates a new ForkJobInfo, given parent job, number of child jobs and fork node. -
Method Summary
Modifier and TypeMethodDescriptionGets parent job that was forked.intGets number of child jobs forked from the parent job.Gets fork node that forked the parent job.Gets original job that was forked.
-
Field Details
-
forkedJob
Reference to parent job -
forkedNum
protected int forkedNumNumber of child jobs -
forkNode
Reference to fork node -
originalJob
Reference to original job
-
-
Constructor Details
-
ForkJobInfo
Creates a new ForkJobInfo, given parent job, number of child jobs and fork node.- Parameters:
forkedJob- parent job that was forked.forkedNum- number of child jobs forked from the parent job.forkNode- fork node that forked the parent job.
-
-
Method Details
-
getForkedJob
-
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
Gets fork node that forked the parent job.- Returns:
- fork node that forked the parent job.
-
getOriginalJob
Gets original job that was forked.- Returns:
- original job that was forked.
-