64 Info(
"TProofResourcesStatic",
"error encountered while reading config file");
134 const char *fileName)
139 const char *
p = (
const char *) strstr(fileName,
":");
150 Info(
"ReadConfigFile",
"file %s cannot be read:"
151 " check existence and/or permissions", cf);
152 if (fileName && strlen(fileName) > 0) {
164 Info(
"ReadConfigFile",
"no PROOF config file found");
170 Info(
"ReadConfigFile",
"no PROOF config file specified");
179 if (infile.is_open()) {
200 for (
Int_t j = 0; j < numberOfLines; j++) {
206 if ( !((
line(0,1) ==
"#") || (
line ==
"")) ) {
219 for (
Int_t i = 0; i <
n; i++) {
227 if (keyword ==
"master" || keyword ==
"node") {
232 else if (keyword ==
"submaster") {
260 nodeinfo->
fImage = tmp(equalPosition + 1, tmp.Length());
263 Error(
"ReadConfigFile",
"Command not recognized: %s (ignored)",
270 const Ssiz_t equalPosition =
275 option = tmp(0, equalPosition);
276 value = tmp(equalPosition + 1, tmp.Length());
304 else if (isSubmaster) {
314 Error(
"ReadConfigFile",
"No master info found in config file");
334 if (!nodeinfo)
return;
336 if (
option ==
"workdir") {
338 }
else if (
option ==
"image") {
340 }
else if (
option ==
"perf") {
342 }
else if (
option ==
"config") {
344 }
else if (
option ==
"msd") {
346 }
else if (
option ==
"port") {
360 if ((word ==
"node") || (word ==
"master") || (word ==
"submaster") ||
361 (word ==
"worker") || (word ==
"slave") ||
362 (word ==
"condorworker") || (word ==
"condorslave")) {
382 nodeInfo->
fPort = -1;
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
R__EXTERN TSystem * gSystem
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
This class represents an Internet Protocol (IP) address.
const char * GetHostName() const
void Add(TObject *obj) override
Int_t GetEntries() const override
Return the number of objects in array (i.e.
TObject * At(Int_t idx) const override
Collectable string class.
const TString & GetString() const
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
The purpose of this class is to provide a complete node description for masters, submasters and worke...
void Assign(const TProofNodeInfo &n)
Asssign content of node n to this node.
ENodeType GetNodeType() const
The purpose of this class is to provide a standard interface to static config files.
TProofNodeInfo * GetMaster() override
Get the master node.
static void SetOption(TProofNodeInfo *nodeinfo, const TString &option, const TString &value)
Static method to set the node info options.
static TProofNodeInfo * CreateNodeInfo(const TString &name)
Fill out the preliminary TProofNodeInfo structure.
TProofResourcesStatic()
This ctor is used in TProofServ::Setup() in combination with GetWorkDir() for a quick scan of the con...
static EInfoType GetInfoType(const TString &word)
Static method to determine the info type.
void InitResources()
Create master node info and submaster/worker lists, and set default values.
TList * GetWorkers() override
Get the list of worker nodes.
~TProofResourcesStatic() override
Destructor.
TList * GetSubmasters() override
Get the list of submaster nodes.
Bool_t ReadConfigFile(const char *confDir, const char *fileName)
Read the PROOF config file and fill the master and worker list.
int CompareTo(const char *cs, ECaseCompare cmp=kExact) const
Compare a string to char *cs2.
const char * Data() const
static TString * ReadString(TBuffer &b, const TClass *clReq)
Read TString object from buffer.
TObjArray * Tokenize(const TString &delim) const
This function is used to isolate sequential tokens in a TString.
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
virtual const char * Getenv(const char *env)
Get environment variable.
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
virtual const char * HostName()
Return the system's host name.
virtual TInetAddress GetHostByName(const char *server)
Get Internet Protocol (IP) address of host.
virtual const char * HomeDirectory(const char *userName=nullptr)
Return the user's home directory.
This class represents a WWW compatible URL.
const char * GetHost() const