library: libProof #include "TProofResourcesStatic.h" |
TProofResourcesStatic
class description - source file - inheritance tree (.pdf)
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)
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
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.
Inline Functions
TProofResourcesStatic::EInfoType GetInfoType(const TString& word)
TString GetFileName() const
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
TProofResourcesStatic TProofResourcesStatic(const TProofResourcesStatic&)
TProofResourcesStatic& operator=(const TProofResourcesStatic&)
Author: Paul Nilsson 7/12/2005
Last update: root/proof:$Name: $:$Id: TProofResourcesStatic.cxx,v 1.4 2006/01/17 13:23:29 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.