Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 #include "TObject.h"
28 
29 class TList;
30 class TString;
31 class TProofNodeInfo;
32 
33 
34 class TProofResources : public TObject {
35 
36 protected:
37  Bool_t fValid; // kTRUE if resource information was processed correctly
38 
39 public:
40  TProofResources() : fValid(kFALSE) { }
41  virtual ~TProofResources() { }
42 
43  virtual TProofNodeInfo *GetMaster() = 0;
44  virtual TList *GetSubmasters() = 0;
45  virtual TList *GetWorkers() = 0;
46  virtual Bool_t IsValid() const { return fValid; }
47 
48  ClassDef(TProofResources,0) // Abstract class describing PROOF resources
49 };
50 
51 #endif