Logo ROOT   6.16/01
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
26class TAlienJobStatus;
27class TAlienMasterJob;
28
29
31
32friend class TAlienMasterJob;
33
34private:
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
40public:
41 TAlienMasterJobStatus(const char* jobid) : fMasterJob(0)
42 { TString name; name = jobid; SetName(name); SetTitle(name); }
43 virtual ~TAlienMasterJobStatus();
44
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
#define b(i)
Definition: RSha256.hxx:100
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
float Float_t
Definition: RtypesCore.h:53
const Bool_t kTRUE
Definition: RtypesCore.h:87
const char Option_t
Definition: RtypesCore.h:62
#define ClassDef(name, id)
Definition: Rtypes.h:324
void Browse(TBrowser *b)
Browser interface.
virtual ~TAlienMasterJobStatus()
Cleanup.
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
EGridJobStatus GetStatus() const
Returns the status of the master job reduced to the subset defined in TGridJobStatus.
Float_t PercentFinished()
Returns the percentage of finished subjobs, only DONE is considered as finished.
void Print(Option_t *) const
Prints information of the master job and the sub job. Only the status is printed.
TAlienMasterJobStatus(const char *jobid)
TAlienJobStatus * fMasterJob
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:37
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
Definition: TCollection.h:182
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Definition: TMap.h:40
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
Definition: TNamed.cxx:164
virtual void SetName(const char *name)
Set the name of the TNamed.
Definition: TNamed.cxx:140
Basic string class.
Definition: TString.h:131