#include <XrdProofWorker.h>
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 | |
| XrdSysRecMutex * | fMutex |
Definition at line 39 of file XrdProofWorker.h.
| XrdProofWorker::XrdProofWorker | ( | const char * | str = 0 |
) |
| XrdProofWorker::~XrdProofWorker | ( | ) | [virtual] |
| 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 | ) |
| 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] |
| void XrdProofWorker::AddProofServ | ( | XrdProofdProofServ * | xps | ) | [inline] |
| void XrdProofWorker::RemoveProofServ | ( | XrdProofdProofServ * | xps | ) | [inline] |
| void XrdProofWorker::MergeProofServs | ( | const XrdProofWorker & | other | ) |
Definition at line 72 of file XrdProofWorker.h.
Referenced by Active(), AddProofServ(), GetNActiveSessions(), MergeProofServs(), and RemoveProofServ().
Definition at line 79 of file XrdProofWorker.h.
Referenced by XrdProofdNetMgr::DoDirectiveWorker(), Export(), Matches(), XrdProofdNetMgr::ReadPROOFcfg(), and Reset().
Definition at line 80 of file XrdProofWorker.h.
Referenced by Export(), Matches(), XrdProofdNetMgr::ReadPROOFcfg(), and Reset().
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().
1.5.1