|
ROOT 6.16/01 Reference Guide |
Definition at line 62 of file XrdProofSched.h.
Public Types | |
| enum | SchedProtocol { kReschedule = 0 } |
Public Member Functions | |
| XrdProofSched (const char *name, XrdProofdManager *mgr, XrdProofGroupMgr *grpmgr, const char *cfn, XrdSysError *e=0) | |
| Constructor. More... | |
| virtual | ~XrdProofSched () |
| int | CheckFrequency () const |
| virtual int | Config (bool rcf=0) |
| Configure this instance using the content of file 'cfn'. More... | |
| virtual int | DoDirective (XrdProofdDirective *d, char *val, XrdOucStream *cfg, bool rcf) |
| Update the priorities of the active sessions. More... | |
| virtual void | DumpQueues (const char *prefix=0) |
| Dump the content of the waiting sessions queue. More... | |
| virtual int | Enqueue (XrdProofdProofServ *xps, XrdProofQuery *query) |
| Queue a query in the session; if this is the first querym enqueue also the session. More... | |
| virtual int | ExportInfo (XrdOucString &) |
| Fill sbuf with some info about our current status. More... | |
| virtual XrdProofdProofServ * | FirstSession () |
| Get first valid session. More... | |
| virtual int | GetWorkers (XrdProofdProofServ *xps, std::list< XrdProofWorker * > *, const char *) |
| Get a list of workers that can be used by session 'xps'. More... | |
| virtual bool | IsValid () |
| virtual int | MaxSessions () const |
| const char * | Name () const |
| XrdProofdPipe * | Pipe () |
| virtual int | ProcessDirective (XrdProofdDirective *d, char *val, XrdOucStream *cfg, bool rcf) |
| Update the priorities of the active sessions. More... | |
| virtual int | Reschedule () |
| Consider starting some query from the queue. More... | |
| virtual int | UpdateProperties () |
| virtual int | UpdateSession (XrdProofdProofServ *, int=0, void *=0) |
Public Member Functions inherited from XrdProofdConfig | |
| 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... | |
Protected Member Functions | |
| virtual int | DoDirectiveResource (char *, XrdOucStream *, bool) |
| Process 'resource' directive. More... | |
| virtual int | DoDirectiveSchedParam (char *, XrdOucStream *, bool) |
| Process 'schedparam' directive. More... | |
| virtual int | GetNumWorkers (XrdProofdProofServ *xps) |
| Calculate the number of workers to be used given the state of the cluster. More... | |
| virtual void | RegisterDirectives () |
| Register directives for configuration. More... | |
| virtual void | ResetParameters () |
| Reset values for the configurable parameters. More... | |
Protected Member Functions inherited from XrdProofdConfig | |
| int | ParseFile (bool rcf=false) |
| Parse config file for the registered directives. More... | |
| bool | ReadFile (bool update=true) |
| Return true if the file has never been read or did change since last reading, false otherwise. More... | |
| void | Register (const char *dname, XrdProofdDirective *d) |
Protected Attributes | |
| int | fCheckFrequency |
| XrdOucHash< XrdProofdDirective > | fConfigDirectives |
| XrdSysError * | fEDest |
| XrdProofGroupMgr * | fGrpMgr |
| int | fMaxRunning |
| int | fMaxSessions |
| XrdProofdManager * | fMgr |
| int | fMinForQuery |
| char | fName [kXPSMXNMLEN] |
| int | fNextWrk |
| double | fNodesFraction |
| int | fOptWrksPerUnit |
| XrdProofdPipe | fPipe |
| std::list< XrdProofdProofServ * > | fQueue |
| bool | fUseFIFO |
| bool | fValid |
| int | fWorkerMax |
| int | fWorkerSel |
Protected Attributes inherited from XrdProofdConfig | |
| XrdSysError * | fEDest |
#include <XrdProofSched.h>
| Enumerator | |
|---|---|
| kReschedule | |
Definition at line 114 of file XrdProofSched.h.
| XrdProofSched::XrdProofSched | ( | const char * | name, |
| XrdProofdManager * | mgr, | ||
| XrdProofGroupMgr * | grpmgr, | ||
| const char * | cfn, | ||
| XrdSysError * | e = 0 |
||
| ) |
Constructor.
Definition at line 166 of file XrdProofSched.cxx.
|
inlinevirtual |
Definition at line 68 of file XrdProofSched.h.
|
inline |
Definition at line 107 of file XrdProofSched.h.
|
virtual |
Configure this instance using the content of file 'cfn'.
Return 0 on success, -1 in case of failure (file does not exists or containing incoherent information).
Reimplemented from XrdProofdConfig.
Definition at line 238 of file XrdProofSched.cxx.
|
virtual |
Update the priorities of the active sessions.
Reimplemented from XrdProofdConfig.
Definition at line 199 of file XrdProofSched.cxx.
|
protectedvirtual |
Process 'resource' directive.
Definition at line 882 of file XrdProofSched.cxx.
|
protectedvirtual |
Process 'schedparam' directive.
Definition at line 813 of file XrdProofSched.cxx.
|
virtual |
Dump the content of the waiting sessions queue.
Definition at line 301 of file XrdProofSched.cxx.
|
virtual |
Queue a query in the session; if this is the first querym enqueue also the session.
Definition at line 278 of file XrdProofSched.cxx.
|
virtual |
Fill sbuf with some info about our current status.
Definition at line 760 of file XrdProofSched.cxx.
|
virtual |
Get first valid session.
The dataset information can be used to assign workers.
Definition at line 322 of file XrdProofSched.cxx.
|
protectedvirtual |
Calculate the number of workers to be used given the state of the cluster.
Definition at line 341 of file XrdProofSched.cxx.
|
virtual |
Get a list of workers that can be used by session 'xps'.
The return code is: -1 Some failure occured; cannot continue 0 A new list has been assigned to the session 'xps' and returned in 'wrks' 1 The list currently assigned to the session is the one to be used 2 No worker could be assigned now; session should be queued
Definition at line 397 of file XrdProofSched.cxx.
|
inlinevirtual |
Definition at line 96 of file XrdProofSched.h.
|
inlinevirtual |
Definition at line 89 of file XrdProofSched.h.
|
inline |
Definition at line 98 of file XrdProofSched.h.
|
inline |
Definition at line 108 of file XrdProofSched.h.
|
virtual |
Update the priorities of the active sessions.
Definition at line 792 of file XrdProofSched.cxx.
|
protectedvirtual |
Register directives for configuration.
Reimplemented from XrdProofdConfig.
Definition at line 190 of file XrdProofSched.cxx.
|
virtual |
Consider starting some query from the queue.
to be called after some resources are free (e.g. by a finished query) This method is doing the full transaction of finding the session to resume, assigning it workers and sending a resume message. In this way there is not possibility of interference with other GetWorkers return 0 in case of success and -1 in case of an error
Definition at line 706 of file XrdProofSched.cxx.
|
protectedvirtual |
Reset values for the configurable parameters.
Definition at line 221 of file XrdProofSched.cxx.
|
inlinevirtual |
Definition at line 92 of file XrdProofSched.h.
|
inlinevirtual |
Definition at line 86 of file XrdProofSched.h.
|
protected |
Definition at line 136 of file XrdProofSched.h.
|
protected |
Definition at line 134 of file XrdProofSched.h.
|
protected |
Definition at line 139 of file XrdProofSched.h.
|
protected |
Definition at line 120 of file XrdProofSched.h.
|
protected |
Definition at line 123 of file XrdProofSched.h.
|
protected |
Definition at line 122 of file XrdProofSched.h.
|
protected |
Definition at line 119 of file XrdProofSched.h.
|
protected |
Definition at line 128 of file XrdProofSched.h.
|
protected |
Definition at line 117 of file XrdProofSched.h.
|
protected |
Definition at line 126 of file XrdProofSched.h.
|
protected |
Definition at line 129 of file XrdProofSched.h.
|
protected |
Definition at line 127 of file XrdProofSched.h.
|
protected |
Definition at line 137 of file XrdProofSched.h.
|
protected |
Definition at line 132 of file XrdProofSched.h.
|
protected |
Definition at line 131 of file XrdProofSched.h.
|
protected |
Definition at line 118 of file XrdProofSched.h.
|
protected |
Definition at line 124 of file XrdProofSched.h.
|
protected |
Definition at line 125 of file XrdProofSched.h.