12 #ifndef ROOT_XrdProofWorker
13 #define ROOT_XrdProofWorker
30 #include "XrdOuc/XrdOucString.hh"
42 void Reset(
const char *str);
50 static void Sort(std::list<XrdProofWorker *> *lst,
const char * Export(const char *ord=0)
Export current content in a form understood by parsing algorithms inside the PROOF session...
std::list< XrdProofdProofServ * > fProofServs
void RemoveProofServ(XrdProofdProofServ *xps)
virtual ~XrdProofWorker()
Destructor.
void Reset(const char *str)
Set content from a config file-like string.
void AddProofServ(XrdProofdProofServ *xps)
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.
#define XrdSysMutexHelper
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...
XrdProofWorker(const char *str=0)
Constructor from a config file-like string.