3 import java.io.IOException;
6 import javax.print.attribute.standard.JobState;
8 import jalview.util.MathUtils;
10 public interface WebServiceWorkerI
14 public final long uid = MathUtils.getUID();
16 protected WSJobState state = WSJobState.UNKNOWN;
18 protected String jobID = "";
20 protected int jobNum = 0;
22 protected int allowedExceptions = 3;
24 public long getUID() {
28 public WSJobState getState()
33 public void setState(WSJobState state)
38 public String getJobID()
43 public void setJobID(String jobID) {
47 public int getJobNum()
52 public int getAllowedExceptions()
54 return allowedExceptions;
57 public boolean deductAllowedExceptions() {
58 return allowedExceptions-- > 0;
61 public void resetAllowedExceptions() {
62 allowedExceptions = 3;
68 public List<WSJob> getJobs();
70 public WSJobID startJob(WSJob job) throws IOException;
72 public boolean pollJob(WSJob job) throws IOException;