63 while ((obj = iter->
Next()) != 0) {
76 const char* outputdir =
GetJdlKey(
"OutputDir");
100 const char *jdl =
GetKey(
"jdl");
103 const char* jdltagbegin = strstr(jdl,key);
104 const char* jdltagquote = strchr(jdltagbegin,
'"');
105 const char* jdltagend = strchr(jdltagbegin,
';');
114 const char* jdltagquote2 = strchr(jdltagquote,
'"');
153 if (strcmp(status,
"INSERTING") == 0 ||
154 strcmp(status,
"WAITING") == 0 ||
155 strcmp(status,
"QUEUED") == 0 ||
156 strcmp(status,
"ASSIGNED") == 0)
158 else if (strcmp(status,
"STARTED") == 0 ||
159 strcmp(status,
"SAVING") == 0 ||
160 strcmp(status,
"SPLITTING") == 0 ||
161 strcmp(status,
"RUNNING") == 0 ||
162 strcmp(status,
"SPLIT") == 0)
164 else if (strcmp(status,
"EXPIRED") == 0 ||
166 strcmp(status,
"FAILED") == 0 ||
167 strcmp(status,
"ZOMBIE") == 0)
169 else if (strcmp(status,
"KILLED") == 0)
171 else if (strcmp(status,
"DONE") == 0)
198 printf(
"The status of the job is %s\n", string->
GetString().
Data());
205 printf(
"==================================================\n");
206 printf(
"Detail Information:\n");
210 while ((obj = iter->
Next()) != 0) {
void Add(TObject *obj, const char *name=0, Int_t check=-1)
Add object with name to browser.
virtual EGridJobStatus GetStatus() const
Gets the status of the job reduced to the subset defined in TGridJobStatus.
Collectable string class.
TString & ReplaceAll(const TString &s1, const TString &s2)
void Add(TObject *obj)
This function may not be used (but we need to provide it since it is a pure virtual in TCollection)...
virtual void Print(Option_t *) const
Prints the job information.
Iterator abstract base class.
const char * GetJdlKey(const char *key)
Return the JDL key.
void DeleteAll()
Remove all (key,value) pairs from the map AND delete the keys AND values when they are allocated on t...
void PrintJob(Bool_t full=kTRUE) const
Prints this job.
TIterator * MakeIterator(Bool_t dir=kIterForward) const
Create an iterator for TMap.
const char * GetName() const
Returns name of object.
Using a TBrowser one can browse all ROOT objects.
const TString & GetString() const
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
virtual ~TAlienJobStatus()
Cleanup.
Class used by TMap to store (key,value) pairs.
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Mother of all ROOT objects.
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
const char * GetKey(const char *key)
Return a key.
TObject * FindObject(const char *keyname) const
Check if a (key,value) pair exists with keyname as name of the key.
virtual TObject * Next()=0
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
TObject * GetValue(const char *keyname) const
Returns a pointer to the value associated with keyname as name of the key.
void Browse(TBrowser *b)
Browser interface to ob status.
const char * Data() const