* @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);
/**
*/
@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);
}