1 package jalview.ws.api;
3 import java.time.Instant;
8 // TODO: JobId could include sequenceI anonymisation stuff
9 // TODO: getProgress() -> input stream to log file for job.
10 private String serviceType;
12 private String serviceImpl;
16 private Instant creationTime;
18 public JobId(String serviceType, String serviceImpl, String id)
20 this.serviceType = serviceType;
21 this.serviceImpl = serviceImpl;
23 creationTime = Instant.now();
27 public String toString()
29 return "" + serviceType + ":" + serviceImpl + ":" + jobId + "\nCreated "
30 + Date.from(creationTime);
33 * a stringified version of the Job Id that can be saved in project.
35 public String getURI()
40 public String getServiceType()
45 public String getServiceImpl()
50 public String getJobId()
55 public Instant getCreationTime()