![]() |
XRootD
|
#include <XrdXrootdJob.hh>
Public Member Functions | |
XrdXrootdJob (XrdScheduler *schp, XrdOucProg *pgm, const char *jname, int maxjobs=4) | |
~XrdXrootdJob () | |
int | Cancel (const char *jkey=0, XrdXrootdResponse *resp=0) |
void | DoIt () |
XrdOucTList * | List (void) |
int | Schedule (const char *jkey, const char **args, XrdXrootdResponse *resp, int Opts=0) |
![]() | |
XrdJob (const char *desc="") | |
virtual | ~XrdJob () |
Friends | |
class | XrdXrootdJob2Do |
Additional Inherited Members | |
![]() | |
const char * | Comment |
XrdJob * | NextJob |
Definition at line 51 of file XrdXrootdJob.hh.
XrdXrootdJob::XrdXrootdJob | ( | XrdScheduler * | schp, |
XrdOucProg * | pgm, | ||
const char * | jname, | ||
int | maxjobs = 4 |
||
) |
Definition at line 454 of file XrdXrootdJob.cc.
References XrdGlobal::Sched, and XrdScheduler::Schedule().
XrdXrootdJob::~XrdXrootdJob | ( | ) |
Definition at line 482 of file XrdXrootdJob.cc.
References XrdScheduler::Cancel(), XrdSysMutex::Lock(), XrdGlobal::Sched, and XrdSysMutex::UnLock().
int XrdXrootdJob::Cancel | ( | const char * | jkey = 0 , |
XrdXrootdResponse * | resp = 0 |
||
) |
Definition at line 494 of file XrdXrootdJob.cc.
References XrdOucTable< T >::Find(), XrdOucTable< T >::Item(), XrdSysMutex::Lock(), XrdOucTable< T >::Next(), and XrdSysMutex::UnLock().
|
virtual |
Implements XrdJob.
Definition at line 542 of file XrdXrootdJob.cc.
References XrdOucTable< T >::Item(), XrdSysMutex::Lock(), XrdOucTable< T >::Next(), XrdGlobal::Sched, XrdScheduler::Schedule(), and XrdSysMutex::UnLock().
XrdOucTList * XrdXrootdJob::List | ( | void | ) |
Definition at line 569 of file XrdXrootdJob.cc.
References XrdOucTable< T >::Item(), XrdSysMutex::Lock(), XrdOucTable< T >::Next(), and XrdSysMutex::UnLock().
int XrdXrootdJob::Schedule | ( | const char * | jkey, |
const char ** | args, | ||
XrdXrootdResponse * | resp, | ||
int | Opts = 0 |
||
) |
Definition at line 598 of file XrdXrootdJob.cc.
References XrdOucTable< T >::Alloc(), XrdOucTable< T >::Find(), XrdOucTable< T >::Insert(), XrdXrootdJob2Do::Job_Active, XrdXrootdJob2Do::Job_Done, JOB_Sync, JOB_Unique, kXR_ArgMissing, kXR_wait, kXR_waitresp, XrdSysMutex::Lock(), XrdMpx::Opts, XrdGlobal::Sched, XrdScheduler::Schedule(), XrdXrootdResponse::Send(), XrdXrootdJob2Do::Status, XrdSysMutex::UnLock(), and XrdXrootdJob2Do.
|
friend |
Definition at line 53 of file XrdXrootdJob.hh.
Referenced by Schedule().