public abstract class ExternalSystemTaskNotificationListenerAdapter extends java.lang.Object implements ExternalSystemTaskNotificationListener
Modifier and Type | Field and Description |
---|---|
static ExternalSystemTaskNotificationListener |
NULL_OBJECT |
EP_NAME
Constructor and Description |
---|
ExternalSystemTaskNotificationListenerAdapter() |
ExternalSystemTaskNotificationListenerAdapter(ExternalSystemTaskNotificationListener delegate) |
Modifier and Type | Method and Description |
---|---|
void |
beforeCancel(ExternalSystemTaskId id)
Notifies that task with the given id is queued for the cancellation.
|
void |
onCancel(ExternalSystemTaskId id)
Notifies that task with the given id is cancelled.
|
void |
onEnd(ExternalSystemTaskId id)
Notifies that task with the given id is finished.
|
void |
onFailure(ExternalSystemTaskId id,
java.lang.Exception e)
Notifies that task with the given id is failed.
|
void |
onStart(ExternalSystemTaskId id)
Deprecated.
|
void |
onStart(ExternalSystemTaskId id,
java.lang.String workingDir)
Notifies that task with the given id is about to be started.
|
void |
onStatusChange(ExternalSystemTaskNotificationEvent event)
Notifies about processing state change of task with the given id.
|
void |
onSuccess(ExternalSystemTaskId id)
Notifies that task with the given id is finished successfully.
|
void |
onTaskOutput(ExternalSystemTaskId id,
java.lang.String text,
boolean stdOut)
Notifies about text written to stdout/stderr during the task execution
|
public static final ExternalSystemTaskNotificationListener NULL_OBJECT
public ExternalSystemTaskNotificationListenerAdapter()
public ExternalSystemTaskNotificationListenerAdapter(ExternalSystemTaskNotificationListener delegate)
public void onStart(ExternalSystemTaskId id, java.lang.String workingDir)
ExternalSystemTaskNotificationListener
onStart
in interface ExternalSystemTaskNotificationListener
id
- target task's idworkingDir
- working directory@Deprecated public void onStart(ExternalSystemTaskId id)
onStart(ExternalSystemTaskId, String)
onStart
in interface ExternalSystemTaskNotificationListener
public void onStatusChange(ExternalSystemTaskNotificationEvent event)
ExternalSystemTaskNotificationListener
onStatusChange
in interface ExternalSystemTaskNotificationListener
event
- event that holds information about processing change state of the
target task
public void onTaskOutput(ExternalSystemTaskId id, java.lang.String text, boolean stdOut)
ExternalSystemTaskNotificationListener
onTaskOutput
in interface ExternalSystemTaskNotificationListener
id
- id of the task being executedtext
- text produced by external system during the target task executionstdOut
- flag which identifies output type (stdout or stderr)public void onEnd(ExternalSystemTaskId id)
ExternalSystemTaskNotificationListener
onEnd
in interface ExternalSystemTaskNotificationListener
id
- target task's idpublic void onSuccess(ExternalSystemTaskId id)
ExternalSystemTaskNotificationListener
onSuccess
in interface ExternalSystemTaskNotificationListener
id
- target task's idpublic void onFailure(ExternalSystemTaskId id, java.lang.Exception e)
ExternalSystemTaskNotificationListener
onFailure
in interface ExternalSystemTaskNotificationListener
id
- target task's ide
- failure exceptionpublic void beforeCancel(ExternalSystemTaskId id)
ExternalSystemTaskNotificationListener
beforeCancel
in interface ExternalSystemTaskNotificationListener
id
- target task's idpublic void onCancel(ExternalSystemTaskId id)
ExternalSystemTaskNotificationListener
onCancel
in interface ExternalSystemTaskNotificationListener
id
- target task's id