12#ifndef ROOT_XrdProofWorker
13#define ROOT_XrdProofWorker
30#include "XrdOuc/XrdOucString.hh"
42 void Reset(
const char *str);
44 const char *
Export(
const char *ord = 0);
50 static void Sort(std::list<XrdProofWorker *> *lst,
#define XrdSysMutexHelper
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.
void RemoveProofServ(XrdProofdProofServ *xps)
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.
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.
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,...