Next version of JABA
[jabaws.git] / datamodel / compbio / metadata / JobStatus.java
1 /* Copyright (c) 2009 Peter Troshin\r
2  *  \r
3  *  JAva Bioinformatics Analysis Web Services (JABAWS) @version: 1.0 \r
4  * \r
5  *  This library is free software; you can redistribute it and/or modify it under the terms of the\r
6  *  Apache License version 2 as published by the Apache Software Foundation\r
7  * \r
8  *  This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without\r
9  *  even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache \r
10  *  License for more details.\r
11  * \r
12  *  A copy of the license is in apache_license.txt. It is also available here:\r
13  * @see: http://www.apache.org/licenses/LICENSE-2.0.txt\r
14  * \r
15  * Any republication or derived work distributed in source code form\r
16  * must include this copyright and license notice.\r
17  */\r
18 \r
19 package compbio.metadata;\r
20 \r
21 /**\r
22  * The status of the job.\r
23  * \r
24  * @author pvtroshin\r
25  * \r
26  *         Date October 2009\r
27  */\r
28 public enum JobStatus {\r
29 \r
30     /**\r
31      * Jobs which are in the queue and awaiting execution reported for cluster\r
32      * jobs only\r
33      */\r
34     PENDING,\r
35 \r
36     /**\r
37      * Jobs that are running\r
38      */\r
39     RUNNING,\r
40 \r
41     /**\r
42      * Jobs that has been cancelled\r
43      */\r
44     CANCELLED,\r
45 \r
46     /**\r
47      * Finished jobs\r
48      */\r
49     FINISHED,\r
50 \r
51     /**\r
52      * Failed jobs\r
53      */\r
54     FAILED,\r
55 \r
56     /**\r
57      * Represents jobs with unknown status\r
58      */\r
59     UNDEFINED,\r
60 \r
61     // These relates to the status recorded on the file system\r
62     /**\r
63      * Job calculation has been started. First status reported by the local\r
64      * engine\r
65      */\r
66     STARTED,\r
67 \r
68     /**\r
69      * Job has been submitted. This status is only set for cluster jobs\r
70      */\r
71     SUBMITTED,\r
72 \r
73     /**\r
74      * Results has been collected\r
75      */\r
76     COLLECTED\r
77 \r
78 }\r