Logo ROOT   6.08/07
Reference Guide
TProofResources.h
Go to the documentation of this file.
1 // @(#)root/proof:$Id$
2 // Author: Paul Nilsson 7/12/2005
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2005, 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_TProofResources
13 #define ROOT_TProofResources
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TProofResources //
18 // //
19 // Abstract base class for PROOF resources. //
20 // The class contains common method declarations for derived classes //
21 // such as TProofResourcesStatic which reads and interprets static //
22 // config files, and returns master, submaster and worker information //
23 // using TProofNodeInfo objects. //
24 // //
25 //////////////////////////////////////////////////////////////////////////
26 
27 #ifndef ROOT_TObject
28 #include "TObject.h"
29 #endif
30 
31 class TList;
32 class TString;
33 class TProofNodeInfo;
34 
35 
36 class TProofResources : public TObject {
37 
38 protected:
39  Bool_t fValid; // kTRUE if resource information was processed correctly
40 
41 public:
42  TProofResources() : fValid(kFALSE) { }
43  virtual ~TProofResources() { }
44 
45  virtual TProofNodeInfo *GetMaster() = 0;
46  virtual TList *GetSubmasters() = 0;
47  virtual TList *GetWorkers() = 0;
48  virtual Bool_t IsValid() const { return fValid; }
49 
50  ClassDef(TProofResources,0) // Abstract class describing PROOF resources
51 };
52 
53 #endif
Basic string class.
Definition: TString.h:137
bool Bool_t
Definition: RtypesCore.h:59
const Bool_t kFALSE
Definition: Rtypes.h:92
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual Bool_t IsValid() const
A doubly linked list.
Definition: TList.h:47
The purpose of this class is to provide a complete node description for masters, submasters and worke...
Mother of all ROOT objects.
Definition: TObject.h:37
virtual TList * GetWorkers()=0
virtual TProofNodeInfo * GetMaster()=0
virtual TList * GetSubmasters()=0
virtual ~TProofResources()