Package org.jppf.node.event
Class DefaultLifeCycleErrorHandler
java.lang.Object
org.jppf.node.event.DefaultLifeCycleErrorHandler
- All Implemented Interfaces:
NodeLifeCycleErrorHandler
The default node life cycle error handler, used when the life cycle listener implementation does not implement
NodeLifeCycleErrorHandler.- Author:
- Laurent Cohen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<NodeLifeCycleEventType,String> Mapping of event type to listener method name. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleError(NodeLifeCycleListener listener, NodeLifeCycleEvent event, Throwable t) Handle the throwable raised for the specified event.
-
Field Details
-
methodsNamesMap
Mapping of event type to listener method name.
-
-
Constructor Details
-
DefaultLifeCycleErrorHandler
public DefaultLifeCycleErrorHandler()
-
-
Method Details
-
handleError
Handle the throwable raised for the specified event.This method logs the uncaught throwable, with a level of detail based on the configured logging level. If debug level is enabled, then the full stack trace will be logged, otherwise only the throwable class and its message will be logged.
if the value of the boolean configuration property "jppf.node.listener.errors.propagate" is true, and if the throwable is an
Error, then it will be propagated up the call stack.- Specified by:
handleErrorin interfaceNodeLifeCycleErrorHandler- Parameters:
listener- the listener whose method was being executed when the thowable was raised.event- the event notification for which an error was raised.t- the uncaught throwable that was raised during the notification.
-