3 import java.io.IOException;
6 import javax.print.attribute.standard.JobState;
8 import jalview.util.MathUtils;
10 public interface WebServiceWorkerI
14 List<WSJob> getJobs();
16 void startJobs() throws IOException;
18 boolean pollJobs() throws IOException;
20 WebServiceI getWebService();
22 default boolean isDone()
24 if (getJobs().size() == 0)
26 for (WSJob job : getJobs())
28 if (!job.getStatus().isDone() && !job.getStatus().isFailed())
35 * Called by the executor when the worker transitions to the done state
36 * either normally or exceptionally.