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,
'"');
151 const char*
status =
string->GetString().Data();
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)
205 printf(
"==================================================\n");
206 printf(
"Detail Information:\n");
210 while ((obj = iter->
Next()) != 0) {
const char * GetName() const
Returns name of object.
void Add(TObject *obj, const char *name=0, Int_t check=-1)
Add object with name to browser.
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
Collectable string class.
TString & ReplaceAll(const TString &s1, const TString &s2)
ClassImp(TAlienJobStatus) TAlienJobStatus
Creates a TAlienJobStatus object.
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
Iterator abstract base class.
void PrintJob(Bool_t full=kTRUE) const
Prints this job.
const char * Data() const
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
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...
std::map< std::string, std::string >::const_iterator iter
TObject * GetValue(const char *keyname) const
Returns a pointer to the value associated with keyname as name of the key.
TObject * FindObject(const char *keyname) const
Check if a (key,value) pair exists with keyname as name of the key.
Using a TBrowser one can browse all ROOT objects.
TString GetString() const
TIterator * MakeIterator(Bool_t dir=kIterForward) const
Create an iterator for TMap.
virtual ~TAlienJobStatus()
Cleanup.
virtual EGridJobStatus GetStatus() const
Gets the status of the job reduced to the subset defined in TGridJobStatus.
Class used by TMap to store (key,value) pairs.
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
Mother of all ROOT objects.
const char * GetKey(const char *key)
Return a key.
virtual TObject * Next()=0
void Browse(TBrowser *b)
Browser interface to ob status.
virtual void Print(Option_t *) const
Prints the job information.