XRootD
XrdCmsJob.hh
Go to the documentation of this file.
1
#ifndef __CMS_JOB_H__
2
#define __CMS_JOB_H__
3
/******************************************************************************/
4
/* */
5
/* X r d C m s J o b . h h */
6
/* */
7
/* */
8
/* (c) 2007 by the Board of Trustees of the Leland Stanford, Jr., University */
9
/* All Rights Reserved */
10
/* Produced by Andrew Hanushevsky for Stanford University under contract */
11
/* DE-AC02-76-SFO0515 with the Department of Energy */
12
/* */
13
/* This file is part of the XRootD software suite. */
14
/* */
15
/* XRootD is free software: you can redistribute it and/or modify it under */
16
/* the terms of the GNU Lesser General Public License as published by the */
17
/* Free Software Foundation, either version 3 of the License, or (at your */
18
/* option) any later version. */
19
/* */
20
/* XRootD is distributed in the hope that it will be useful, but WITHOUT */
21
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
22
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */
23
/* License for more details. */
24
/* */
25
/* You should have received a copy of the GNU Lesser General Public License */
26
/* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */
27
/* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */
28
/* */
29
/* The copyright holder's institutional names and contributor's names may not */
30
/* be used to endorse or promote products derived from this software without */
31
/* specific prior written permission of the institution or contributor. */
32
/******************************************************************************/
33
34
#include "
XProtocol/YProtocol.hh
"
35
36
#include "
Xrd/XrdJob.hh
"
37
#include "
XrdSys/XrdSysPthread.hh
"
38
39
class
XrdCmsProtocol
;
40
class
XrdCmsRRData
;
41
42
class
XrdCmsJob
:
public
XrdJob
43
{
44
public
:
45
46
static
XrdCmsJob
*
Alloc
(
XrdCmsProtocol
*,
XrdCmsRRData
*);
47
48
void
DoIt
();
49
50
void
Recycle
();
51
52
XrdCmsJob
() :
XrdJob
(
"cms request job"
), JobLink(0) {}
53
~XrdCmsJob
() {}
54
55
private
:
56
57
static
XrdSysMutex
JobMutex;
58
static
XrdCmsJob
*JobStack;
59
XrdCmsJob
*JobLink;
60
61
XrdCmsProtocol
*theProto;
62
XrdCmsRRData
*theData;
63
};
64
#endif
XrdJob.hh
XrdSysPthread.hh
YProtocol.hh
XrdCmsJob
Definition:
XrdCmsJob.hh:43
XrdCmsJob::~XrdCmsJob
~XrdCmsJob()
Definition:
XrdCmsJob.hh:53
XrdCmsJob::Recycle
void Recycle()
Definition:
XrdCmsJob.cc:111
XrdCmsJob::XrdCmsJob
XrdCmsJob()
Definition:
XrdCmsJob.hh:52
XrdCmsJob::Alloc
static XrdCmsJob * Alloc(XrdCmsProtocol *, XrdCmsRRData *)
Definition:
XrdCmsJob.cc:64
XrdCmsJob::DoIt
void DoIt()
Definition:
XrdCmsJob.cc:93
XrdCmsProtocol
Definition:
XrdCmsProtocol.hh:45
XrdCmsRRData
Definition:
XrdCmsRRData.hh:52
XrdJob
Definition:
XrdJob.hh:43
XrdSysMutex
Definition:
XrdSysPthread.hh:165
XrdCms
XrdCmsJob.hh
Generated by
1.9.1