xrootd
XrdCnsConfig.hh
Go to the documentation of this file.
1 #ifndef __XRDCNSCONFIG_H__
2 #define __XRDCNSCONFIG_H__
3 /******************************************************************************/
4 /* */
5 /* X r d C n s C o n f i g . 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 class XrdCnsLogServer;
16 class XrdCnsXref;
17 class XrdOucTList;
18 class XrdOucName2Name;
19 
21 {
22 public:
23 
24 char *aPath; // Admin path
25 char *bPath; // Backup path
26 char *cPath; // Config file path
27 char *ePath; // Event file path (where logfiles go)
28 XrdOucTList *Dest; // Redir list (where namespace goes)
29 XrdOucTList *bDest; // Bkup entry (where backup goes)
30 XrdOucTList *Exports; // Local exports
31 char *LCLRoot;
35 char *logfn; // Logmsg path
36 int logKeep;
37 int Port; // Xroot server port number for Dest hosts
38 int mInt; // Check interval for Inventory file
39 int cInt; // Close interval for logfiles
40 int qLim; // Close count for logfiles
41 int Opts;
42 
43 static const int optRecr = 0x0001;
44 static const int optNoCns= 0x0002;
45 
46 int Configure(int argc, char **argv, char *argt=0);
47 
48 int Configure();
49 
50 int LocalPath(const char *oldp, char *newp, int newpsz);
51 
52 int LogicPath(const char *oldp, char *newp, int newpsz);
53 
54 int MountPath(const char *oldp, char *newp, int newpsz);
55 
56  XrdCnsConfig() : aPath(0), bPath(0), cPath(0), ePath(0),
57  Dest(0), bDest(0), Exports(0),
58  LCLRoot(0), N2N(0), XrdCnsLog(0), Space(0),
59  logfn(0), logKeep(0), Port(1095),
60  mInt(1800), cInt(1200), qLim(512), Opts(0)
61  {}
63 
64 private:
65 int ConfigN2N();
66 int NAPath(const char *What, const char *Path);
67 };
68 #endif