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() {
23 if (getJobs().size() == 0)
25 for (WSJob job : getJobs()) {
26 if (!job.getStatus().isDone())
33 * Called by the executor when the worker transitions to the done state
34 * either normally or exceptionally.