ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 #ifndef ROOT_TGridJobStatus
24 #include "TGridJobStatus.h"
25 #endif
26 #ifndef ROOT_TMap
27 #include "TMap.h"
28 #endif
29 
30 class TAlienJob;
31 class TAlienMasterJob;
32 
33 
35 
36 friend class TAlienJob;
37 friend class TAlienMasterJob;
38 
39 private:
40  TMap fStatus; // Contains the status information of the job.
41  // In the Alien implementation this is a string, string map.
42  TString fJdlTag; // JdlTag
43 
44  void ClearSetStatus(const char *status);
45 
46 public:
49  virtual ~TAlienJobStatus();
50 
51  const char *GetJdlKey(const char *key);
52  const char *GetKey(const char *key);
53 
54  virtual EGridJobStatus GetStatus() const;
55  virtual void Print(Option_t *) const;
56 
57  void PrintJob(Bool_t full = kTRUE) const;
58 
59  Bool_t IsFolder() const { return kTRUE;}
60  void Browse(TBrowser *b);
61 
62  ClassDef(TAlienJobStatus,1) // Alien implementation of TGridJobStatus
63 };
64 
65 #endif
const char Option_t
Definition: RtypesCore.h:62
Basic string class.
Definition: TString.h:137
TAlienJobStatus * status
Definition: TAlienJob.cxx:51
bool Bool_t
Definition: RtypesCore.h:59
void PrintJob(Bool_t full=kTRUE) const
Prints this job.
#define ClassDef(name, id)
Definition: Rtypes.h:254
const char * GetJdlKey(const char *key)
Return the JDL key.
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects)...
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:41
virtual ~TAlienJobStatus()
Cleanup.
virtual EGridJobStatus GetStatus() const
Gets the status of the job reduced to the subset defined in TGridJobStatus.
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Definition: TMap.h:44
const char * GetKey(const char *key)
Return a key.
const Bool_t kTRUE
Definition: Rtypes.h:91
void Browse(TBrowser *b)
Browser interface to ob status.
void ClearSetStatus(const char *status)
virtual void Print(Option_t *) const
Prints the job information.