xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdFrm
XrdFrmTransfer.hh
Go to the documentation of this file.
1
#ifndef __FRMTRANSFER_H__
2
#define __FRMTRANSFER_H__
3
/******************************************************************************/
4
/* */
5
/* X r d F r m T r a n s f e r . 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
#include "
XrdOuc/XrdOucHash.hh
"
14
#include "
XrdSys/XrdSysPthread.hh
"
15
16
struct
XrdFrmTranArg
;
17
struct
XrdFrmTranChk
;
18
class
XrdFrmXfrJob
;
19
class
XrdOucProg
;
20
21
class
XrdFrmTransfer
22
{
23
public
:
24
25
static
26
const
char
*
checkFF
(
const
char
*
Path
);
27
28
static
int
Init
();
29
30
void
Start
();
31
32
XrdFrmTransfer
();
33
~XrdFrmTransfer
() {}
34
35
private
:
36
const
char
*
Fetch
();
37
const
char
*
FetchDone
(
char
*lfnpath,
struct
stat
&Stat,
int
&rc);
38
const
char
*
ffCheck
();
39
void
ffMake
(
int
nofile=0);
40
int
SetupCmd
(
XrdFrmTranArg
*aP);
41
int
TrackDC
(
char
*Lfn,
char
*Mdp,
char
*Rfn);
42
int
TrackDC
(
char
*Rfn);
43
const
char
*
Throw
();
44
void
Throwaway
();
45
void
ThrowDone
(
XrdFrmTranChk
*cP, time_t endTime);
46
const
char
*
ThrowOK
(
XrdFrmTranChk
*cP);
47
48
static
XrdSysMutex
pMutex
;
49
static
XrdOucHash<char>
pTab
;
50
51
XrdOucProg
*
xfrCmd
[4];
52
XrdFrmXfrJob
*
xfrP
;
53
char
cmdBuff
[4096];
54
};
55
#endif
Generated by
1.8.1.2