Definition at line 35 of file XrdProofWorker.h.
Public Member Functions | |
XrdProofWorker (const char *str=0) | |
Constructor from a config file-like string. | |
XrdProofWorker (const XrdProofWorker &) | |
Copy constructor. | |
virtual | ~XrdProofWorker () |
Destructor. | |
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. | |
int | GetNActiveSessions () |
Calculate the number of workers existing on this node which are currently running. | |
bool | Matches (const char *host) |
Check compatibility of host with this instance. | |
bool | Matches (XrdProofWorker *wrk) |
Set content from a config file-like string. | |
void | MergeProofServs (const XrdProofWorker &other) |
Merge session objects from the other worker object in order to merge all the objects in only one. | |
void | RemoveProofServ (XrdProofdProofServ *xps) |
void | Reset (const char *str) |
Set content from a config file-like string. | |
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'. | |
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@host>|<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.
Definition at line 298 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 313 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.