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/* This file is part of the XRootD software suite. */
13/* */
14/* XRootD is free software: you can redistribute it and/or modify it under */
15/* the terms of the GNU Lesser General Public License as published by the */
16/* Free Software Foundation, either version 3 of the License, or (at your */
17/* option) any later version. */
18/* */
19/* XRootD is distributed in the hope that it will be useful, but WITHOUT */
20/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
21/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */
22/* License for more details. */
23/* */
24/* You should have received a copy of the GNU Lesser General Public License */
25/* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */
26/* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */
27/* */
28/* The copyright holder's institutional names and contributor's names may not */
29/* be used to endorse or promote products derived from this software without */
30/* specific prior written permission of the institution or contributor. */
31/******************************************************************************/
32
33class XrdCnsLogServer;
34class XrdCnsXref;
35class XrdOucTList;
36class XrdOucName2Name;
37
39{
40public:
41
42char *aPath; // Admin path
43char *bPath; // Backup path
44char *cPath; // Config file path
45char *ePath; // Event file path (where logfiles go)
46XrdOucTList *Dest; // Redir list (where namespace goes)
47XrdOucTList *bDest; // Bkup entry (where backup goes)
48XrdOucTList *Exports; // Local exports
49char *LCLRoot;
53char *logfn; // Logmsg path
55int Port; // Xroot server port number for Dest hosts
56int mInt; // Check interval for Inventory file
57int cInt; // Close interval for logfiles
58int qLim; // Close count for logfiles
59int Opts;
60
61static const int optRecr = 0x0001;
62static const int optNoCns= 0x0002;
63
64int Configure(int argc, char **argv, char *argt=0);
65
67
68int LocalPath(const char *oldp, char *newp, int newpsz);
69
70int LogicPath(const char *oldp, char *newp, int newpsz);
71
72int MountPath(const char *oldp, char *newp, int newpsz);
73
74 XrdCnsConfig() : aPath(0), bPath(0), cPath(0), ePath(0),
75 Dest(0), bDest(0), Exports(0),
76 LCLRoot(0), N2N(0), XrdCnsLog(0), Space(0),
77 logfn(0), bindArg(0), Port(1095),
78 mInt(1800), cInt(1200), qLim(512), Opts(0)
79 {}
81
82private:
84int NAPath(const char *What, const char *Path);
85};
86#endif
Definition: XrdCnsConfig.hh:39
int cInt
Definition: XrdCnsConfig.hh:57
int LogicPath(const char *oldp, char *newp, int newpsz)
static const int optRecr
Definition: XrdCnsConfig.hh:61
char * LCLRoot
Definition: XrdCnsConfig.hh:49
int NAPath(const char *What, const char *Path)
XrdCnsLogServer * XrdCnsLog
Definition: XrdCnsConfig.hh:51
int LocalPath(const char *oldp, char *newp, int newpsz)
XrdOucTList * Dest
Definition: XrdCnsConfig.hh:46
char * cPath
Definition: XrdCnsConfig.hh:44
int Port
Definition: XrdCnsConfig.hh:55
int mInt
Definition: XrdCnsConfig.hh:56
XrdCnsXref * Space
Definition: XrdCnsConfig.hh:52
XrdCnsConfig()
Definition: XrdCnsConfig.hh:74
int qLim
Definition: XrdCnsConfig.hh:58
~XrdCnsConfig()
Definition: XrdCnsConfig.hh:80
char * logfn
Definition: XrdCnsConfig.hh:53
int Opts
Definition: XrdCnsConfig.hh:59
char * aPath
Definition: XrdCnsConfig.hh:42
static const int optNoCns
Definition: XrdCnsConfig.hh:62
int bindArg
Definition: XrdCnsConfig.hh:54
XrdOucName2Name * N2N
Definition: XrdCnsConfig.hh:50
int Configure(int argc, char **argv, char *argt=0)
int MountPath(const char *oldp, char *newp, int newpsz)
char * ePath
Definition: XrdCnsConfig.hh:45
XrdOucTList * Exports
Definition: XrdCnsConfig.hh:48
char * bPath
Definition: XrdCnsConfig.hh:43
XrdOucTList * bDest
Definition: XrdCnsConfig.hh:47
Definition: XrdCnsLogServer.hh:40
Definition: XrdCnsLog.hh:38
Definition: XrdCnsXref.hh:37
Definition: XrdOucName2Name.hh:49
Definition: XrdOucTList.hh:42