XrdCnsConfig Class Reference

#include <XrdCnsConfig.hh>

List of all members.

Public Member Functions

int Configure (int argc, char **argv, char *argt=0)
int Configure ()
int LocalPath (const char *oldp, char *newp, int newpsz)
int LogicPath (const char *oldp, char *newp, int newpsz)
int MountPath (const char *oldp, char *newp, int newpsz)
 XrdCnsConfig ()
 ~XrdCnsConfig ()

Public Attributes

char * aPath
char * bPath
char * cPath
char * ePath
XrdOucTListDest
XrdOucTListbDest
XrdOucTListExports
char * LCLRoot
XrdOucName2NameN2N
XrdCnsLogServerXrdCnsLog
XrdCnsXrefSpace
char * logfn
int logKeep
int Port
int mInt
int cInt
int qLim
int Opts

Static Public Attributes

static const int optRecr = 0x0001
static const int optNoCns = 0x0002

Private Member Functions

int ConfigN2N ()
int NAPath (const char *What, const char *Path)


Detailed Description

Definition at line 20 of file XrdCnsConfig.hh.


Constructor & Destructor Documentation

XrdCnsConfig::XrdCnsConfig (  )  [inline]

Definition at line 56 of file XrdCnsConfig.hh.

XrdCnsConfig::~XrdCnsConfig (  )  [inline]

Definition at line 62 of file XrdCnsConfig.hh.


Member Function Documentation

int XrdCnsConfig::Configure ( int  argc,
char **  argv,
char *  argt = 0 
)

Definition at line 101 of file XrdCnsConfig.cc.

References XrdOuca2x::a2i(), XrdOuca2x::a2ll(), XrdOuca2x::a2sz(), XrdOuca2x::a2tm(), aPath, XrdOucArgs::argval, bDest, bPath, cInt, cPath, DEBUG, Dest, XrdSysError::Emsg(), EnvPutInt, ePath, free(), XrdOucArgs::getarg(), getenv(), XrdNetDNS::getHostName(), XrdOucArgs::getopt(), logfn, logKeep, mInt, XrdCns::MLog, n, NAPath(), XrdOucTList::next, optNoCns, optRecr, Opts, Port, putenv, qLim, XrdOucArgs::Set(), XrdSysThread::setDebug(), Space, sprintf(), strcat(), strcpy(), XrdOucTList::text, TRACE, TRACE_ALL, XrdOucTList::val, XrdOucTrace::What, and XrdTrace.

int XrdCnsConfig::Configure (  ) 

Definition at line 290 of file XrdCnsConfig.cc.

References aPath, XrdOucTokenizer::Attach(), bPath, chdir, XrdCns::CnsEvents(), XrdCns::CnsInt(), ConfigN2N(), XrdNetSocket::Create(), DEBUG, Dest, XrdNetSocket::Detach(), XrdSysError::Emsg(), EnvPutInt, ePath, Exports, free(), getenv(), XrdOucTokenizer::GetLine(), XrdOucTokenizer::GetToken(), XrdOucUtils::InstName(), LocalPath(), XrdOucUtils::makePath(), XrdCns::MLog, n, NAME_DATASERVERCONN_TTL, optRecr, Opts, Port, XrdSysThread::Run(), sprintf(), strcat(), strcpy(), TRACE, XRDNET_FIFO, and XRDSYSTHREAD_BIND.

int XrdCnsConfig::LocalPath ( const char *  oldp,
char *  newp,
int  newpsz 
)

Definition at line 488 of file XrdCnsConfig.cc.

References XrdSysError::Emsg(), XrdOucName2Name::lfn2pfn(), XrdCns::MLog, N2N, and strcpy().

Referenced by Configure().

int XrdCnsConfig::LogicPath ( const char *  oldp,
char *  newp,
int  newpsz 
)

Definition at line 505 of file XrdCnsConfig.cc.

References XrdSysError::Emsg(), XrdCns::MLog, N2N, XrdOucName2Name::pfn2lfn(), and strcpy().

int XrdCnsConfig::MountPath ( const char *  oldp,
char *  newp,
int  newpsz 
)

Definition at line 522 of file XrdCnsConfig.cc.

References XrdFrm::Config(), Exports, LCLRoot, XrdFrmConfig::LocalPath(), n, XrdOucTList::next, strcpy(), XrdOucTList::text, and XrdOucTList::val.

int XrdCnsConfig::ConfigN2N (  )  [private]

Definition at line 445 of file XrdCnsConfig.cc.

References cPath, free(), getenv(), XrdSysPlugin::getPlugin(), LCLRoot, XrdCns::MLog, N2N, XrdOucgetName2Name(), XrdOucgetName2NameArgs, and XrdSysPlugin.

Referenced by Configure().

int XrdCnsConfig::NAPath ( const char *  What,
const char *  Path 
) [private]

Definition at line 551 of file XrdCnsConfig.cc.

References XrdSysError::Emsg(), and XrdCns::MLog.

Referenced by Configure().


Member Data Documentation

char* XrdCnsConfig::aPath

Definition at line 24 of file XrdCnsConfig.hh.

Referenced by Configure().

char* XrdCnsConfig::bPath

Definition at line 25 of file XrdCnsConfig.hh.

Referenced by Configure().

char* XrdCnsConfig::cPath

Definition at line 26 of file XrdCnsConfig.hh.

Referenced by ConfigN2N(), and Configure().

char* XrdCnsConfig::ePath

Definition at line 27 of file XrdCnsConfig.hh.

Referenced by Configure().

XrdOucTList* XrdCnsConfig::Dest

Definition at line 28 of file XrdCnsConfig.hh.

Referenced by Configure().

XrdOucTList* XrdCnsConfig::bDest

Definition at line 29 of file XrdCnsConfig.hh.

Referenced by Configure().

XrdOucTList* XrdCnsConfig::Exports

Definition at line 30 of file XrdCnsConfig.hh.

Referenced by Configure(), and MountPath().

char* XrdCnsConfig::LCLRoot

Definition at line 31 of file XrdCnsConfig.hh.

Referenced by ConfigN2N(), and MountPath().

XrdOucName2Name* XrdCnsConfig::N2N

Definition at line 32 of file XrdCnsConfig.hh.

Referenced by ConfigN2N(), LocalPath(), and LogicPath().

XrdCnsLogServer* XrdCnsConfig::XrdCnsLog

Definition at line 33 of file XrdCnsConfig.hh.

XrdCnsXref* XrdCnsConfig::Space

Definition at line 34 of file XrdCnsConfig.hh.

Referenced by Configure().

char* XrdCnsConfig::logfn

Definition at line 35 of file XrdCnsConfig.hh.

Referenced by Configure().

int XrdCnsConfig::logKeep

Definition at line 36 of file XrdCnsConfig.hh.

Referenced by Configure().

int XrdCnsConfig::Port

Definition at line 37 of file XrdCnsConfig.hh.

Referenced by Configure().

int XrdCnsConfig::mInt

Definition at line 38 of file XrdCnsConfig.hh.

Referenced by Configure().

int XrdCnsConfig::cInt

Definition at line 39 of file XrdCnsConfig.hh.

Referenced by XrdCns::CnsInt(), and Configure().

int XrdCnsConfig::qLim

Definition at line 40 of file XrdCnsConfig.hh.

Referenced by Configure().

int XrdCnsConfig::Opts

Definition at line 41 of file XrdCnsConfig.hh.

Referenced by Configure().

const int XrdCnsConfig::optRecr = 0x0001 [static]

Definition at line 43 of file XrdCnsConfig.hh.

Referenced by Configure(), XrdCnsLogClient::Init(), and XrdCnsLogServer::Init().

const int XrdCnsConfig::optNoCns = 0x0002 [static]

Definition at line 44 of file XrdCnsConfig.hh.

Referenced by Configure(), and XrdCnsLogClient::XrdCnsLogClient().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:50:26 2011 for ROOT_528-00b_version by  doxygen 1.5.1