public interface ExternalSystemTaskNotificationListener
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<ExternalSystemTaskNotificationListener> |
EP_NAME |
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.
|
default 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
|
static final ExtensionPointName<ExternalSystemTaskNotificationListener> EP_NAME
default void onStart(ExternalSystemTaskId id, java.lang.String workingDir)
id
- target task's idworkingDir
- working directory@Deprecated void onStart(ExternalSystemTaskId id)
onStart(ExternalSystemTaskId, String)
void onStatusChange(ExternalSystemTaskNotificationEvent event)
event
- event that holds information about processing change state of the
target task
void onTaskOutput(ExternalSystemTaskId id, java.lang.String text, boolean stdOut)
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)void onEnd(ExternalSystemTaskId id)
id
- target task's idvoid onSuccess(ExternalSystemTaskId id)
id
- target task's idvoid onFailure(ExternalSystemTaskId id, java.lang.Exception e)
id
- target task's ide
- failure exceptionvoid beforeCancel(ExternalSystemTaskId id)
id
- target task's idvoid onCancel(ExternalSystemTaskId id)
id
- target task's id