xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
Xrd
XrdJob.hh
Go to the documentation of this file.
1
#ifndef ___XRD_JOB_H___
2
#define ___XRD_JOB_H___
3
/******************************************************************************/
4
/* */
5
/* X r d J o b . h h */
6
/* */
7
/* (c) 2004 by the Board of Trustees of the Leland Stanford, Jr., University */
8
/* All Rights Reserved. See XrdInfo.cc for complete License Terms */
9
/* Produced by Andrew Hanushevsky for Stanford University under contract */
10
/* DE-AC03-76-SFO0515 with the Department of Energy */
11
/******************************************************************************/
12
13
// $Id$
14
15
#include <stdlib.h>
16
#include <string.h>
17
#include <strings.h>
18
#include <time.h>
19
20
// The XrdJob class is a super-class that is inherited by any class that needs
21
// to schedule work on behalf of itself. The XrdJob class is optimized for
22
// queue processing since that's where it spends a lot of time. This class
23
// should not be depedent on any other class.
24
25
class
XrdJob
26
{
27
friend
class
XrdScheduler
;
28
public
:
29
XrdJob
*
NextJob
;
// -> Next job in the queue (zero if last)
30
const
char
*
Comment
;
// -> Description of work for debugging (static!)
31
32
virtual
void
DoIt
() = 0;
33
34
XrdJob
(
const
char
*desc=
""
)
35
{
Comment
= desc;
NextJob
= 0;
SchedTime
= 0;}
36
virtual
~XrdJob
() {}
37
38
private
:
39
time_t
SchedTime
;
// -> Time job is to be scheduled
40
};
41
#endif
Generated by
1.8.1.2