import java.io.IOException;
import java.util.List;
-import javax.print.attribute.standard.JobState;
-
-import jalview.util.MathUtils;
-
-public interface WebServiceWorkerI
+public interface WebServiceWorkerI extends PollableTaskI
{
long getUID();
List<WSJob> getJobs();
- void startJobs() throws IOException;
+ void start() throws IOException;
- boolean pollJobs() throws IOException;
+ boolean poll() throws IOException;
WebServiceI getWebService();
return false;
for (WSJob job : getJobs())
{
- if (!job.getStatus().isDone())
+ if (!job.getStatus().isDone() && !job.getStatus().isFailed())
return false;
}
return true;