![]() |
ROOT 6.14/05 Reference Guide |
Definition at line 35 of file XrdProofWorker.h.
Public Member Functions | |
XrdProofWorker (const char *str=0) | |
Constructor from a config file-like string. More... | |
XrdProofWorker (const XrdProofWorker &) | |
Copy constructor. More... | |
virtual | ~XrdProofWorker () |
Destructor. More... | |
int | Active () const |
void | AddProofServ (XrdProofdProofServ *xps) |
const char * | Export (const char *ord=0) |
Export current content in a form understood by parsing algorithms inside the PROOF session, i.e. More... | |
int | GetNActiveSessions () |
Calculate the number of workers existing on this node which are currently running. More... | |
bool | Matches (const char *host) |
Check compatibility of host with this instance. More... | |
bool | Matches (XrdProofWorker *wrk) |
Set content from a config file-like string. More... | |
void | MergeProofServs (const XrdProofWorker &other) |
Merge session objects from the other worker object in order to merge all the objects in only one. More... | |
void | RemoveProofServ (XrdProofdProofServ *xps) |
void | Reset (const char *str) |
Set content from a config file-like string. More... | |
Static Public Member Functions | |
static void | Sort (std::list< XrdProofWorker *> *lst, bool(*f)(XrdProofWorker *&lhs, XrdProofWorker *&rhs)) |
Sort ascendingly the list according to the comparing algorithm defined by 'f'; 'f' should return 'true' if 'rhs' > 'lhs'. More... | |
Public Attributes | |
bool | fActive |
XrdOucString | fExport |
XrdOucString | fHost |
XrdOucString | fId |
XrdOucString | fImage |
XrdOucString | fMsd |
int | fNwrks |
XrdOucString | fOrd |
int | fPerfIdx |
int | fPort |
std::list< XrdProofdProofServ * > | fProofServs |
char | fType |
XrdOucString | fUser |
XrdOucString | fWorkDir |
Private Attributes | |
XrdSysRecMutex * | fMutex |
#include <XrdProofWorker.h>
XrdProofWorker::XrdProofWorker | ( | const char * | str = 0 | ) |
Constructor from a config file-like string.
Definition at line 39 of file XrdProofWorker.cxx.
XrdProofWorker::XrdProofWorker | ( | const XrdProofWorker & | w | ) |
Copy constructor.
Definition at line 62 of file XrdProofWorker.cxx.
|
virtual |
Destructor.
Definition at line 54 of file XrdProofWorker.cxx.
|
inline |
Definition at line 54 of file XrdProofWorker.h.
|
inline |
Definition at line 58 of file XrdProofWorker.h.
const char * XrdProofWorker::Export | ( | const char * | ord = 0 | ) |
Export current content in a form understood by parsing algorithms inside the PROOF session, i.e.
<type>|<user>|<port>|<ord>|-|<perfidx>||<workdir>|<msd>
Definition at line 203 of file XrdProofWorker.cxx.
int XrdProofWorker::GetNActiveSessions | ( | ) |
Calculate the number of workers existing on this node which are currently running.
TODO: optimally, one could contact the packetizer and count the opened files.
Definition at line 280 of file XrdProofWorker.cxx.
bool XrdProofWorker::Matches | ( | const char * | host | ) |
Check compatibility of host with this instance.
return 1 if compatible.
Definition at line 169 of file XrdProofWorker.cxx.
bool XrdProofWorker::Matches | ( | XrdProofWorker * | wrk | ) |
Set content from a config file-like string.
Definition at line 177 of file XrdProofWorker.cxx.
void XrdProofWorker::MergeProofServs | ( | const XrdProofWorker & | other | ) |
Merge session objects from the other worker object in order to merge all the objects in only one.
This was added to support hybrid satatically and dinamically Bonjour workers discovery.
Definition at line 299 of file XrdProofWorker.cxx.
|
inline |
Definition at line 62 of file XrdProofWorker.h.
void XrdProofWorker::Reset | ( | const char * | str | ) |
Set content from a config file-like string.
Definition at line 82 of file XrdProofWorker.cxx.
|
static |
Sort ascendingly the list according to the comparing algorithm defined by 'f'; 'f' should return 'true' if 'rhs' > 'lhs'.
This is implemented because on Solaris where std::list::sort() does not support an alternative comparison algorithm.
Definition at line 314 of file XrdProofWorker.cxx.
bool XrdProofWorker::fActive |
Definition at line 87 of file XrdProofWorker.h.
XrdOucString XrdProofWorker::fExport |
Definition at line 73 of file XrdProofWorker.h.
XrdOucString XrdProofWorker::fHost |
Definition at line 76 of file XrdProofWorker.h.
XrdOucString XrdProofWorker::fId |
Definition at line 82 of file XrdProofWorker.h.
XrdOucString XrdProofWorker::fImage |
Definition at line 79 of file XrdProofWorker.h.
XrdOucString XrdProofWorker::fMsd |
Definition at line 81 of file XrdProofWorker.h.
|
private |
Definition at line 90 of file XrdProofWorker.h.
int XrdProofWorker::fNwrks |
Definition at line 83 of file XrdProofWorker.h.
XrdOucString XrdProofWorker::fOrd |
Definition at line 85 of file XrdProofWorker.h.
int XrdProofWorker::fPerfIdx |
Definition at line 78 of file XrdProofWorker.h.
int XrdProofWorker::fPort |
Definition at line 77 of file XrdProofWorker.h.
std::list<XrdProofdProofServ *> XrdProofWorker::fProofServs |
Definition at line 69 of file XrdProofWorker.h.
char XrdProofWorker::fType |
Definition at line 74 of file XrdProofWorker.h.
XrdOucString XrdProofWorker::fUser |
Definition at line 75 of file XrdProofWorker.h.
XrdOucString XrdProofWorker::fWorkDir |
Definition at line 80 of file XrdProofWorker.h.