#include <XrdCnsConfig.hh>
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 |
| XrdOucTList * | Dest |
| XrdOucTList * | bDest |
| XrdOucTList * | Exports |
| char * | LCLRoot |
| XrdOucName2Name * | N2N |
| XrdCnsLogServer * | XrdCnsLog |
| XrdCnsXref * | Space |
| 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) |
Definition at line 20 of file XrdCnsConfig.hh.
| XrdCnsConfig::XrdCnsConfig | ( | ) | [inline] |
Definition at line 56 of file XrdCnsConfig.hh.
| XrdCnsConfig::~XrdCnsConfig | ( | ) | [inline] |
Definition at line 62 of file XrdCnsConfig.hh.
| 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().
| char* XrdCnsConfig::aPath |
| char* XrdCnsConfig::bPath |
| char* XrdCnsConfig::cPath |
| char* XrdCnsConfig::ePath |
| char* XrdCnsConfig::LCLRoot |
Definition at line 32 of file XrdCnsConfig.hh.
Referenced by ConfigN2N(), LocalPath(), and LogicPath().
Definition at line 33 of file XrdCnsConfig.hh.
| char* XrdCnsConfig::logfn |
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().
1.5.1