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)
ExternalSystemTaskNotificationListeneronStart in interface ExternalSystemTaskNotificationListenerid - target task's idworkingDir - working directory@Deprecated public void onStart(ExternalSystemTaskId id)
onStart(ExternalSystemTaskId, String)onStart in interface ExternalSystemTaskNotificationListenerpublic void onStatusChange(ExternalSystemTaskNotificationEvent event)
ExternalSystemTaskNotificationListeneronStatusChange in interface ExternalSystemTaskNotificationListenerevent - event that holds information about processing change state of the
target taskpublic void onTaskOutput(ExternalSystemTaskId id, java.lang.String text, boolean stdOut)
ExternalSystemTaskNotificationListeneronTaskOutput in interface ExternalSystemTaskNotificationListenerid - 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)
ExternalSystemTaskNotificationListeneronEnd in interface ExternalSystemTaskNotificationListenerid - target task's idpublic void onSuccess(ExternalSystemTaskId id)
ExternalSystemTaskNotificationListeneronSuccess in interface ExternalSystemTaskNotificationListenerid - target task's idpublic void onFailure(ExternalSystemTaskId id, java.lang.Exception e)
ExternalSystemTaskNotificationListeneronFailure in interface ExternalSystemTaskNotificationListenerid - target task's ide - failure exceptionpublic void beforeCancel(ExternalSystemTaskId id)
ExternalSystemTaskNotificationListenerbeforeCancel in interface ExternalSystemTaskNotificationListenerid - target task's idpublic void onCancel(ExternalSystemTaskId id)
ExternalSystemTaskNotificationListeneronCancel in interface ExternalSystemTaskNotificationListenerid - target task's id