JAL-3878 Add uid to WS Tasks
[jalview.git] / src / jalview / ws2 / actions / api / TaskI.java
index 874f5a6..cb84944 100644 (file)
@@ -2,9 +2,7 @@ package jalview.ws2.actions.api;
 
 import java.util.List;
 
-import jalview.viewmodel.AlignmentViewport;
 import jalview.ws2.api.JobStatus;
-import jalview.ws2.api.WebServiceJobHandle;
 
 /**
  * {@code TaskI} objects represent running services. Tasks are created by
@@ -19,6 +17,13 @@ import jalview.ws2.api.WebServiceJobHandle;
 public interface TaskI<T>
 {
   /**
+   * Get the universal identifier of this task.
+   * 
+   * @return identifier
+   */
+  long getUid();
+
+  /**
    * Get the current status of the task. The resultant status should be a
    * combination of individual sub-job statuses.
    *