#include <XrdProofGroup.h>
Public Member Functions | |
| XrdProofGroupMgr (const char *fn=0) | |
| ~XrdProofGroupMgr () | |
| int | Config (const char *fn) |
| int | ReadPriorities () |
| int | SetEffectiveFractions (bool optprio) |
| XrdProofGroup * | Apply (int(*f)(const char *, XrdProofGroup *, void *), void *arg) |
| XrdOucString | Export (const char *grp) |
| int | Num () |
| void | Print (const char *grp) |
| XrdProofGroup * | GetGroup (const char *grp) |
| XrdProofGroup * | GetUserGroup (const char *usr, const char *grp=0) |
| const char * | GetCfgFile () const |
| void | ResetIter () |
| XrdProofGroup * | Next () |
Private Member Functions | |
| int | ParseInfoFrom (const char *fn) |
Private Attributes | |
| XrdOucString | fIterator |
| XrdOucHash< XrdProofGroup > | fGroups |
| XrdSysRecMutex | fMutex |
| XrdProofdFile | fCfgFile |
| XrdProofdFile | fPriorityFile |
Definition at line 97 of file XrdProofGroup.h.
| XrdProofGroupMgr::XrdProofGroupMgr | ( | const char * | fn = 0 |
) |
| XrdProofGroupMgr::~XrdProofGroupMgr | ( | ) | [inline] |
Definition at line 110 of file XrdProofGroup.h.
| int XrdProofGroupMgr::ParseInfoFrom | ( | const char * | fn | ) | [private] |
Definition at line 380 of file XrdProofGroup.cxx.
References XrdOucHash< T >::Add(), XrdOucString::c_str(), XrdProofdAux::Expand(), fclose(), fGroups, XrdOucHash< T >::Find(), XrdProofdFile::fMtime, XrdProofdFile::fName, fopen, fPriorityFile, g, XrdOucString::length(), name, TRACE, and XPDLOC.
Referenced by Config().
| int XrdProofGroupMgr::Config | ( | const char * | fn | ) |
Definition at line 321 of file XrdProofGroup.cxx.
References XrdOucHash< T >::Add(), XrdOucString::c_str(), XrdProofdAux::Expand(), fCfgFile, fGroups, XrdProofdFile::fMtime, fMutex, XrdProofdFile::fName, XrdOucHash< T >::Num(), ParseInfoFrom(), Print(), XrdOucHash< T >::Purge(), stat, TRACE, and XPDLOC.
Referenced by XrdProofdManager::DoDirectiveGroupfile(), XrdProofdManagerCron(), and XrdProofGroupMgr().
| int XrdProofGroupMgr::ReadPriorities | ( | ) |
Definition at line 503 of file XrdProofGroup.cxx.
References XrdOucString::c_str(), fGroups, XrdOucHash< T >::Find(), XrdProofdFile::fMtime, fMutex, XrdProofdFile::fName, fopen, fPriorityFile, g, stat, STR_NPOS, TRACE, value, and XPDLOC.
| int XrdProofGroupMgr::SetEffectiveFractions | ( | bool | optprio | ) |
Definition at line 641 of file XrdProofGroup.cxx.
References Apply(), XpdGroupEff_t::cut, GetGroupsInfo(), XpdGroupGlobal_t::nofrac, XpdGroupEff_t::norm, XpdGroupEff_t::opt, ResetIter(), SetGroupFracEff(), and XpdGroupGlobal_t::totfrac.
Referenced by XrdProofdPriorityMgr::SetNiceValues().
| XrdProofGroup * XrdProofGroupMgr::Apply | ( | int(*)(const char *, XrdProofGroup *, void *) | f, | |
| void * | arg | |||
| ) |
Definition at line 210 of file XrdProofGroup.cxx.
References XrdOucHash< T >::Apply(), fGroups, and XrdOucHash< T >::Num().
Referenced by SetEffectiveFractions().
| XrdOucString XrdProofGroupMgr::Export | ( | const char * | grp | ) |
Definition at line 224 of file XrdProofGroup.cxx.
References XrdOucHash< T >::Apply(), ExportGroup(), fGroups, XrdOucHash< T >::Find(), fMutex, and g.
| int XrdProofGroupMgr::Num | ( | void | ) | [inline] |
Definition at line 120 of file XrdProofGroup.h.
References fGroups, and XrdOucHash< T >::Num().
Referenced by XrdProofdPriorityMgr::Config(), XrdProofdClientMgr::Config(), XrdProofdClientMgr::GetClient(), XrdProofdClientMgr::Login(), and XrdProofdPriorityMgr::SetNiceValues().
| void XrdProofGroupMgr::Print | ( | const char * | grp | ) |
Definition at line 243 of file XrdProofGroup.cxx.
References XrdOucHash< T >::Apply(), fGroups, XrdOucHash< T >::Find(), fMutex, g, and PrintGroup().
Referenced by XrdProofdManager::Config(), and Config().
| XrdProofGroup * XrdProofGroupMgr::GetGroup | ( | const char * | grp | ) |
Definition at line 260 of file XrdProofGroup.cxx.
References fGroups, XrdOucHash< T >::Find(), and fMutex.
Referenced by BroadcastPriority(), CreateActiveList(), XrdProofSched::GetNumWorkers(), XrdProofdClientMgr::Login(), and XrdProofdPriorityMgr::SetGroupPriority().
| XrdProofGroup * XrdProofGroupMgr::GetUserGroup | ( | const char * | usr, | |
| const char * | grp = 0 | |||
| ) |
Definition at line 274 of file XrdProofGroup.cxx.
References XrdOucHash< T >::Apply(), CheckUser(), fGroups, XrdOucHash< T >::Find(), fMutex, and g.
Referenced by XrdProofdClientMgr::Config(), XrdProofdClientMgr::GetClient(), XrdProofdClientMgr::Login(), and XrdProofdAdmin::SetROOTVersion().
| const char* XrdProofGroupMgr::GetCfgFile | ( | ) | const [inline] |
Definition at line 126 of file XrdProofGroup.h.
References XrdOucString::c_str(), fCfgFile, and XrdProofdFile::fName.
Referenced by XrdProofdProofServMgr::SetProofServEnv(), and XrdProofdManagerCron().
| void XrdProofGroupMgr::ResetIter | ( | ) | [inline] |
Definition at line 129 of file XrdProofGroup.h.
References fIterator.
Referenced by SetEffectiveFractions(), and XrdProofGroupMgr().
| XrdProofGroup * XrdProofGroupMgr::Next | ( | ) |
Definition at line 307 of file XrdProofGroup.cxx.
References XrdOucHash< T >::Apply(), AuxFunc(), fGroups, and fIterator.
XrdOucString XrdProofGroupMgr::fIterator [private] |
XrdOucHash<XrdProofGroup> XrdProofGroupMgr::fGroups [private] |
Definition at line 100 of file XrdProofGroup.h.
Referenced by Apply(), Config(), Export(), GetGroup(), GetUserGroup(), Next(), Num(), ParseInfoFrom(), Print(), and ReadPriorities().
XrdSysRecMutex XrdProofGroupMgr::fMutex [private] |
Definition at line 101 of file XrdProofGroup.h.
Referenced by Config(), Export(), GetGroup(), GetUserGroup(), Print(), and ReadPriorities().
XrdProofdFile XrdProofGroupMgr::fCfgFile [private] |
XrdProofdFile XrdProofGroupMgr::fPriorityFile [private] |
Definition at line 104 of file XrdProofGroup.h.
Referenced by ParseInfoFrom(), and ReadPriorities().
1.5.1