public abstract class JobListenerAdapter extends Object implements JobListener
JobListener
. With this adapter you have to override only those
methods that are of interest.JobListener
Constructor and Description |
---|
JobListenerAdapter() |
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.
|
public void warningOccurred(Job job, Node node, String messageId, String message, Throwable cause)
JobListener
warningOccurred
in interface JobListener
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 detailsJobListener.warningOccurred(Job, Node, String, String, Throwable)
public void errorOccurred(Job job, Node node, String messageId, String message, Throwable cause)
JobListener
errorOccurred
in interface JobListener
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 detailsJobListener.errorOccurred(Job, Node, String, String, Throwable)
public void executionFailed(Job job, Node node, String messageId, String reason, Throwable cause)
JobListener
executionFailed
in interface JobListener
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 failureJobListener.executionFailed(Job, Node, String, String, Throwable)
public void stateChanged(Job job, Job.State oldState, Job.State newState)
JobListener
stateChanged
in interface JobListener
job
- the affected joboldState
- the previous statenewState
- the new stateJobListener#stateChanged(Job, State, State)
public void subPipelineCreated(Job job, Node parent, Set<? extends Node> createdNodes)
JobListener
Node
s were created in a
sub-pipeline on behalf of another Node
during job executing.subPipelineCreated
in interface JobListener
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 createdJobListener.subPipelineCreated(Job, Node, Set)
Copyright © 2017 levigo holding gmbh. All rights reserved.