JPPF Issue Tracker
star_faded.png
Please log in to bookmark issues
feature_request_small.png
CLOSED  Feature request JPPF-197  -  Built-in ability for the tasks to send notifications during execution
Posted Nov 08, 2013 - updated Nov 23, 2013
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
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     lolo4j
  • Owned by
    Not owned by anyone
  • Category
    Node
  • Resolution
    RESOLVED
  • Priority
    Normal
  • Targetted for
    icon_milestones.png JPPF 4.0
Issue description
Currently, we have the TaskExecutionListener which allows receiving notifications of task completion only.

We propose to add an API to the Task interface for sending notifications at any time during their execution.

TaskExecutionListener is currently like this:
public interface TaskExecutionListener extends EventListener {
  // Called to notify that a task was executed.
  void taskExecuted(TaskExecutionEvent event);
}
We could extend it like this:
public interface TaskExecutionListener extends EventListener {
  // Called before a task run() method is invoked.
  void taskStarting(TaskExecutionEvent event);
 
  // Called from the task's run() method by the user's code.
  void userNotification(TaskExecutionEvent event);
 
  // Called to notify that a task was executed.
  void taskExecuted(TaskExecutionEvent event);
}



#2
Comment posted by
 lolo4j
Nov 13, 01:42
Trunk revision 2920
#3
Comment posted by
 lolo4j
Nov 23, 05:32
Documentation updated in trunk revision 2926