Logo ROOT   6.12/07
Reference Guide
TAlienJobStatus.h
Go to the documentation of this file.
1 // @(#)root/alien:$Id$
2 // Author: Jan Fiete Grosse-Oetringhaus 06/10/2004
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TAlienJobStatus
13 #define ROOT_TAlienJobStatus
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TAlienJobStatus //
18 // //
19 // Alien implementation of TGridJobStatus. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #include "TGridJobStatus.h"
24 #include "TMap.h"
25 
26 class TAlienJob;
27 class TAlienMasterJob;
28 
29 
31 
32 friend class TAlienJob;
33 friend class TAlienMasterJob;
34 
35 private:
36  TMap fStatus; // Contains the status information of the job.
37  // In the Alien implementation this is a string, string map.
38  TString fJdlTag; // JdlTag
39 
40  void ClearSetStatus(const char *status);
41 
42 public:
44  TAlienJobStatus(TMap *status);
45  virtual ~TAlienJobStatus();
46 
47  const char *GetJdlKey(const char *key);
48  const char *GetKey(const char *key);
49 
50  virtual EGridJobStatus GetStatus() const;
51  virtual void Print(Option_t *) const;
52 
53  void PrintJob(Bool_t full = kTRUE) const;
54 
55  Bool_t IsFolder() const { return kTRUE;}
56  void Browse(TBrowser *b);
57 
58  ClassDef(TAlienJobStatus,1) // Alien implementation of TGridJobStatus
59 };
60 
61 #endif
virtual EGridJobStatus GetStatus() const
Gets the status of the job reduced to the subset defined in TGridJobStatus.
const char Option_t
Definition: RtypesCore.h:62
Basic string class.
Definition: TString.h:125
bool Bool_t
Definition: RtypesCore.h:59
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects)...
virtual void Print(Option_t *) const
Prints the job information.
#define ClassDef(name, id)
Definition: Rtypes.h:320
const char * GetJdlKey(const char *key)
Return the JDL key.
void PrintJob(Bool_t full=kTRUE) const
Prints this job.
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:37
virtual ~TAlienJobStatus()
Cleanup.
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Definition: TMap.h:40
const char * GetKey(const char *key)
Return a key.
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
Definition: TRolke.cxx:630
void Browse(TBrowser *b)
Browser interface to ob status.
const Bool_t kTRUE
Definition: RtypesCore.h:87
void ClearSetStatus(const char *status)