// @(#)root/proof:$Id$
// Author: Paul Nilsson   7/12/2005

/*************************************************************************
 * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TProofResources
#define ROOT_TProofResources

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TProofResources                                                      //
//                                                                      //
// Abstract base class for PROOF resources.                             //
// The class contains common method declarations for derived classes    //
// such as TProofResourcesStatic which reads and interprets static      //
// config files, and returns master, submaster and worker information   //
// using TProofNodeInfo objects.                                        //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TObject
#include "TObject.h"
#endif

class TList;
class TString;
class TProofNodeInfo;


class TProofResources : public TObject {

protected:
   Bool_t  fValid;    // kTRUE if resource information was processed correctly

public:
   TProofResources() : fValid(kFALSE) { }
   virtual ~TProofResources() { }

   virtual TProofNodeInfo *GetMaster() = 0;
   virtual TList          *GetSubmasters() = 0;
   virtual TList          *GetWorkers() = 0;
   virtual Bool_t          IsValid() const { return fValid; }

   ClassDef(TProofResources,0)  // Abstract class describing PROOF resources
};

#endif
 TProofResources.h:1
 TProofResources.h:2
 TProofResources.h:3
 TProofResources.h:4
 TProofResources.h:5
 TProofResources.h:6
 TProofResources.h:7
 TProofResources.h:8
 TProofResources.h:9
 TProofResources.h:10
 TProofResources.h:11
 TProofResources.h:12
 TProofResources.h:13
 TProofResources.h:14
 TProofResources.h:15
 TProofResources.h:16
 TProofResources.h:17
 TProofResources.h:18
 TProofResources.h:19
 TProofResources.h:20
 TProofResources.h:21
 TProofResources.h:22
 TProofResources.h:23
 TProofResources.h:24
 TProofResources.h:25
 TProofResources.h:26
 TProofResources.h:27
 TProofResources.h:28
 TProofResources.h:29
 TProofResources.h:30
 TProofResources.h:31
 TProofResources.h:32
 TProofResources.h:33
 TProofResources.h:34
 TProofResources.h:35
 TProofResources.h:36
 TProofResources.h:37
 TProofResources.h:38
 TProofResources.h:39
 TProofResources.h:40
 TProofResources.h:41
 TProofResources.h:42
 TProofResources.h:43
 TProofResources.h:44
 TProofResources.h:45
 TProofResources.h:46
 TProofResources.h:47
 TProofResources.h:48
 TProofResources.h:49
 TProofResources.h:50
 TProofResources.h:51
 TProofResources.h:52
 TProofResources.h:53