3 import java.io.IOException;
6 import jalview.ws2.utils.WSJobList;
8 public interface WebServiceWorkerI extends PollableTaskI
14 void start() throws IOException;
16 boolean poll() throws IOException;
18 WebServiceI getWebService();
20 default boolean isDone()
22 if (getJobs().size() == 0)
24 for (WSJob job : getJobs())
26 if (!job.getStatus().isDone() && !job.getStatus().isFailed())
33 * Called by the executor when the worker transitions to the done state
34 * either normally or exceptionally.
38 public void addListener(WebServiceWorkerListener listener);