Logo ROOT   6.10/09
Reference Guide
TAlienMasterJobStatus.h
Go to the documentation of this file.
1 // @(#)root/alien:$Id$
2 // Author: Jan Fiete Grosse-Oetringhaus 28/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_TAlienMasterJobStatus
13 #define ROOT_TAlienMasterJobStatus
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TAlienMasterJobStatus //
18 // //
19 // Status of a MasterJob. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #include "TGridJobStatus.h"
24 #include "TMap.h"
25 
26 class TAlienJobStatus;
27 class TAlienMasterJob;
28 
29 
31 
32 friend class TAlienMasterJob;
33 
34 private:
35  TAlienJobStatus *fMasterJob; // Status of the master job
36  TMap fJobs; // Map which contains the sub jobs,
37  // key is the job ID, values are
38  // TAlienJobStatus objects
39 
40 public:
41  TAlienMasterJobStatus(const char* jobid) : fMasterJob(0)
42  { TString name; name = jobid; SetName(name); SetTitle(name); }
43  virtual ~TAlienMasterJobStatus();
44 
45  EGridJobStatus GetStatus() const;
46  void Print(Option_t *) const;
47 
49 
50  Bool_t IsFolder() const { return kTRUE; }
51  void Browse(TBrowser *b);
52  TMap *GetJobs() { return &fJobs; }
53  Int_t GetNSubJobs() const { return fJobs.GetSize(); }
54 
55  ClassDef(TAlienMasterJobStatus,1) // Status of Alien master job
56 };
57 
58 #endif
EGridJobStatus GetStatus() const
Returns the status of the master job reduced to the subset defined in TGridJobStatus.
float Float_t
Definition: RtypesCore.h:53
const char Option_t
Definition: RtypesCore.h:62
virtual void SetName(const char *name)
Set the name of the TNamed.
Definition: TNamed.cxx:131
Float_t PercentFinished()
Returns the percentage of finished subjobs, only DONE is considered as finished.
Basic string class.
Definition: TString.h:129
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
virtual ~TAlienMasterJobStatus()
Cleanup.
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects)...
#define ClassDef(name, id)
Definition: Rtypes.h:297
TAlienJobStatus * fMasterJob
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:37
TAlienMasterJobStatus(const char *jobid)
void Browse(TBrowser *b)
Browser interface.
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Definition: TMap.h:40
void Print(Option_t *) const
Prints information of the master job and the sub job. Only the status is printed. ...
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
virtual Int_t GetSize() const
Definition: TCollection.h:89
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
Definition: TNamed.cxx:155
const Bool_t kTRUE
Definition: RtypesCore.h:91