xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdFrc
XrdFrcRequest.hh
Go to the documentation of this file.
1
#ifndef __FRCREQUEST_H__
2
#define __FRCREQUEST_H__
3
/******************************************************************************/
4
/* */
5
/* X r d F r c R e q u e s t . h h */
6
/* */
7
/* (c) 2010 by the Board of Trustees of the Leland Stanford, Jr., University */
8
/* All Rights Reserved */
9
/* Produced by Andrew Hanushevsky for Stanford University under contract */
10
/* DE-AC02-76-SFO0515 with the Department of Energy */
11
/******************************************************************************/
12
13
class
XrdFrcRequest
14
{
15
public
:
16
17
char
LFN
[3072];
// Logical File Name ('\0' optional opaque)
18
char
User
[256];
// User trace identifier
19
char
ID
[40];
// Request ID
20
char
Notify
[512];
// Notification path
21
char
Reserved
[88];
22
char
iName
[32];
// Instance name
23
char
csValue
[64];
// Checksum value (dependent on csType).
24
long
long
addTOD
;
// Time added to queue
25
int
This
;
// Offset to this request
26
int
Next
;
// Offset to next request
27
int
Options
;
// Processing options (see below)
28
short
LFO
;
// Offset to lfn in url if LFN is a url (o/w 0)
29
short
Opaque
;
// Offset to '?' in LFN if exists, 0 o/w
30
char
Reserved2
;
31
char
csType
;
// Checksum type
32
char
OPc
;
// Original Operation Request code (debugging)
33
char
Prty
;
// Request priority
34
35
// Flags set in options
36
//
37
static
const
int
msgFail
= 0x00000001;
38
static
const
int
msgSucc
= 0x00000002;
39
static
const
int
makeRW
= 0x00000004;
40
static
const
int
Migrate
= 0x00000010;
41
static
const
int
Purge
= 0x00000020;
42
static
const
int
Register
= 0x00000040;
43
44
// Checksum types (not all of which are supported)
45
//
46
static
const
int
csNone
= 0;
47
static
const
int
csSHA1
= 1;
48
static
const
int
csSHA2
= 2;
49
static
const
int
csSHA3
= 3;
50
static
const
int
csAdler32
= 4;
51
static
const
int
csMD5
= 5;
52
static
const
int
csCRC32
= 6;
53
54
// These define valid priorities
55
//
56
static
const
int
maxPrty
= 2;
57
static
const
int
maxPQE
= 3;
58
59
// The following define what can be listed from the queue
60
//
61
enum
Item
{
getOBJ
= 0,
getLFN
,
getOBJCGI
,
getLFNCGI
,
getMODE
,
getNOTE
,
getOP
,
62
getPRTY
,
getQWT
,
getRID
,
getTOD
,
getUSER
,
getLast
};
63
64
// These define possible queues along with the "nil" queue
65
//
66
static
const
int
stgQ
= 0;
// Stage queue
67
static
const
int
migQ
= 1;
// Migrate queue
68
static
const
int
getQ
= 2;
// Copy in queue
69
static
const
int
putQ
= 3;
// Copy out queue
70
static
const
int
nilQ
= 4;
// Empty queue
71
static
const
int
numQ
= 5;
72
static
const
int
outQ
= 1;
// Used as a mask only
73
};
74
#endif
Generated by
1.8.1.2