40 : fExport(256), fType(
'W'), fPort(-1), fPerfIdx(100), fNwrks(1), fActive(1)
45 if (!str ||
strlen(str) <= 0)
101 if (!str ||
strlen(str) <= 0)
109 XrdOucString
typestr =
"master|submaster|worker|slave";
110 int from = s.tokenize(
tok, 0,
' ');
113 if (
tok ==
"submaster")
115 else if (
tok ==
"master")
125 char *
fullHostName = XrdSysDNS::getHostName((
char *)
ui.Host.c_str(), &err);
127 TRACE(
XERR,
"DNS could not resolve '" <<
ui.Host <<
"'");
138 if (
tok.beginswith(
"workdir=")) {
140 tok.replace(
"workdir=",
"");
142 }
else if (
tok.beginswith(
"image=")) {
144 tok.replace(
"image=",
"");
146 }
else if (
tok.beginswith(
"msd=")) {
148 tok.replace(
"msd=",
"");
150 }
else if (
tok.beginswith(
"port=")) {
152 tok.replace(
"port=",
"");
154 }
else if (
tok.beginswith(
"perf=")) {
156 tok.replace(
"perf=",
"");
158 }
else if (!
tok.beginswith(
"repeat=")) {
171 return ((
fHost.matches(host)) ? 1 : 0);
211 if (
fUser.length() > 0) {
229 }
else if (
fOrd.length() > 0) {
245 if (
fImage.length() > 0) {
259 if (
fMsd.length() > 0) {
283 std::list<XrdProofdProofServ *>::iterator iter;
300 std::list<XrdProofdProofServ *>::const_iterator iter;
326 std::list<XrdProofWorker *>::iterator i =
lst->
begin();
329 for (; i !=
lst->
end(); ++i)
350 if (!
f(
ta[k],
ta[k-1])) {
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
#define TRACE(Flag, Args)
#define XrdSysMutexHelper
const_iterator begin() const
const_iterator end() const
int GetNActiveSessions()
Calculate the number of workers existing on this node which are currently running.
void Reset(const char *str)
Set content from a config file-like string.
bool Matches(const char *host)
Check compatibility of host with this instance.
std::list< XrdProofdProofServ * > fProofServs
void MergeProofServs(const XrdProofWorker &other)
Merge session objects from the other worker object in order to merge all the objects in only one.
XrdProofWorker(const char *str=0)
Constructor from a config file-like string.
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 'tru...
virtual ~XrdProofWorker()
Destructor.
const char * Export(const char *ord=0)
Export current content in a form understood by parsing algorithms inside the PROOF session,...