Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 
30 class TAlienMasterJobStatus : public TGridJobStatus {
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 
48  Float_t PercentFinished();
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