JPPF Issue Tracker
Please log in to bookmark issues
CLOSED  Feature request JPPF-109  -  Pluggable error handler for NodeLifeCycleListener
Posted Dec 25, 2012 - updated Dec 27, 2014
icon_info.png This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Feature request
  • Status
  • Assigned to
  • Progress
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
  • Owned by
    Not owned by anyone
  • Category
  • Resolution
  • Priority
  • Targetted for
    icon_milestones.png JPPF 3.3
Issue description
The idea is to provide the ability for developers to implement their own error handling mechanism for uncaught throwables raised during the execution of the methods of NodeLifeCycleListener implementations.

I propose to add a new interface NodeLifeCycleErrorHandler whcih can be optionally implemented by a NodeLifeCycleListener:
public interface NodeLifeCycleErrorHandler {
  void handleError(NodeLifeCycleLEvent event, Throwable t);
I also propose to add an Enum of the possible event types, along with a new corresponding attribute for NodeLifeCycleLEvent, so the error handler will know which notification was invoked when the error was raised:
public class NodeLifeCycleEvent extends EventObject {
  // ...
  public NodeLifeCycleLEventType getEventType() {
When NodeLifeCycleErrorHandler is not implemented, the behavior will default to:
  • Uncchecked exception will be caught and logged
  • Errors will be propagated up the call stack

Comment posted by
Dec 29, 09:11
Implemented in trunk revision 2586

The issue was updated with the following change(s):
  • The assignee has been changed to lolo4j.
  • This issue has been closed
  • The status has been updated, from New to Closed.
  • This issue's progression has been updated to 100 percent completed.
  • The resolution has been updated, from Not determined to RESOLVED.