#include <XrdFrmConfig.hh>
|
| 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
} |
| |
|
| 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) |
| |
| | XrdFrmConfig (SubSys ss, const char *vopts, const char *uinfo) |
| |
| | ~XrdFrmConfig () |
| |
|
| int | ConfigCks () |
| |
| XrdOucMsubs * | ConfigCmd (const char *cname, char *cdata) |
| |
| int | ConfigMum (XrdFrmConfigSE &theSE) |
| |
| int | ConfigN2N () |
| |
| int | ConfigMon (int isxfr) |
| |
| int | ConfigMP (const char *) |
| |
| int | ConfigMss () |
| |
| int | ConfigOTO (char *Parms) |
| |
| int | ConfigPaths () |
| |
| void | ConfigPF (const char *pFN) |
| |
| int | ConfigProc () |
| |
| int | ConfigXeq (char *var, int mbok) |
| |
| int | ConfigXfr () |
| |
| int | getTime (const char *, const char *, int *, int mnv=-1, int mxv=-1) |
| |
| int | Grab (const char *var, char **Dest, int nosubs) |
| |
| XrdOucTList * | InsertPL (XrdOucTList *pP, const char *Path, int Plen, int isRW) |
| |
| void | InsertXD (const char *Path) |
| |
| void | Usage (int rc) |
| |
| int | xapath () |
| |
| int | xcks (int isOfs=0) |
| |
| int | xcnsd () |
| |
| int | xcopy () |
| |
| int | xcopy (int &TLim) |
| |
| int | xcmax () |
| |
| int | xdpol () |
| |
| int | xitm (const char *What, int &tDest) |
| |
| int | xnml () |
| |
| int | xmon () |
| |
| int | xoss () |
| |
| int | xpol () |
| |
| int | xpolprog () |
| |
| int | xqchk () |
| |
| int | xsit () |
| |
| int | xspace (int isPrg=0, int isXA=1) |
| |
| void | xspaceBuild (char *grp, char *fn, int isxa) |
| |
| int | xxfr () |
| |
| Enumerator |
|---|
| PP_atime |
|
| PP_ctime |
|
| PP_fname |
|
| PP_fsize |
|
| PP_fspace |
|
| PP_mtime |
|
| PP_pfn |
|
| PP_sname |
|
| PP_tspace |
|
| PP_usage |
|
| Enumerator |
|---|
| ssAdmin |
|
| ssMigr |
|
| ssPstg |
|
| ssPurg |
|
| ssXfr |
|
| XrdFrmConfig::XrdFrmConfig |
( |
SubSys |
ss, |
|
|
const char * |
vopts, |
|
|
const char * |
uinfo |
|
) |
| |
References AdminMode, AdminPath, CksAlg, CksCfg, CksMan, cmdFree, cmdHold, cmsPath, ConfigFN, XrdFrmConfig::Cmd::Desc, dirHold, FailHold, Fix, haveCMS, IdleHold, XrdOucUtils::InstName(), isAgent, isOTO, lcl_N2N, LocalRoot, lockFN, MSSCmd, myFrmid, myFrmID, myGid, myInst, mySite, myUid, myVersion, N2N_Lib, N2N_Parms, nonXA, ossLib, ossParms, pathList, pfxDTS, plnDTS, pProg, pVecNum, QPath, RemoteRoot, rmt_N2N, runNew, runOld, Say, spacList, ssAdmin, ssID, ssPurg, ssXfr, Test, the_N2N, uInfo, Verbose, vOpts, WaitMigr, WaitPurge, WaitQChk, xfrCmd, xfrFdir, xfrFdln, xfrIN, xfrMax, xfrOUT, XrdVERSION, XrdVERSIONINFODEF, and XrdVNUMBER.
| XrdFrmConfig::~XrdFrmConfig |
( |
| ) |
|
|
inline |
| int XrdFrmConfig::ConfigCks |
( |
| ) |
|
|
private |
| XrdOucMsubs * XrdFrmConfig::ConfigCmd |
( |
const char * |
cname, |
|
|
char * |
cdata |
|
) |
| |
|
private |
| int XrdFrmConfig::ConfigMon |
( |
int |
isxfr | ) |
|
|
private |
References cmdXPD, ConfigN2N(), XrdFrmMonitor::Init(), XrdFrmMonitor::monMIGR, XrdFrmMonitor::monPURGE, XrdFrmMonitor::monSTAGE, myInst, myName, myProg, XrdFrmConfig::Cmd::Opts, and xfrCmd.
Referenced by Configure().
| int XrdFrmConfig::ConfigMP |
( |
const char * |
pType | ) |
|
|
private |
References DEBUG, EPNAME, XrdOucPListAnchor::Find(), XrdOucPListAnchor::First(), XrdOucPList::Flag(), InsertPL(), InsertXD(), LocalPath(), XrdFrmConfig::VPInfo::Name, XrdOucTList::next, XrdOucPList::Next(), XrdFrmConfig::VPInfo::Next, nextArg, numcArg, XrdOucPList::Path(), pathList, XrdOucPList::Plen(), Say, XrdOucPList::Set(), spacList, XrdOucTList::sval, XrdOucTList::text, vectArg, VPList, XRDEXP_MAKELF, XRDEXP_MIG, XRDEXP_NOTRW, XRDEXP_PURGE, XRDEXP_STAGE, and XrdOssRPList.
Referenced by Configure(), and ConfigXfr().
| int XrdFrmConfig::ConfigMss |
( |
| ) |
|
|
private |
| int XrdFrmConfig::ConfigN2N |
( |
void |
| ) |
|
|
private |
References ConfigFN, lcl_N2N, XrdOucN2NLoader::Load(), LocalRoot, myVersion, N2N_Lib, N2N_Parms, RemoteRoot, rmt_N2N, Say, and the_N2N.
Referenced by ConfigMon(), and Configure().
| int XrdFrmConfig::ConfigOTO |
( |
char * |
Parms | ) |
|
|
private |
| int XrdFrmConfig::ConfigPaths |
( |
| ) |
|
|
private |
References AdminMode, AdminPath, cmsPath, XrdCopy::Config, haveCMS, XrdFrmCns::Init(), XrdNetCmsNotify::isServ, XrdFrcUtils::makePath(), myFrmid, myInst, QPath, Say, and StopPurge.
Referenced by Configure().
| void XrdFrmConfig::ConfigPF |
( |
const char * |
pFN | ) |
|
|
private |
| int XrdFrmConfig::ConfigProc |
( |
void |
| ) |
|
|
private |
References XrdOucStream::Attach(), cFile, CksCfg, XrdOucStream::Close(), ConfigFN, ConfigXeq(), XrdOucStream::Echo(), XrdOucStream::GetMyFirstWord(), XrdOucStream::LastError(), myInstance, myVersion, open(), pfxDTS, plnDTS, Say, ssAdmin, and ssID.
Referenced by Configure().
| int XrdFrmConfig::Configure |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
int(*)() |
ppf |
|
) |
| |
References XrdOuca2x::a2i(), XrdOuca2x::a2ll(), XrdOuca2x::a2sz(), XrdOuca2x::a2tm(), XrdFrmConfigSE::BLen, XrdFrmConfigSE::Buff, close(), ConfigCks(), ConfigFN, ConfigMon(), ConfigMP(), ConfigMss(), ConfigMum(), ConfigN2N(), ConfigOTO(), ConfigPaths(), ConfigPF(), ConfigProc(), ConfigXfr(), XrdOucEnv::Export(), Fix, XrdSysDNS::getHostName(), XrdOucUtils::InstName(), isAgent, isOTO, XrdOucUtils::makeHome(), myFrmid, myFrmID, myInst, myInstance, myName, myProg, XrdFrmConfigSE::mySem, mySite, myVersion, nextArg, numcArg, optarg, optind, ossFS, ossLib, ossParms, XrdOucUtils::PidFile(), XrdSysThread::Run(), runNew, runOld, Say, XrdOucSiteName::Set(), ssAdmin, ssID, ssPurg, ssXfr, XrdOucUtils::subLogfn(), Test, XrdCms::Trace, TRACE_ALL, XrdOucUtils::Undercover(), Usage(), vectArg, Verbose, vOpts, XrdSysSemaphore::Wait(), WaitPurge, XrdOucTrace::What, write(), XrdBANNER, XrdOssGetSS(), XrdOssRunMode, and XRDSYSTHREAD_BIND.
| int XrdFrmConfig::ConfigXeq |
( |
char * |
var, |
|
|
int |
mbok |
|
) |
| |
|
private |
References cFile, XrdOucStream::Echo(), Grab(), hasCache, haveCMS, IdleHold, isAgent, LocalRoot, XrdOucStream::noEcho(), ossLib, PidPath, RemoteRoot, Say, ssAdmin, ssID, ssPurg, ssXfr, WaitMigr, WaitPurge, xapath(), xcks(), xcmax(), xcnsd(), xcopy(), xdpol(), xitm(), xmon(), xnml(), xoss(), xpol(), xpolprog(), xqchk(), xsit(), xspace(), and xxfr().
Referenced by ConfigProc().
| int XrdFrmConfig::ConfigXfr |
( |
| ) |
|
|
private |
| int XrdFrmConfig::getTime |
( |
const char * |
emsg, |
|
|
const char * |
item, |
|
|
int * |
val, |
|
|
int |
mnv = -1, |
|
|
int |
mxv = -1 |
|
) |
| |
|
private |
| int XrdFrmConfig::Grab |
( |
const char * |
var, |
|
|
char ** |
Dest, |
|
|
int |
nosubs |
|
) |
| |
|
private |
| void XrdFrmConfig::InsertXD |
( |
const char * |
Path | ) |
|
|
private |
| int XrdFrmConfig::LocalPath |
( |
const char * |
oldp, |
|
|
char * |
newp, |
|
|
int |
newpsz |
|
) |
| |
| int XrdFrmConfig::LogicalPath |
( |
const char * |
oldp, |
|
|
char * |
newp, |
|
|
int |
newpsz |
|
) |
| |
| int XrdFrmConfig::NeedsCTA |
( |
const char * |
Lfn | ) |
|
| unsigned long long XrdFrmConfig::PathOpts |
( |
const char * |
Lfn | ) |
|
| int XrdFrmConfig::RemotePath |
( |
const char * |
oldp, |
|
|
char * |
newp, |
|
|
int |
newpsz |
|
) |
| |
| XrdOucTList * XrdFrmConfig::Space |
( |
const char * |
Name, |
|
|
const char * |
Path = 0 |
|
) |
| |
| void XrdFrmConfig::Usage |
( |
int |
rc | ) |
|
|
private |
| int XrdFrmConfig::xapath |
( |
| ) |
|
|
private |
| int XrdFrmConfig::xcks |
( |
int |
isOfs = 0 | ) |
|
|
private |
| int XrdFrmConfig::xcmax |
( |
| ) |
|
|
private |
| int XrdFrmConfig::xcnsd |
( |
| ) |
|
|
private |
| int XrdFrmConfig::xcopy |
( |
| ) |
|
|
private |
References cFile, cmdAlloc, cmdMDP, cmdStats, cmdXPD, XrdOucStream::GetWord(), Grab(), XrdFrmConfig::Cmd::Opts, Say, XrdFrmConfig::Cmd::theCmd, XrdFrmConfig::Cmd::TLimit, and xfrCmd.
Referenced by ConfigXeq().
| int XrdFrmConfig::xcopy |
( |
int & |
TLim | ) |
|
|
private |
| int XrdFrmConfig::xdpol |
( |
| ) |
|
|
private |
| int XrdFrmConfig::xitm |
( |
const char * |
What, |
|
|
int & |
tDest |
|
) |
| |
|
private |
| int XrdFrmConfig::xmon |
( |
| ) |
|
|
private |
| int XrdFrmConfig::xnml |
( |
| ) |
|
|
private |
| int XrdFrmConfig::xoss |
( |
| ) |
|
|
private |
| int XrdFrmConfig::xpol |
( |
| ) |
|
|
private |
References XrdOuca2x::a2i(), XrdOuca2x::a2sp(), cFile, dfltPolicy, XrdFrmConfig::Policy::Ext, getTime(), XrdOucStream::GetWord(), XrdFrmConfig::Policy::Hold, XrdFrmConfig::Policy::maxFree, XrdFrmConfig::Policy::minFree, XrdOssSpace::minSNbsz, XrdFrmConfig::Policy::Next, pProg, Say, XrdFrmConfig::Policy::Sname, xpolprog(), and XRDABS.
Referenced by ConfigXeq().
| int XrdFrmConfig::xpolprog |
( |
| ) |
|
|
private |
References cFile, XrdOucStream::GetRest(), XrdOucStream::GetWord(), PP_atime, PP_ctime, PP_fname, PP_fsize, PP_fspace, PP_mtime, PP_pfn, PP_sname, PP_tspace, PP_usage, pProg, pVec, pVecMax, pVecNum, and Say.
Referenced by ConfigXeq(), and xpol().
| int XrdFrmConfig::xqchk |
( |
| ) |
|
|
private |
| int XrdFrmConfig::xsit |
( |
| ) |
|
|
private |
| int XrdFrmConfig::xspace |
( |
int |
isPrg = 0, |
|
|
int |
isXA = 1 |
|
) |
| |
|
private |
| void XrdFrmConfig::xspaceBuild |
( |
char * |
grp, |
|
|
char * |
fn, |
|
|
int |
isxa |
|
) |
| |
|
private |
| int XrdFrmConfig::xxfr |
( |
| ) |
|
|
private |
| int XrdFrmConfig::AdminMode |
| char* XrdFrmConfig::AdminPath |
Referenced by ConfigProc(), ConfigXeq(), Grab(), xapath(), xcks(), xcmax(), xcnsd(), xcopy(), xdpol(), xitm(), xmon(), xnml(), xoss(), xpol(), xpolprog(), xqchk(), xsit(), xspace(), and xxfr().
| char* XrdFrmConfig::CksAlg |
| const int XrdFrmConfig::cmdAlloc = 0x0001 |
|
static |
| long long XrdFrmConfig::cmdFree |
| int XrdFrmConfig::cmdHold |
| const int XrdFrmConfig::cmdMDP = 0x0002 |
|
static |
| const int XrdFrmConfig::cmdStats = 0x0004 |
|
static |
| const int XrdFrmConfig::cmdXPD = 0x0008 |
|
static |
| char* XrdFrmConfig::ConfigFN |
|
private |
| Policy XrdFrmConfig::dfltPolicy |
| int XrdFrmConfig::dirHold |
| int XrdFrmConfig::FailHold |
| int XrdFrmConfig::hasCache |
| int XrdFrmConfig::haveCMS |
| int XrdFrmConfig::IdleHold |
| int XrdFrmConfig::isAgent |
| char* XrdFrmConfig::LocalRoot |
|
private |
| const char* XrdFrmConfig::lockFN |
| char* XrdFrmConfig::MSSCmd |
| const char* XrdFrmConfig::myFrmid |
| const char* XrdFrmConfig::myFrmID |
| gid_t XrdFrmConfig::myGid |
| const char* XrdFrmConfig::myInst |
| char* XrdFrmConfig::myInstance |
| const char* XrdFrmConfig::myName |
| const char* XrdFrmConfig::myProg |
| const char* XrdFrmConfig::mySite |
| uid_t XrdFrmConfig::myUid |
| char* XrdFrmConfig::N2N_Lib |
|
private |
| char* XrdFrmConfig::N2N_Parms |
|
private |
| int XrdFrmConfig::nextArg |
| int XrdFrmConfig::numcArg |
| char* XrdFrmConfig::ossLib |
|
private |
| char* XrdFrmConfig::ossParms |
|
private |
| VPInfo* XrdFrmConfig::pathList |
| const char* XrdFrmConfig::pfxDTS |
|
private |
| char* XrdFrmConfig::PidPath |
| char* XrdFrmConfig::pProg |
| const int XrdFrmConfig::pVecMax =8 |
|
static |
| int XrdFrmConfig::pVecNum |
| char* XrdFrmConfig::QPath |
| char* XrdFrmConfig::RemoteRoot |
|
private |
| char* XrdFrmConfig::StopPurge |
| int XrdFrmConfig::TrackDC |
| const char* XrdFrmConfig::uInfo |
|
private |
| char** XrdFrmConfig::vectArg |
| int XrdFrmConfig::Verbose |
| const char* XrdFrmConfig::vOpts |
|
private |
| int XrdFrmConfig::WaitMigr |
| int XrdFrmConfig::WaitPurge |
| int XrdFrmConfig::WaitQChk |
| char* XrdFrmConfig::xfrFdir |
| int XrdFrmConfig::xfrFdln |
The documentation for this class was generated from the following files: