library: libProof
#include "TProofResourcesStatic.h"

TProofResourcesStatic


class description - header file - source file - inheritance tree (.pdf)

class TProofResourcesStatic : public TProofResources

Inheritance Chart:
TObject
<-
TProofResources
<-
TProofResourcesStatic
    private:
static TProofNodeInfo* CreateNodeInfo(const TString& name) static TProofResourcesStatic::EInfoType GetInfoType(const TString& word) void InitResources() Bool_t ReadConfigFile(const char* confDir, const char* fileName) static void SetOption(TProofNodeInfo* nodeinfo, const TString& option, const TString& value) public:
TProofResourcesStatic() TProofResourcesStatic(const char* confDir, const char* fileName) TProofResourcesStatic(const TProofResourcesStatic&) virtual ~TProofResourcesStatic() static TClass* Class() TString GetFileName() const virtual TProofNodeInfo* GetMaster() virtual TList* GetSubmasters() virtual TList* GetWorkers() virtual TClass* IsA() const TProofResourcesStatic& operator=(const TProofResourcesStatic&) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
TProofNodeInfo* fMaster Master node info TList* fSubmasterList Node info list with all submasters TList* fWorkerList Node info list with all workers Bool_t fFoundMaster kTRUE if config file has master info TString fFileName Config file name public:
static const TProofResourcesStatic::EInfoType kNodeType static const TProofResourcesStatic::EInfoType kOption static const TProofResourcesStatic::EInfoType kHost

Class Description

                                                                      
 TProofResourcesStatic                                                
                                                                      
 Implementation of PROOF static resources.                            
 The purpose of this class is to provide a standard interface to      
 static config files. It interprets Proof config files (proof.conf)   
 and sorts the contents into TProofNodeInfo objects. Master info will 
 be placed in fMaster (of type TProofNodeInfo). Submaster info will   
 be put in fSubmasterList (a TList of TProofNodeInfo objects), while  
 workers (and condorworkers) will be placed in fWorkerList (a TList   
 of TProofNodeInfo objects).                                          
                                                                      

TProofResourcesStatic()
 This ctor is used in TProofServ::Setup() in combination with GetWorkDir()
 for a quick scan of the config file to retrieve the work directory.
TProofResourcesStatic(const char *confDir, const char *fileName)
 Using this ctor will retrieve all information in the config file
 and store it in fMaster, fSubmasterList and fWorkerList,
 condorworkers will be stored in the fWorkerList.
~TProofResourcesStatic()
 Destructor.
void InitResources()
 Create master node info and submaster/worker lists,
 and set default values.
TProofNodeInfo * GetMaster()
 Get the master node. Only return the master info if it was set
 in the config file.
TList * GetSubmasters()
 Get the list of submaster nodes.
TList * GetWorkers(void)
 Get the list of worker nodes.
Bool_t ReadConfigFile(const char *confDir, const char *fileName)
 Read the PROOF config file and fill the master and worker list.
void SetOption(TProofNodeInfo *nodeinfo, const TString &option, const TString &value)
 Static method to set the node info options.
TProofNodeInfo * CreateNodeInfo(const TString &name)
 Fill out the preliminary TProofNodeInfo structure.
EInfoType GetInfoType(const TString &word)
TProofResourcesStatic()
TString GetFileName()

Author: Paul Nilsson 7/12/2005
Last update: root/proof:$Name: $:$Id: TProofResourcesStatic.cxx,v 1.7 2006/05/10 14:06:06 rdm Exp $
Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.