Logo ROOT   6.10/09
Reference Guide
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes | List of all members
XrdProofWorker Class Reference

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

XrdSysRecMutexfMutex
 

#include <XrdProofWorker.h>

Constructor & Destructor Documentation

◆ XrdProofWorker() [1/2]

XrdProofWorker::XrdProofWorker ( const char *  str = 0)

Constructor from a config file-like string.

Definition at line 39 of file XrdProofWorker.cxx.

◆ XrdProofWorker() [2/2]

XrdProofWorker::XrdProofWorker ( const XrdProofWorker w)

Copy constructor.

Definition at line 62 of file XrdProofWorker.cxx.

◆ ~XrdProofWorker()

XrdProofWorker::~XrdProofWorker ( )
virtual

Destructor.

Definition at line 54 of file XrdProofWorker.cxx.

Member Function Documentation

◆ Active()

int XrdProofWorker::Active ( ) const
inline

Definition at line 54 of file XrdProofWorker.h.

◆ AddProofServ()

void XrdProofWorker::AddProofServ ( XrdProofdProofServ xps)
inline

Definition at line 58 of file XrdProofWorker.h.

◆ Export()

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.

◆ GetNActiveSessions()

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.

◆ Matches() [1/2]

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.

◆ Matches() [2/2]

bool XrdProofWorker::Matches ( XrdProofWorker wrk)

Set content from a config file-like string.

Definition at line 177 of file XrdProofWorker.cxx.

◆ MergeProofServs()

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.

◆ RemoveProofServ()

void XrdProofWorker::RemoveProofServ ( XrdProofdProofServ xps)
inline

Definition at line 62 of file XrdProofWorker.h.

◆ Reset()

void XrdProofWorker::Reset ( const char *  str)

Set content from a config file-like string.

Definition at line 82 of file XrdProofWorker.cxx.

◆ Sort()

void XrdProofWorker::Sort ( std::list< XrdProofWorker *> *  lst,
bool(*)(XrdProofWorker *&lhs, XrdProofWorker *&rhs)  f 
)
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.

Member Data Documentation

◆ fActive

bool XrdProofWorker::fActive

Definition at line 87 of file XrdProofWorker.h.

◆ fExport

XrdOucString XrdProofWorker::fExport

Definition at line 73 of file XrdProofWorker.h.

◆ fHost

XrdOucString XrdProofWorker::fHost

Definition at line 76 of file XrdProofWorker.h.

◆ fId

XrdOucString XrdProofWorker::fId

Definition at line 82 of file XrdProofWorker.h.

◆ fImage

XrdOucString XrdProofWorker::fImage

Definition at line 79 of file XrdProofWorker.h.

◆ fMsd

XrdOucString XrdProofWorker::fMsd

Definition at line 81 of file XrdProofWorker.h.

◆ fMutex

XrdSysRecMutex* XrdProofWorker::fMutex
private

Definition at line 90 of file XrdProofWorker.h.

◆ fNwrks

int XrdProofWorker::fNwrks

Definition at line 83 of file XrdProofWorker.h.

◆ fOrd

XrdOucString XrdProofWorker::fOrd

Definition at line 85 of file XrdProofWorker.h.

◆ fPerfIdx

int XrdProofWorker::fPerfIdx

Definition at line 78 of file XrdProofWorker.h.

◆ fPort

int XrdProofWorker::fPort

Definition at line 77 of file XrdProofWorker.h.

◆ fProofServs

std::list<XrdProofdProofServ *> XrdProofWorker::fProofServs

Definition at line 69 of file XrdProofWorker.h.

◆ fType

char XrdProofWorker::fType

Definition at line 74 of file XrdProofWorker.h.

◆ fUser

XrdOucString XrdProofWorker::fUser

Definition at line 75 of file XrdProofWorker.h.

◆ fWorkDir

XrdOucString XrdProofWorker::fWorkDir

Definition at line 80 of file XrdProofWorker.h.


The documentation for this class was generated from the following files: