Add new method to ProteoCacheWS web service
[proteocache.git] / server / compbio / ws / jpred / Jpred.java
index 72b1a9e..13b11b3 100644 (file)
@@ -29,7 +29,7 @@ public interface Jpred {
         * @return a number of jobs executed for the protein
         */
        @WebMethod
-       public String findSequence(@WebParam(name = "sequence") String sequence, @WebParam(name = "program") String program,
+       public int findSequence(@WebParam(name = "sequence") String sequence, @WebParam(name = "program") String program,
                        @WebParam(name = "version") String version);
 
        /**
@@ -58,4 +58,14 @@ public interface Jpred {
         */
        @WebMethod
        public String getArchive(@WebParam(name = "job") String jobid);
+
+       /**
+        * Checks whether a job with a given Job ID is kept in ProteoCache
+        * 
+        * @param jobid
+        *            the job ID
+        * @return 1 if the job exists, 0 - otherwise
+        */
+       @WebMethod
+       public int jobExists(@WebParam(name = "job") String jobid);
 }