Package com.levigo.jadice.server
Class JobListenerAdapter
- java.lang.Object
-
- com.levigo.jadice.server.JobListenerAdapter
-
- All Implemented Interfaces:
JobListener
,EventListener
public abstract class JobListenerAdapter extends Object implements JobListener
An adapter class forJobListener
. With this adapter you have to override only those methods that are of interest.- Since:
- jadice server 4.3.1.0
- See Also:
JobListener
-
-
Constructor Summary
Constructors Constructor Description JobListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
warningOccurred
public void warningOccurred(Job job, Node node, String messageId, String message, Throwable cause)
Description copied from interface:JobListener
Receive notification about a warning during job execution.- Specified by:
warningOccurred
in interfaceJobListener
- Parameters:
job
- the affected jobnode
- the node causing/issuing the warning ornull
if the failure wasn't related/caused by a particular nodemessageId
- qualified message idmessage
- the warning's detailscause
- aThrowable
- See Also:
JobListener.warningOccurred(Job, Node, String, String, Throwable)
-
errorOccurred
public void errorOccurred(Job job, Node node, String messageId, String message, Throwable cause)
Description copied from interface:JobListener
Receive notification about a non-fatal error during job execution.- Specified by:
errorOccurred
in interfaceJobListener
- Parameters:
job
- the affected jobnode
- the node causing/issuing the warning ornull
if the failure wasn't related/caused by a particular nodemessageId
- qualified message idmessage
- the warning's detailscause
- aThrowable
- See Also:
JobListener.errorOccurred(Job, Node, String, String, Throwable)
-
executionFailed
public void executionFailed(Job job, Node node, String messageId, String reason, Throwable cause)
Description copied from interface:JobListener
Receive notification about a failed job execution.- Specified by:
executionFailed
in interfaceJobListener
- Parameters:
job
- the affected jobnode
- the node causing the failure ornull
if the failure wasn't related/caused by a particular nodemessageId
- qualified message idreason
- the reason of the failurecause
- aThrowable
- See Also:
JobListener.executionFailed(Job, Node, String, String, Throwable)
-
stateChanged
public void stateChanged(Job job, Job.State oldState, Job.State newState)
Description copied from interface:JobListener
Receive notification about the job's state having changed.- Specified by:
stateChanged
in interfaceJobListener
- Parameters:
job
- the affected joboldState
- the previous statenewState
- the new state- See Also:
JobListener.stateChanged(Job, State, State)
-
subPipelineCreated
public void subPipelineCreated(Job job, Node parent, Set<? extends Node> createdNodes)
Description copied from interface:JobListener
Receive notification that newNode
s were created in a sub-pipeline on behalf of anotherNode
during job executing.- Specified by:
subPipelineCreated
in interfaceJobListener
- Parameters:
job
- the affected jobparent
- The node that triggered the creation. Might benull
in cases where the parent node class is unknown on the client-side classpathcreatedNodes
- The nodes that were created- See Also:
JobListener.subPipelineCreated(Job, Node, Set)
-
-