12 #ifndef ROOT_XrdProofSched 13 #define ROOT_XrdProofSched 46 #include "XrdOuc/XrdOucHash.hh" 47 #include "XrdOuc/XrdOucString.hh" 53 #define kXPSMXNMLEN 17 79 std::list<XrdProofWorker *> *,
98 const char *
Name()
const {
return (
const char *) &
fName[0]; }
101 char *val, XrdOucStream *cfg,
bool rcf);
103 virtual void DumpQueues(
const char *prefix = 0);
110 virtual int Config(
bool rcf = 0);
112 char *val, XrdOucStream *cfg,
bool rcf);
int CheckFrequency() const
virtual int MaxSessions() const
XrdProofGroupMgr * fGrpMgr
virtual int ProcessDirective(XrdProofdDirective *d, char *val, XrdOucStream *cfg, bool rcf)
Update the priorities of the active sessions.
virtual int ExportInfo(XrdOucString &)
Fill sbuf with some info about our current status.
virtual int GetWorkers(XrdProofdProofServ *xps, std::list< XrdProofWorker *> *, const char *)
Get a list of workers that can be used by session 'xps'.
virtual void DumpQueues(const char *prefix=0)
Dump the content of the waiting sessions queue.
const char * Name() const
virtual int DoDirectiveSchedParam(char *, XrdOucStream *, bool)
Process 'schedparam' directive.
virtual int Config(bool rcf=0)
Configure this instance using the content of file 'cfn'.
virtual int Enqueue(XrdProofdProofServ *xps, XrdProofQuery *query)
Queue a query in the session; if this is the first querym enqueue also the session.
virtual int DoDirective(XrdProofdDirective *d, char *val, XrdOucStream *cfg, bool rcf)
Update the priorities of the active sessions.
std::list< XrdProofdProofServ * > fQueue
virtual void ResetParameters()
Reset values for the configurable parameters.
virtual int UpdateSession(XrdProofdProofServ *, int=0, void *=0)
virtual int UpdateProperties()
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
XrdOucHash< XrdProofdDirective > fConfigDirectives
virtual void RegisterDirectives()
Register directives for configuration.
virtual XrdProofdProofServ * FirstSession()
Get first valid session.
virtual int DoDirectiveResource(char *, XrdOucStream *, bool)
Process 'resource' directive.
virtual int Reschedule()
Consider starting some query from the queue.
XrdProofSched(const char *name, XrdProofdManager *mgr, XrdProofGroupMgr *grpmgr, const char *cfn, XrdSysError *e=0)
Constructor.
virtual int GetNumWorkers(XrdProofdProofServ *xps)
Calculate the number of workers to be used given the state of the cluster.