X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws2%2Factions%2Fapi%2FTaskI.java;h=5f4d575971510f2e764c76109a5c39b83a2b60e6;hb=eadb6b338471b984b187352ca34f6313b214cdae;hp=cb84944d9ecd6b6d890815d623cd943752a765aa;hpb=d349a5151f272209330b3f04b7a2e2bb6bcdadf8;p=jalview.git diff --git a/src/jalview/ws2/actions/api/TaskI.java b/src/jalview/ws2/actions/api/TaskI.java index cb84944..5f4d575 100644 --- a/src/jalview/ws2/actions/api/TaskI.java +++ b/src/jalview/ws2/actions/api/TaskI.java @@ -38,6 +38,10 @@ public interface TaskI */ List getSubJobs(); + void addTaskEventListener(TaskEventListener listener); + + void removeTaskEventListener(TaskEventListener listener); + /** * Get the last result of the task or {@code null} if not present. Note that * the result is subject to change for restartable tasks. @@ -46,6 +50,12 @@ public interface TaskI */ T getResult(); + public void init() throws Exception; + + public boolean poll() throws Exception; + + public void complete() throws Exception; + /** * Cancel the task, stop all sub-jobs running on a server and stop all threads * managing this task.