xrootd
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 
22 {
23 public:
24 
25 static
26 const char *checkFF(const char *Path);
27 
28 static int Init();
29 
30  void Start();
31 
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 
50 
53 char cmdBuff[4096];
54 };
55 #endif