![]() |
XRootD
|
#include <XrdFrmConfig.hh>
Classes | |
struct | Cmd |
struct | Policy |
struct | VPInfo |
Public Types | |
enum | PPVar { PP_atime =0 , PP_ctime , PP_fname , PP_fsize , PP_fspace , PP_mtime , PP_pfn , PP_sname , PP_tspace , PP_usage } |
enum | SubSys { ssAdmin , ssMigr , ssPstg , ssPurg , ssXfr } |
Public Member Functions | |
XrdFrmConfig (SubSys ss, const char *vopts, const char *uinfo) | |
~XrdFrmConfig () | |
int | Configure (int argc, char **argv, int(*ppf)()) |
int | LocalPath (const char *oldp, char *newp, int newpsz) |
int | LogicalPath (const char *oldp, char *newp, int newpsz) |
int | NeedsCTA (const char *Lfn) |
unsigned long long | PathOpts (const char *Lfn) |
int | RemotePath (const char *oldp, char *newp, int newpsz) |
XrdOucTList * | Space (const char *Name, const char *Path=0) |
int | Stat (const char *xLfn, const char *xPfn, struct stat *buff) |
Public Attributes | |
int | AdminMode |
char * | AdminPath |
XrdCks * | CksMan |
long long | cmdFree |
int | cmdHold |
XrdNetCmsNotify * | cmsPath |
Policy | dfltPolicy |
int | dirHold |
int | FailHold |
int | Fix |
int | hasCache |
int | haveCMS |
int | IdleHold |
int | isAgent |
int | isOTO |
const char * | lockFN |
char * | MSSCmd |
XrdOucProg * | MSSProg |
const char * | myFrmid |
const char * | myFrmID |
gid_t | myGid |
const char * | myInst |
char * | myInstance |
const char * | myName |
const char * | myProg |
const char * | mySite |
uid_t | myUid |
int | nextArg |
int | nonXA |
int | numcArg |
XrdOfsConfigPI * | OfsCfg |
XrdOss * | ossFS |
VPInfo * | pathList |
char * | PidPath |
char * | pProg |
char | pVec [pVecMax] |
int | pVecNum |
char * | QPath |
int | runNew |
int | runOld |
XrdOucTList * | spacList |
char * | StopPurge |
int | Test |
XrdOucName2Name * | the_N2N |
int | TrackDC |
char ** | vectArg |
int | Verbose |
struct XrdFrmConfig::VPInfo * | VPList |
int | WaitMigr |
int | WaitPurge |
int | WaitQChk |
struct XrdFrmConfig::Cmd | xfrCmd [4] |
char * | xfrFdir |
int | xfrFdln |
int | xfrIN |
int | xfrMax |
int | xfrMaxIn |
int | xfrMaxOt |
int | xfrOUT |
Static Public Attributes | |
static const int | cmdAlloc = 0x0001 |
static const int | cmdMDP = 0x0002 |
static const int | cmdRME = 0x0010 |
static const int | cmdStats = 0x0004 |
static const int | cmdXPD = 0x0008 |
static const int | pVecMax =8 |
Definition at line 53 of file XrdFrmConfig.hh.
struct XrdFrmConfig::Cmd |
Definition at line 72 of file XrdFrmConfig.hh.
Class Members | ||
---|---|---|
const char * | Desc | |
int | Opts | |
char * | theCmd | |
XrdOucMsubs * | theVec | |
int | TLimit |
enum XrdFrmConfig::PPVar |
Enumerator | |
---|---|
PP_atime | |
PP_ctime | |
PP_fname | |
PP_fsize | |
PP_fspace | |
PP_mtime | |
PP_pfn | |
PP_sname | |
PP_tspace | |
PP_usage |
Definition at line 155 of file XrdFrmConfig.hh.
enum XrdFrmConfig::SubSys |
XrdFrmConfig::XrdFrmConfig | ( | SubSys | ss, |
const char * | vopts, | ||
const char * | uinfo | ||
) |
Definition at line 136 of file XrdFrmConfig.cc.
References AdminMode, AdminPath, CksMan, cmdFree, cmdHold, cmsPath, XrdFrmConfig::Cmd::Desc, dirHold, FailHold, Fix, haveCMS, IdleHold, XrdOucUtils::InstName(), isAgent, isOTO, lockFN, MSSCmd, myFrmid, myFrmID, myGid, myInst, mySite, myUid, nonXA, OfsCfg, pathList, pProg, pVecNum, QPath, runNew, runOld, XrdCms::Say, XrdSysError::SetPrefix(), spacList, ssAdmin, ssPurg, ssXfr, Test, the_N2N, Verbose, WaitMigr, WaitPurge, WaitQChk, xfrCmd, xfrFdir, xfrFdln, xfrIN, xfrMax, xfrMaxIn, xfrMaxOt, xfrOUT, and XrdCms::XrdVERSIONINFODEF().
|
inline |
Definition at line 178 of file XrdFrmConfig.hh.
int XrdFrmConfig::Configure | ( | int | argc, |
char ** | argv, | ||
int(*)() | ppf | ||
) |
Definition at line 232 of file XrdFrmConfig.cc.
References XrdOuca2x::a2i(), XrdOuca2x::a2tm(), XrdSysLogger::AddMsg(), XrdSysLogger::Bind(), XrdFrmConfigSE::BLen, XrdFrmConfigSE::Buff, CksMan, close, XrdSysError::Emsg(), XrdOucEnv::Export(), Fix, XrdOucUtils::InstName(), isAgent, isOTO, XrdOfsConfigPI::Load(), XrdSysError::logger(), XrdOucUtils::makeHome(), myFrmid, myFrmID, myInst, myInstance, myName, myProg, XrdFrmConfigSE::mySem, mySite, XrdNetAddrInfo::Name(), nextArg, numcArg, OfsCfg, optind, optopt, ossFS, XrdSysLogger::ParseKeep(), XrdOucUtils::PidFile(), XrdOfsConfigPI::Plugin(), XrdCms::Say, XrdSysError::Say(), XrdOucSiteName::Set(), XrdSysLogger::setHiRes(), ssAdmin, ssPurg, ssXfr, stat(), Stat(), XrdOss::StatPF(), XrdOucUtils::subLogfn(), Test, XrdOfsConfigPI::theAtrLib, XrdOfsConfigPI::theCksLib, XrdOfsConfigPI::theOssLib, XrdCms::Trace, TRACE_ALL, XrdOucUtils::Undercover(), vectArg, Verbose, XrdSysSemaphore::Wait(), WaitPurge, XrdSysTrace::What, write(), XrdBANNER, and XrdOssGetSS().
int XrdFrmConfig::LocalPath | ( | const char * | oldp, |
char * | newp, | ||
int | newpsz | ||
) |
Definition at line 478 of file XrdFrmConfig.cc.
References XrdSysError::Emsg(), XrdOucName2Name::lfn2pfn(), and XrdCms::Say.
int XrdFrmConfig::LogicalPath | ( | const char * | oldp, |
char * | newp, | ||
int | newpsz | ||
) |
Definition at line 495 of file XrdFrmConfig.cc.
References XrdSysError::Emsg(), XrdOucName2Name::pfn2lfn(), and XrdCms::Say.
int XrdFrmConfig::NeedsCTA | ( | const char * | Lfn | ) |
Definition at line 512 of file XrdFrmConfig.cc.
References XrdOucPListAnchor::Find(), XRDEXP_MIGPRG, and XrdOssRPList.
unsigned long long XrdFrmConfig::PathOpts | ( | const char * | Lfn | ) |
Definition at line 523 of file XrdFrmConfig.cc.
References XrdOucPListAnchor::Find(), and XrdOssRPList.
int XrdFrmConfig::RemotePath | ( | const char * | oldp, |
char * | newp, | ||
int | newpsz | ||
) |
Definition at line 534 of file XrdFrmConfig.cc.
References XrdSysError::Emsg(), XrdOucName2Name::lfn2rfn(), and XrdCms::Say.
XrdOucTList * XrdFrmConfig::Space | ( | const char * | Name, |
const char * | Path = 0 |
||
) |
Definition at line 551 of file XrdFrmConfig.cc.
References XrdFrmConfig::VPInfo::Dir, XrdFrmConfig::VPInfo::Name, XrdFrmConfig::VPInfo::Next, XrdOucTList::next, Path, XrdOucTList::text, and VPList.
int XrdFrmConfig::Stat | ( | const char * | xLfn, |
const char * | xPfn, | ||
struct stat * | buff | ||
) |
Definition at line 588 of file XrdFrmConfig.cc.
References ossFS, XrdOss::Stat(), XrdOss::StatPF(), and XRDOSS_resonly.
Referenced by Configure().
int XrdFrmConfig::AdminMode |
Definition at line 97 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
char* XrdFrmConfig::AdminPath |
Definition at line 64 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
XrdCks* XrdFrmConfig::CksMan |
Definition at line 89 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig(), and Configure().
|
static |
Definition at line 79 of file XrdFrmConfig.hh.
long long XrdFrmConfig::cmdFree |
Definition at line 95 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
int XrdFrmConfig::cmdHold |
Definition at line 96 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
|
static |
Definition at line 80 of file XrdFrmConfig.hh.
|
static |
Definition at line 83 of file XrdFrmConfig.hh.
|
static |
Definition at line 81 of file XrdFrmConfig.hh.
|
static |
Definition at line 82 of file XrdFrmConfig.hh.
XrdNetCmsNotify* XrdFrmConfig::cmsPath |
Definition at line 92 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
Policy XrdFrmConfig::dfltPolicy |
Definition at line 145 of file XrdFrmConfig.hh.
int XrdFrmConfig::dirHold |
Definition at line 147 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
int XrdFrmConfig::FailHold |
Definition at line 102 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
int XrdFrmConfig::Fix |
Definition at line 109 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig(), and Configure().
int XrdFrmConfig::hasCache |
Definition at line 116 of file XrdFrmConfig.hh.
int XrdFrmConfig::haveCMS |
Definition at line 107 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
int XrdFrmConfig::IdleHold |
Definition at line 103 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
int XrdFrmConfig::isAgent |
Definition at line 98 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig(), and Configure().
int XrdFrmConfig::isOTO |
Definition at line 108 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig(), and Configure().
const char* XrdFrmConfig::lockFN |
Definition at line 63 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
char* XrdFrmConfig::MSSCmd |
Definition at line 69 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
XrdOucProg* XrdFrmConfig::MSSProg |
Definition at line 70 of file XrdFrmConfig.hh.
const char* XrdFrmConfig::myFrmid |
Definition at line 61 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig(), and Configure().
const char* XrdFrmConfig::myFrmID |
Definition at line 62 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig(), and Configure().
gid_t XrdFrmConfig::myGid |
Definition at line 94 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
const char* XrdFrmConfig::myInst |
Definition at line 59 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig(), and Configure().
char* XrdFrmConfig::myInstance |
Definition at line 67 of file XrdFrmConfig.hh.
Referenced by Configure().
const char* XrdFrmConfig::myName |
Definition at line 58 of file XrdFrmConfig.hh.
Referenced by Configure().
const char* XrdFrmConfig::myProg |
Definition at line 57 of file XrdFrmConfig.hh.
Referenced by Configure().
const char* XrdFrmConfig::mySite |
Definition at line 60 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig(), and Configure().
uid_t XrdFrmConfig::myUid |
Definition at line 93 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
int XrdFrmConfig::nextArg |
Definition at line 118 of file XrdFrmConfig.hh.
Referenced by Configure().
int XrdFrmConfig::nonXA |
Definition at line 115 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
int XrdFrmConfig::numcArg |
Definition at line 119 of file XrdFrmConfig.hh.
Referenced by Configure().
XrdOfsConfigPI* XrdFrmConfig::OfsCfg |
Definition at line 88 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig(), and Configure().
XrdOss* XrdFrmConfig::ossFS |
Definition at line 91 of file XrdFrmConfig.hh.
Referenced by Configure(), and Stat().
VPInfo* XrdFrmConfig::pathList |
Definition at line 130 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
char* XrdFrmConfig::PidPath |
Definition at line 66 of file XrdFrmConfig.hh.
char* XrdFrmConfig::pProg |
Definition at line 151 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
char XrdFrmConfig::pVec[pVecMax] |
Definition at line 150 of file XrdFrmConfig.hh.
|
static |
Definition at line 149 of file XrdFrmConfig.hh.
int XrdFrmConfig::pVecNum |
Definition at line 148 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
char* XrdFrmConfig::QPath |
Definition at line 65 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
int XrdFrmConfig::runNew |
Definition at line 114 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
int XrdFrmConfig::runOld |
Definition at line 113 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
XrdOucTList* XrdFrmConfig::spacList |
Definition at line 131 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
char* XrdFrmConfig::StopPurge |
Definition at line 68 of file XrdFrmConfig.hh.
int XrdFrmConfig::Test |
Definition at line 110 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig(), and Configure().
XrdOucName2Name* XrdFrmConfig::the_N2N |
Definition at line 90 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
int XrdFrmConfig::TrackDC |
Definition at line 111 of file XrdFrmConfig.hh.
char** XrdFrmConfig::vectArg |
Definition at line 117 of file XrdFrmConfig.hh.
Referenced by Configure().
int XrdFrmConfig::Verbose |
Definition at line 112 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig(), and Configure().
struct XrdFrmConfig::VPInfo * XrdFrmConfig::VPList |
Referenced by Space().
int XrdFrmConfig::WaitMigr |
Definition at line 106 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
int XrdFrmConfig::WaitPurge |
Definition at line 105 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig(), and Configure().
int XrdFrmConfig::WaitQChk |
Definition at line 104 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
struct XrdFrmConfig::Cmd XrdFrmConfig::xfrCmd[4] |
Referenced by XrdFrmConfig().
char* XrdFrmConfig::xfrFdir |
Definition at line 152 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
int XrdFrmConfig::xfrFdln |
Definition at line 153 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
int XrdFrmConfig::xfrIN |
Definition at line 85 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
int XrdFrmConfig::xfrMax |
Definition at line 99 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
int XrdFrmConfig::xfrMaxIn |
Definition at line 100 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
int XrdFrmConfig::xfrMaxOt |
Definition at line 101 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().
int XrdFrmConfig::xfrOUT |
Definition at line 86 of file XrdFrmConfig.hh.
Referenced by XrdFrmConfig().