JPPF Issue Tracker
star_faded.png
Please log in to bookmark issues
feature_request_small.png
CLOSED  Feature request JPPF-570  -  Accessing the job from a task
Posted Dec 29, 2018 - updated Jan 15, 2019
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
icon_info.png This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Feature request
  • Status
     
    Closed
  • Assigned to
     lolo4j
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     lolo4j
  • Owned by
    Not owned by anyone
  • Category
    Core
  • Resolution
    RESOLVED
  • Priority
    Normal
  • Targetted for
    icon_milestones.png JPPF 6.1
Issue description
We propose to add the following method to the Task<E> interface and its AbstractTask<E> default implemntation, such that the code in the task can access the job as an instance of the JPPFDistributedJob interface:
public interface Task<T> extends Runnable, Serializable, Interruptibility {
  // get the job this task is a part of
  JPPFDistributedJob getJob();
 
  ... other methods
}