1 package compbio.engine;
6 * List of all posible final job statuses
9 public enum JobStatus {
10 OK, TIMEDOUT, STOPPED, JPREDERROR;
12 public static JobStatus getJobStatus(String status) {
13 status = status.trim().toLowerCase();
14 for (JobStatus st : JobStatus.values()) {
15 if (st.toString().equalsIgnoreCase(status)) {
22 public static String toString(Set<JobStatus> statuses) {
23 if (statuses == null || statuses.isEmpty()) {
24 return "No known services...\n";
27 for (JobStatus st : statuses) {
31 value += "Unknown Job Status\n";
37 public static void main(String[] args) {
38 System.out.println(OK);