Package com.levigo.jadice.server
Interface JobListener
-
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
JobListenerAdapter
,TraceListener
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.
-
-
Method Summary
All Methods Instance Methods Abstract 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
-
stateChanged
void stateChanged(Job job, Job.State oldState, Job.State newState)
Receive notification about the job's state having changed.- Parameters:
job
- the affected joboldState
- the previous statenewState
- the new state
-
executionFailed
void executionFailed(Job job, Node node, String messageId, String reason, Throwable cause)
Receive notification about a failed job execution.- 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
-
errorOccurred
void errorOccurred(Job job, Node node, String messageId, String message, Throwable cause)
Receive notification about a non-fatal error during job execution.- Parameters:
job
- the affected jobnode
- the node causing/issuing the warning ornull
if the failure wasn't related/caused by a particular nodemessage
- the warning's detailsmessageId
- qualified message idcause
- aThrowable
-
warningOccurred
void warningOccurred(Job job, Node node, String messageId, String message, Throwable cause)
Receive notification about a warning during job execution.- Parameters:
job
- the affected jobnode
- the node causing/issuing the warning ornull
if the failure wasn't related/caused by a particular nodemessage
- the warning's detailsmessageId
- qualified message idcause
- aThrowable
-
subPipelineCreated
void subPipelineCreated(Job job, Node parent, Set<? extends Node> createdNodes)
Receive notification that newNode
s were created in a sub-pipeline on behalf of anotherNode
during job executing.- 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- Since:
- jadice server 4.3.1.0
-
-