Back to index

nordugrid-arc-nox  1.1.0~rc6
job_status.h
Go to the documentation of this file.
00001 #ifndef __ARC_JOB_STATUS_H__
00002 #define __ARC_JOB_STATUS_H__
00003 
00004 #include <string>
00005 #include <arc/StringConv.h>
00006 
00007 namespace Arc
00008 {
00009 
00010 enum SchedJobStatus {
00011     JOB_STATUS_SCHED_NEW, 
00012     JOB_STATUS_SCHED_RESCHEDULED,
00013     JOB_STATUS_SCHED_STARTING, 
00014     JOB_STATUS_SCHED_RUNNING, 
00015     JOB_STATUS_SCHED_CANCELLED, 
00016     JOB_STATUS_SCHED_FAILED, 
00017     JOB_STATUS_SCHED_FINISHED, 
00018     JOB_STATUS_SCHED_KILLED, 
00019     JOB_STATUS_SCHED_KILLING,
00020     JOB_STATUS_SCHED_UNKNOWN 
00021 };
00022 
00023 enum ARexJobStatus
00024 {
00025     JOB_STATUS_AREX_ACCEPTING, 
00026     JOB_STATUS_AREX_ACCEPTED, 
00027     JOB_STATUS_AREX_PREPARING, 
00028     JOB_STATUS_AREX_PREPARED, 
00029     JOB_STATUS_AREX_SUBMITTING, 
00030     JOB_STATUS_AREX_EXECUTING, 
00031     JOB_STATUS_AREX_KILLING, 
00032     JOB_STATUS_AREX_EXECUTED, 
00033     JOB_STATUS_AREX_FINISHING, 
00034     JOB_STATUS_AREX_FAILED, 
00035     JOB_STATUS_AREX_HELD,
00036     JOB_STATUS_AREX_UNKNOWN
00037 };
00038 
00039 enum PaulJobStatus
00040 {
00041     JOB_STATUS_PAUL_NEW,
00042     JOB_STATUS_PAUL_STARTING,
00043     JOB_STATUS_PAUL_STAGEIN,
00044     JOB_STATUS_PAUL_RUNNING,
00045     JOB_STATUS_PAUL_STAGEOUT,
00046     JOB_STATUS_PAUL_FAILDE,
00047     JOB_STATUS_PAUL_KILLING,
00048     JOB_STATUS_PAUL_KILLED,
00049     JOB_STATUS_PAUL_FINISHED,
00050     JOB_STATUS_PAUL_UNKNOWN
00051 };
00052 
00053 std::string sched_status_to_string(SchedJobStatus l);
00054 SchedJobStatus sched_status_from_string(const std::string &s);
00055 PaulJobStatus paul_status_from_string(const std::string &s);
00056 ARexJobStatus arex_status_from_string(const std::string &s);
00057 
00058 } // namespace arc
00059 
00060 #endif