#include <XrdProofGroup.h>
Public Member Functions | |
~XrdProofGroup () | |
int | Active (const char *usr=0) |
bool | HasMember (const char *usr) |
const char * | Members () const |
const char * | Name () const |
int | Size () const |
int | Fraction () const |
float | FracEff () const |
float | Priority () const |
void | SetFracEff (float f) |
void | SetFraction (int f) |
void | SetPriority (float p) |
void | Count (const char *usr, int n=1) |
void | Print () |
Private Member Functions | |
void | AddMember (const char *usr) |
XrdProofGroup (const char *n, const char *m=0) | |
Private Attributes | |
XrdOucString | fName |
XrdOucString | fMembers |
int | fSize |
XrdOucHash< XrdProofGroupMember > | fActives |
float | fPriority |
int | fFraction |
float | fFracEff |
XrdSysRecMutex * | fMutex |
Friends | |
class | XrdProofGroupMgr |
Definition at line 52 of file XrdProofGroup.h.
XrdProofGroup::XrdProofGroup | ( | const char * | n, | |
const char * | m = 0 | |||
) | [private] |
XrdProofGroup::~XrdProofGroup | ( | ) |
void XrdProofGroup::AddMember | ( | const char * | usr | ) | [inline, private] |
int XrdProofGroup::Active | ( | const char * | usr = 0 |
) |
Definition at line 168 of file XrdProofGroup.cxx.
References fActives, XrdOucHash< T >::Find(), fMutex, m, and XrdOucHash< T >::Num().
bool XrdProofGroup::HasMember | ( | const char * | usr | ) |
Definition at line 187 of file XrdProofGroup.cxx.
References XrdOucString::find(), fMembers, fMutex, STR_NPOS, and u.
const char* XrdProofGroup::Members | ( | ) | const [inline] |
Definition at line 78 of file XrdProofGroup.h.
References XrdOucString::c_str(), fMembers, and fMutex.
const char* XrdProofGroup::Name | ( | ) | const [inline] |
int XrdProofGroup::Size | ( | ) | const [inline] |
int XrdProofGroup::Fraction | ( | ) | const [inline] |
float XrdProofGroup::FracEff | ( | ) | const [inline] |
float XrdProofGroup::Priority | ( | ) | const [inline] |
Definition at line 84 of file XrdProofGroup.h.
References fMutex, and fPriority.
Referenced by XrdProofSched::GetNumWorkers().
void XrdProofGroup::SetFracEff | ( | float | f | ) | [inline] |
void XrdProofGroup::SetFraction | ( | int | f | ) | [inline] |
void XrdProofGroup::SetPriority | ( | float | p | ) | [inline] |
void XrdProofGroup::Count | ( | const char * | usr, | |
int | n = 1 | |||
) |
Definition at line 139 of file XrdProofGroup.cxx.
References XrdOucHash< T >::Add(), XrdOucHash< T >::Del(), fActives, XrdOucHash< T >::Find(), fMutex, and m.
void XrdProofGroup::Print | ( | ) |
friend class XrdProofGroupMgr [friend] |
Definition at line 53 of file XrdProofGroup.h.
XrdOucString XrdProofGroup::fName [private] |
XrdOucString XrdProofGroup::fMembers [private] |
Definition at line 57 of file XrdProofGroup.h.
Referenced by AddMember(), HasMember(), Members(), and Print().
int XrdProofGroup::fSize [private] |
Definition at line 58 of file XrdProofGroup.h.
Referenced by AddMember(), Print(), Size(), and XrdProofGroup().
XrdOucHash<XrdProofGroupMember> XrdProofGroup::fActives [private] |
float XrdProofGroup::fPriority [private] |
Definition at line 62 of file XrdProofGroup.h.
Referenced by Print(), Priority(), SetPriority(), and XrdProofGroup().
int XrdProofGroup::fFraction [private] |
Definition at line 63 of file XrdProofGroup.h.
Referenced by Fraction(), Print(), SetFraction(), and XrdProofGroup().
float XrdProofGroup::fFracEff [private] |
Definition at line 64 of file XrdProofGroup.h.
Referenced by FracEff(), SetFracEff(), and XrdProofGroup().
XrdSysRecMutex* XrdProofGroup::fMutex [private] |
Definition at line 66 of file XrdProofGroup.h.
Referenced by Active(), AddMember(), Count(), FracEff(), Fraction(), HasMember(), Members(), Name(), Print(), Priority(), SetFracEff(), SetFraction(), SetPriority(), Size(), XrdProofGroup(), and ~XrdProofGroup().