TProofResources.h

Go to the documentation of this file.
00001 // @(#)root/proof:$Id: TProofResources.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Paul Nilsson   7/12/2005
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TProofResources
00013 #define ROOT_TProofResources
00014 
00015 //////////////////////////////////////////////////////////////////////////
00016 //                                                                      //
00017 // TProofResources                                                      //
00018 //                                                                      //
00019 // Abstract base class for PROOF resources.                             //
00020 // The class contains common method declarations for derived classes    //
00021 // such as TProofResourcesStatic which reads and interprets static      //
00022 // config files, and returns master, submaster and worker information   //
00023 // using TProofNodeInfo objects.                                        //
00024 //                                                                      //
00025 //////////////////////////////////////////////////////////////////////////
00026 
00027 #ifndef ROOT_TObject
00028 #include "TObject.h"
00029 #endif
00030 
00031 class TList;
00032 class TString;
00033 class TProofNodeInfo;
00034 
00035 
00036 class TProofResources : public TObject {
00037 
00038 protected:
00039    Bool_t  fValid;    // kTRUE if resource information was processed correctly
00040 
00041 public:
00042    TProofResources() : fValid(kFALSE) { }
00043    virtual ~TProofResources() { }
00044 
00045    virtual TProofNodeInfo *GetMaster() = 0;
00046    virtual TList          *GetSubmasters() = 0;
00047    virtual TList          *GetWorkers() = 0;
00048    virtual Bool_t          IsValid() const { return fValid; }
00049 
00050    ClassDef(TProofResources,0)  // Abstract class describing PROOF resources
00051 };
00052 
00053 #endif

Generated on Tue Jul 5 14:28:03 2011 for ROOT_528-00b_version by  doxygen 1.5.1