26 #include <glite-api-wrapper/gLiteAPIWrapper.h> 67 glite::lb::JobStatus::Code code(glite::lb::JobStatus::UNDEF);
69 code = CGLiteAPIWrapper::Instance().GetJobManager().JobStatus(
m_sJobID, &sStatusName, &sStatusString);
70 }
catch (
const exception &
e) {
71 Error(
"GetStatus",
"Exception: %s", e.what());
77 "Job status is [%d]; gLite status code is \"%s\"; gLite status string is \"%s\"",
78 code, sStatusName.c_str(), sStatusString.c_str());
80 case glite::lb::JobStatus::DONE:
81 case glite::lb::JobStatus::CLEARED:
82 case glite::lb::JobStatus::PURGED:
83 Info(
"GetStatus",
"Job status is kDONE");
85 case glite::lb::JobStatus::SUBMITTED:
86 case glite::lb::JobStatus::WAITING:
87 case glite::lb::JobStatus::READY:
88 Info(
"GetStatus",
"Job status is kWAITING");
90 case glite::lb::JobStatus::SCHEDULED:
91 case glite::lb::JobStatus::RUNNING:
92 Info(
"GetStatus",
"Job status is kRUNNING");
94 case glite::lb::JobStatus::ABORTED:
95 Info(
"GetStatus",
"Job status is kABORTED");
97 case glite::lb::JobStatus::CANCELLED:
98 Info(
"GetStatus",
"Job status is kFAIL");
104 Info(
"GetStatus",
"Job status is kUNKNOWN");
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
virtual EGridJobStatus GetStatus() const
The GetStat() method retrieves a gLite job status and translates it to a TGridJobStatus::EGridJobStat...
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
gLite implementation of TGridJobStatus