Package org.jvnet.hudson.reactor
Class ReactorListener.Aggregator
java.lang.Object
org.jvnet.hudson.reactor.ReactorListener.Aggregator
- All Implemented Interfaces:
ReactorListener
- Enclosing interface:
ReactorListener
Bundles multiple listeners into one.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jvnet.hudson.reactor.ReactorListener
ReactorListener.Aggregator -
Field Summary
Fields inherited from interface org.jvnet.hudson.reactor.ReactorListener
NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonAttained(Milestone milestone) Indicates that the following milestone was attained.voidNotifies that the execution of the task is about to finish.voidonTaskFailed(Task t, Throwable err, boolean fatal) Notifies that the execution of the task have failed with an exception.voidNotifies that the execution of the task is about to start.
-
Constructor Details
-
Aggregator
-
-
Method Details
-
onTaskStarted
Description copied from interface:ReactorListenerNotifies that the execution of the task is about to start.- Specified by:
onTaskStartedin interfaceReactorListener
-
onTaskCompleted
Description copied from interface:ReactorListenerNotifies that the execution of the task is about to finish. This happens on the same thread that calledReactorListener.onTaskStarted(Task).- Specified by:
onTaskCompletedin interfaceReactorListener
-
onTaskFailed
Description copied from interface:ReactorListenerNotifies that the execution of the task have failed with an exception.- Specified by:
onTaskFailedin interfaceReactorListener- Parameters:
err- EitherErrororException, indicating the cause of the failure.fatal- If true, this problem is fatal, and the reactor is going to terminate. If false, the reactor will continue executing after this failure.
-
onAttained
Description copied from interface:ReactorListenerIndicates that the following milestone was attained.- Specified by:
onAttainedin interfaceReactorListener
-