public interface JobListener extends EventListener
Interface to be implemented by clients wishing to receive asynchronous notifications about job progress and/or warnings.
In order to prevent migration effort you can extend the abstract class
JobListenerAdapter
and override those methods that are of interest.
Modifier and Type | Method and Description |
---|---|
void |
errorOccurred(Job job,
Node node,
String messageId,
String message,
Throwable cause)
Receive notification about a non-fatal error during job execution.
|
void |
executionFailed(Job job,
Node node,
String messageId,
String reason,
Throwable cause)
Receive notification about a failed job execution.
|
void |
stateChanged(Job job,
Job.State oldState,
Job.State newState)
Receive notification about the job's state having changed.
|
void |
subPipelineCreated(Job job,
Node parent,
Set<? extends Node> createdNodes)
|
void |
warningOccurred(Job job,
Node node,
String messageId,
String message,
Throwable cause)
Receive notification about a warning during job execution.
|
void stateChanged(Job job, Job.State oldState, Job.State newState)
job
- the affected joboldState
- the previous statenewState
- the new statevoid executionFailed(Job job, Node node, String messageId, String reason, Throwable cause)
job
- the affected jobnode
- the node causing the failure or null
if the
failure wasn't related/caused by a particular nodereason
- the reason of the failurevoid errorOccurred(Job job, Node node, String messageId, String message, Throwable cause)
job
- the affected jobnode
- the node causing/issuing the warning or null
if
the failure wasn't related/caused by a particular nodemessage
- the warning's detailsvoid warningOccurred(Job job, Node node, String messageId, String message, Throwable cause)
job
- the affected jobnode
- the node causing/issuing the warning or null
if
the failure wasn't related/caused by a particular nodemessage
- the warning's detailsvoid subPipelineCreated(Job job, Node parent, Set<? extends Node> createdNodes)
Node
s were created in a
sub-pipeline on behalf of another Node
during job executing.job
- the affected jobparent
- The node that triggered the creation.
Might be null
in cases where the parent node class is unknown
on the client-side classpathcreatedNodes
- The nodes that were createdCopyright © 2018 levigo holding gmbh. All rights reserved.