Definition at line 55 of file XrdProofdPriorityMgr.h.
|
| | XrdProofdPriorityMgr (XrdProofdManager *mgr, XrdProtocol_Config *pi, XrdSysError *e) |
| | Constructor. More...
|
| |
| virtual | ~XrdProofdPriorityMgr () |
| |
| int | AddSession (const char *u, const char *g, int pid) |
| | Add to the active list a session with ID pid. More...
|
| |
| int | Config (bool rcf=0) |
| | Run configuration and parse the entered config directives. More...
|
| |
| int | DoDirective (XrdProofdDirective *d, char *val, XrdOucStream *cfg, bool rcf) |
| | Update the priorities of the active sessions. More...
|
| |
| bool | IsSchedOn () |
| |
| XrdProofdPipe * | Pipe () |
| |
| int | RemoveSession (int pid) |
| | Remove from the active list the session with ID pid. More...
|
| |
| void | SetGroupPriority (const char *grp, int priority) |
| | Change group priority. Used when a master pushes a priority to a worker. More...
|
| |
| int | SetNiceValues (int opt=0) |
| | Recalculate nice values taking into account all active users and their priorities. More...
|
| |
| int | SetProcessPriority (int pid, const char *usr, int &dp) |
| | Change priority of process pid belonging to user, if needed. More...
|
| |
| void | SetSchedOpt (int opt) |
| |
| | XrdProofdConfig (const char *cfg=0, XrdSysError *edest=0) |
| | Main constructor. More...
|
| |
| virtual | ~XrdProofdConfig () |
| |
| const char * | CfgFile () const |
| |
| virtual int | Config (bool rcf=0) |
| |
| virtual int | DoDirective (XrdProofdDirective *, char *, XrdOucStream *, bool) |
| |
| virtual void | RegisterDirectives () |
| |
| void | SetCfgEDest (const char *cfg, XrdSysError *edest) |
| | Set config file and error handler. More...
|
| |
#include <XrdProofdPriorityMgr.h>
◆ PMProtocol
◆ XrdProofdPriorityMgr()
◆ ~XrdProofdPriorityMgr()
| virtual XrdProofdPriorityMgr::~XrdProofdPriorityMgr |
( |
| ) |
|
|
inlinevirtual |
◆ AddSession()
| int XrdProofdPriorityMgr::AddSession |
( |
const char * |
u, |
|
|
const char * |
g, |
|
|
int |
pid |
|
) |
| |
Add to the active list a session with ID pid.
Check for duplications. Returns 1 if the entry existed already and it has been replaced; or 0.
Definition at line 514 of file XrdProofdPriorityMgr.cxx.
◆ Config()
| int XrdProofdPriorityMgr::Config |
( |
bool |
rcf = 0 | ) |
|
|
virtual |
◆ DoDirective()
| int XrdProofdPriorityMgr::DoDirective |
( |
XrdProofdDirective * |
d, |
|
|
char * |
val, |
|
|
XrdOucStream * |
cfg, |
|
|
bool |
rcf |
|
) |
| |
|
virtual |
◆ DoDirectivePriority()
| int XrdProofdPriorityMgr::DoDirectivePriority |
( |
char * |
val, |
|
|
XrdOucStream * |
cfg, |
|
|
bool |
|
|
) |
| |
|
private |
◆ DoDirectiveSchedOpt()
| int XrdProofdPriorityMgr::DoDirectiveSchedOpt |
( |
char * |
val, |
|
|
XrdOucStream * |
cfg, |
|
|
bool |
|
|
) |
| |
|
private |
◆ IsSchedOn()
| bool XrdProofdPriorityMgr::IsSchedOn |
( |
| ) |
|
|
inline |
◆ Pipe()
◆ RegisterDirectives()
| void XrdProofdPriorityMgr::RegisterDirectives |
( |
| ) |
|
|
privatevirtual |
◆ RemoveSession()
| int XrdProofdPriorityMgr::RemoveSession |
( |
int |
pid | ) |
|
Remove from the active list the session with ID pid.
Return -ENOENT if not found, or 0.
Definition at line 504 of file XrdProofdPriorityMgr.cxx.
◆ SetGroupPriority()
| void XrdProofdPriorityMgr::SetGroupPriority |
( |
const char * |
grp, |
|
|
int |
priority |
|
) |
| |
◆ SetNiceValues()
| int XrdProofdPriorityMgr::SetNiceValues |
( |
int |
opt = 0 | ) |
|
Recalculate nice values taking into account all active users and their priorities.
The type of sessions considered depend on 'opt': 0 all active sessions 1 master sessions 2 worker sessionsg21 Return 0 on success, -1 otherwise.
Definition at line 334 of file XrdProofdPriorityMgr.cxx.
◆ SetProcessPriority()
| int XrdProofdPriorityMgr::SetProcessPriority |
( |
int |
pid, |
|
|
const char * |
user, |
|
|
int & |
dp |
|
) |
| |
Change priority of process pid belonging to user, if needed.
Return 0 on success, -errno in case of error
Definition at line 534 of file XrdProofdPriorityMgr.cxx.
◆ SetSchedOpt()
| void XrdProofdPriorityMgr::SetSchedOpt |
( |
int |
opt | ) |
|
|
inline |
◆ fMgr
◆ fMutex
◆ fPipe
◆ fPriorities
◆ fPriorityMax
| int XrdProofdPriorityMgr::fPriorityMax |
|
private |
◆ fPriorityMin
| int XrdProofdPriorityMgr::fPriorityMin |
|
private |
◆ fSchedOpt
| int XrdProofdPriorityMgr::fSchedOpt |
|
private |
◆ fSessions
The documentation for this class was generated from the following files: