xrootd
XrdCnsLogClient.hh
Go to the documentation of this file.
1 #ifndef __XRDCNSLogClient_h_
2 #define __XRDCNSLogClient_h_
3 /******************************************************************************/
4 /* */
5 /* X r d C n s L o g C l i e n t . h h */
6 /* */
7 /* (c) 2009 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 // $Id$
14 
15 #include <sys/param.h>
16 
17 #include "XrdSys/XrdSysPthread.hh"
18 
19 class XrdClient;
20 class XrdClientAdmin;
21 class XrdCnsLogFile;
22 class XrdCnsLogRec;
23 class XrdCnsXref;
24 class XrdOucTList;
25 
27 {
28 public:
29 
30 int Activate(XrdCnsLogFile *basefile);
31 
32 int Init();
33 
34 int Run(int Always=1);
35 
36 int Start();
37 
40 
41 private:
43 
44 int Archive(XrdCnsLogFile *lfP);
45 int do_Create(XrdCnsLogRec *lrP, const char *lfn=0);
46 int do_Mkdir(XrdCnsLogRec *lrP);
47 int do_Mv(XrdCnsLogRec *lrP);
48 int do_Rm(XrdCnsLogRec *lrP);
49 int do_Rmdir(XrdCnsLogRec *lrP);
50 int do_Trunc(XrdCnsLogRec *lrP, const char *lfn=0);
51 char getMount(char *Lfn, char *Pfn, XrdCnsXref &Mount);
52 int Inventory(XrdCnsLogFile *lfp, const char *dPath);
53 int Manifest();
54 int mapError(int rc);
55 int xrdEmsg(const char *Opname, const char *theFN, XrdClientAdmin *aP);
56 int xrdEmsg(const char *Opname, const char *theFN);
57 int xrdEmsg(const char *Opname, const char *theFN, XrdClient *fP);
58 
63 
66 
67 int pfxNF;
68 int sfxFN;
69 int arkOnly;
70 
71 char *admURL;
72 char *urlHost;
73 
74 char arkURL[MAXPATHLEN+512];
75 char *arkPath;
76 char *arkFN;
77 char crtURL[MAXPATHLEN+512];
78 char *crtFN;
79 char logDir[MAXPATHLEN+1];
80 char *logFN;
81 };
82 #endif