X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws2%2Factions%2Fapi%2FTaskEventListener.java;h=94de9d0822d8f135e4658b9a667a41870c1e4f3f;hb=6ed95e10095d9b0a31fe6912818fb81d980fdc05;hp=3dda2a4b60e73b700d1618ff88d1903fc2a6163d;hpb=fc05deeb3210528a4a25a7907b58c0c9ca195bea;p=jalview.git diff --git a/src/jalview/ws2/actions/api/TaskEventListener.java b/src/jalview/ws2/actions/api/TaskEventListener.java index 3dda2a4..94de9d0 100644 --- a/src/jalview/ws2/actions/api/TaskEventListener.java +++ b/src/jalview/ws2/actions/api/TaskEventListener.java @@ -3,7 +3,7 @@ package jalview.ws2.actions.api; import java.util.List; import jalview.ws2.api.JobStatus; -import jalview.ws2.api.WebServiceJob; +import jalview.ws2.api.WebServiceJobHandle; /** * The listener interface for receiving relevant job progress and state change @@ -22,35 +22,34 @@ public interface TaskEventListener /** * Invoked when the task has been started. The {@code subJobs} parameter * contains a complete list of sub-jobs for that run. Note that restartable - * tasks may invoke this method multiple times with different set of - * sub-jobs. + * tasks may invoke this method multiple times with different set of sub-jobs. * * @param source - * task this event originates from + * task this event originates from * @param subJobs - * list of sub-jobs for this run + * list of sub-jobs for this run */ - void taskStarted(TaskI source, List subJobs); + void taskStarted(TaskI source, List subJobs); /** * Invoked when the global task status has changed. * * @param source - * task this event originates from + * task this event originates from * @param status - * new task status + * new task status */ void taskStatusChanged(TaskI source, JobStatus status); /** * Invoked when the task has completed. If the task completed with a result, - * that result is passed in the call argument, otherwise, a {@code null} - * value is given. + * that result is passed in the call argument, otherwise, a {@code null} value + * is given. * * @param source - * task this event originates from + * task this event originates from * @param result - * computation result or null if result not present + * computation result or null if result not present */ void taskCompleted(TaskI source, T result); @@ -58,19 +57,19 @@ public interface TaskEventListener * Invoked when an unhandled exception has occurred during task execution. * * @param source - * task this event originates from + * task this event originates from * @param e - * exception + * exception */ void taskException(TaskI source, Exception e); /** - * Invoked when the task had been restarted. This event is only applicable - * to restartable tasks and will precede each {@link #taskStarted} after - * the first one. + * Invoked when the task had been restarted. This event is only applicable to + * restartable tasks and will precede each {@link #taskStarted} after the + * first one. * * @param source - * task this event originates from + * task this event originates from */ void taskRestarted(TaskI source); @@ -78,35 +77,35 @@ public interface TaskEventListener * Invoked when the status of a sub-job has changed. * * @param source - * task this event originates form + * task this event originates form * @param job - * sub-job that has been updated + * sub-job that has been updated * @param status - * new job status + * new job status */ - void subJobStatusChanged(TaskI source, WebServiceJob job, JobStatus status); + void subJobStatusChanged(TaskI source, JobI job, JobStatus status); /** * Invoked when a log string of the sub-job has changed. * * @param source - * task this event originates form + * task this event originates form * @param job - * sub-job that has been updated + * sub-job that has been updated * @param log - * new log string + * new log string */ - void subJobLogChanged(TaskI source, WebServiceJob job, String log); + void subJobLogChanged(TaskI source, JobI job, String log); /** * Invoked when an error log string of the sub-job has changed. * * @param source - * task this event originates form + * task this event originates form * @param job - * sub-job that has been updated + * sub-job that has been updated * @param log - * new log string + * new log string */ - void subJobErrorLogChanged(TaskI source, WebServiceJob job, String log); + void subJobErrorLogChanged(TaskI source, JobI job, String log); }