XrdProofWorker Class Reference

#include <XrdProofWorker.h>

List of all members.

Public Member Functions

 XrdProofWorker (const char *str=0)
virtual ~XrdProofWorker ()
void Reset (const char *str)
const char * Export (const char *ord=0)
bool Matches (const char *host)
bool Matches (XrdProofWorker *wrk)
int GetNActiveSessions ()
int Active () const
void AddProofServ (XrdProofdProofServ *xps)
void RemoveProofServ (XrdProofdProofServ *xps)
void MergeProofServs (const XrdProofWorker &other)

Static Public Member Functions

static void Sort (std::list< XrdProofWorker * > *lst, bool(*f)(XrdProofWorker *&lhs, XrdProofWorker *&rhs))

Public Attributes

std::list< XrdProofdProofServ * > fProofServs
XrdOucString fExport
char fType
XrdOucString fUser
XrdOucString fHost
int fPort
int fPerfIdx
XrdOucString fImage
XrdOucString fWorkDir
XrdOucString fMsd
XrdOucString fId
bool fActive

Private Attributes

XrdSysRecMutexfMutex


Detailed Description

Definition at line 39 of file XrdProofWorker.h.


Constructor & Destructor Documentation

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

Definition at line 37 of file XrdProofWorker.cxx.

References fMutex, and Reset().

XrdProofWorker::~XrdProofWorker (  )  [virtual]

Definition at line 52 of file XrdProofWorker.cxx.

References fMutex, and SafeDelete.


Member Function Documentation

void XrdProofWorker::Reset ( const char *  str  ) 

Definition at line 60 of file XrdProofWorker.cxx.

References XrdOucString::beginswith(), XrdOucString::c_str(), fExport, fHost, fId, fImage, XrdOucString::find(), fMsd, fPerfIdx, fPort, fType, fUser, fWorkDir, XrdNetDNS::getHostName(), XrdOucString::replace(), s, SafeFree, STR_NPOS, strtol(), TRACE, XPD_DEF_PORT, and XPDLOC.

Referenced by XrdProofdNetMgr::DoDirectiveWorker(), XrdProofdNetMgr::ReadPROOFcfg(), and XrdProofWorker().

const char * XrdProofWorker::Export ( const char *  ord = 0  ) 

Definition at line 175 of file XrdProofWorker.cxx.

References XrdOucString::c_str(), fExport, fHost, fImage, fMsd, fPerfIdx, fPort, fType, fUser, fWorkDir, XrdOucString::length(), TRACE, and XPDLOC.

bool XrdProofWorker::Matches ( const char *  host  ) 

Definition at line 142 of file XrdProofWorker.cxx.

References fHost, and XrdOucString::matches().

Referenced by XrdProofdNetMgr::DoDirectiveWorker(), and XrdProofdNetMgr::ReadPROOFcfg().

bool XrdProofWorker::Matches ( XrdProofWorker wrk  ) 

Definition at line 151 of file XrdProofWorker.cxx.

References fHost, fPort, if(), and XPD_DEF_PORT.

int XrdProofWorker::GetNActiveSessions (  ) 

Definition at line 242 of file XrdProofWorker.cxx.

References fMutex, fProofServs, and kXPD_running.

Referenced by XrdProofSched::GetWorkers(), and XpdWrkComp().

void XrdProofWorker::Sort ( std::list< XrdProofWorker * > *  lst,
bool(*)(XrdProofWorker *&lhs, XrdProofWorker *&rhs)  f 
) [static]

Definition at line 276 of file XrdProofWorker.cxx.

References i, j, k, n, and XPDSWAP.

Referenced by XrdProofSched::GetWorkers().

int XrdProofWorker::Active (  )  const [inline]

Definition at line 57 of file XrdProofWorker.h.

References fMutex, and fProofServs.

void XrdProofWorker::AddProofServ ( XrdProofdProofServ xps  )  [inline]

Definition at line 61 of file XrdProofWorker.h.

References fMutex, and fProofServs.

void XrdProofWorker::RemoveProofServ ( XrdProofdProofServ xps  )  [inline]

Definition at line 65 of file XrdProofWorker.h.

References fMutex, and fProofServs.

void XrdProofWorker::MergeProofServs ( const XrdProofWorker other  ) 

Definition at line 262 of file XrdProofWorker.cxx.

References fMutex, and fProofServs.


Member Data Documentation

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

Definition at line 72 of file XrdProofWorker.h.

Referenced by Active(), AddProofServ(), GetNActiveSessions(), MergeProofServs(), and RemoveProofServ().

XrdOucString XrdProofWorker::fExport

Definition at line 76 of file XrdProofWorker.h.

Referenced by Export(), and Reset().

char XrdProofWorker::fType

Definition at line 77 of file XrdProofWorker.h.

Referenced by Export(), and Reset().

XrdOucString XrdProofWorker::fUser

Definition at line 78 of file XrdProofWorker.h.

Referenced by Export(), and Reset().

XrdOucString XrdProofWorker::fHost

Definition at line 79 of file XrdProofWorker.h.

Referenced by XrdProofdNetMgr::DoDirectiveWorker(), Export(), Matches(), XrdProofdNetMgr::ReadPROOFcfg(), and Reset().

int XrdProofWorker::fPort

Definition at line 80 of file XrdProofWorker.h.

Referenced by Export(), Matches(), XrdProofdNetMgr::ReadPROOFcfg(), and Reset().

int XrdProofWorker::fPerfIdx

Definition at line 81 of file XrdProofWorker.h.

Referenced by Export(), and Reset().

XrdOucString XrdProofWorker::fImage

Definition at line 82 of file XrdProofWorker.h.

Referenced by Export(), and Reset().

XrdOucString XrdProofWorker::fWorkDir

Definition at line 83 of file XrdProofWorker.h.

Referenced by Export(), and Reset().

XrdOucString XrdProofWorker::fMsd

Definition at line 84 of file XrdProofWorker.h.

Referenced by Export(), and Reset().

XrdOucString XrdProofWorker::fId

Definition at line 85 of file XrdProofWorker.h.

Referenced by Reset().

bool XrdProofWorker::fActive

Definition at line 87 of file XrdProofWorker.h.

XrdSysRecMutex* XrdProofWorker::fMutex [private]

Definition at line 90 of file XrdProofWorker.h.

Referenced by Active(), AddProofServ(), GetNActiveSessions(), MergeProofServs(), RemoveProofServ(), XrdProofWorker(), and ~XrdProofWorker().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:50:43 2011 for ROOT_528-00b_version by  doxygen 1.5.1