1 package compbio.ws.jpred;
3 import javax.jws.WebMethod;
4 import javax.jws.WebParam;
5 import javax.jws.WebService;
8 * Jpred interface of the corresponding web serice in ProteoCache
10 * @author Alexander Sherstnev
11 * @author Natasha Sherstneva
16 @WebService(targetNamespace = "http://server.proteocache.ws")
17 public interface Jpred {
20 * Returns a number of jobs xecuted for a protein with a program of a
24 * the protein sequence
29 * @return a number of jobs executed for the protein
32 public int findSequence(@WebParam(name = "sequence") String sequence, @WebParam(name = "program") String program,
33 @WebParam(name = "version") String version);
36 * Returns a job ID executed for a protein with a program of a version if
37 * the job archive file is available, otherwise returns empty string
40 * the protein sequence
48 public String findJobForSequence(@WebParam(name = "sequence") String sequence, @WebParam(name = "program") String program,
49 @WebParam(name = "version") String version);
52 * Returns a relative web link to the job archive file for a ProteoCache
53 * job, if the file is not available null is returned
57 * @return the job archive file web link or null
60 public String getArchive(@WebParam(name = "job") String jobid);
63 * Checks whether a job with a given Job ID is kept in ProteoCache
67 * @return 1 if the job exists, 0 - otherwise
70 public int jobExists(@WebParam(name = "job") String jobid);