private String serviceName = "";
/* Server-side identifier */
- private String jobID = "";
+ private String jobId = "";
private WSJobStatus status = WSJobStatus.UNKNOWN;
{
}
- public WSJob(String serviceProvider, String serviceName, String jobID,
- String hostName)
+ public WSJob(String serviceProvider, String serviceName, String hostName)
{
this.serviceProvider = serviceProvider;
this.serviceName = serviceName;
- this.jobID = jobID;
this.hostName = hostName;
}
public String toString()
{
return format("%s:%s [%s] Created %s", serviceProvider, serviceName,
- jobID, creationTime);
+ jobId, creationTime);
}
public int getJobNum()
this.serviceName = serviceName;
}
- public String getJobID()
+ public String getJobId()
{
- return jobID;
+ return jobId;
}
- public void setJobID(String jobID)
+ public void setJobId(String jobID)
{
- this.jobID = jobID;
+ this.jobId = jobID;
}
public String getHostName()
{
pcs.removePropertyChangeListener(propertyName, listener);
}
-
}
public interface WebServiceI
{
public String getHostName();
+ public String getProviderName();
public String getName();
public String getDescription();
public String getOperationType();
public boolean hasParameters();
public ParamDatastoreI getParamStore();
- public WSJob submit(List<SequenceI> sequences, List<ArgumentI> args)
+ public String submit(List<SequenceI> sequences, List<ArgumentI> args)
throws IOException;
public void updateProgress(WSJob job)
public String getHostName() { return client.getUrl().toString(); }
@Override
+ public String getProviderName() { return "slivka"; }
+
+ @Override
public String getName() { return service.getName(); }
@Override
}
@Override
- public WSJob submit(List<SequenceI> sequences, List<ArgumentI> args) throws IOException
+ public String submit(List<SequenceI> sequences, List<ArgumentI> args) throws IOException
{
var request = new uk.ac.dundee.compbio.slivkaclient.JobRequest();
for (Parameter param : service.getParameters()) {
}
}
var job = service.submitJob(request);
- return new WSJob("slivka", getName(), job.getId(), getHostName());
+ return job.getId();
}
@Override
public AlignmentI getAlignment(WSJob job) throws IOException {
Collection<RemoteFile> files;
- var slivkaJob = client.getJob(job.getJobID());
+ var slivkaJob = client.getJob(job.getJobId());
files = slivkaJob.getResults();
for (RemoteFile f : files) {
if (f.getMediaType().equals("application/clustal")) {