#include <XrdFrmPurge.hh>
| XrdFrmPurge::XrdFrmPurge |
( |
const char * |
snp, |
|
|
XrdFrmPurge * |
spp = 0 |
|
) |
| |
References Clear(), contSpace, DeferQ, Enabled, freeSpace, maxFSpace, minFSpace, Next, pmaxSpace, SName, SNlen, Stop, totlSpace, and usedSpace.
Referenced by Policy().
| XrdFrmPurge::~XrdFrmPurge |
( |
| ) |
|
|
inline |
References XrdFrmTSort::Add(), XrdFrmFileset::baseFile(), XrdFrmFileset::basePath(), DEBUG, Default, Defer(), Eligible(), Enabled, EPNAME, Find(), FSTab, XrdOssPath::getCname(), Hold, XrdOucNSWalk::NSEnt::Link, XrdOucNSWalk::NSEnt::Lksz, XrdOssSpace::minSNbsz, and numFiles.
Referenced by Advance(), and Scan().
| void XrdFrmPurge::Clear |
( |
| ) |
|
|
private |
| void XrdFrmPurge::Display |
( |
| ) |
|
|
static |
References XrdCopy::Config, XrdFrmConfig::VPInfo::Dir, Enabled, Ext, First, XrdOucUtils::fmtBytes(), Hold, maxFSpace, minFSpace, XrdFrmConfig::VPInfo::Name, XrdOucTList::next, Next, XrdFrmConfig::VPInfo::Next, Say, SName, XrdOucTList::text, and XrdFrmConfig::VPInfo::Val.
Referenced by main().
| const char * XrdFrmPurge::Eligible |
( |
XrdFrmFileset * |
sP, |
|
|
time_t & |
xTime, |
|
|
int |
hTime = 0 |
|
) |
| |
|
private |
References XrdOucXAttr< T >::Attr, XrdFrmFileset::baseFile(), XrdFrmFileset::cpyInfo, XrdFrcXAttrCpy::cpyTime, XrdFrmFileset::failFile(), XrdFrcXAttrPin::Flags, XrdFrcXAttrPin::pinIdle, XrdFrmFileset::pinInfo, XrdFrcXAttrPin::pinKeep, XrdFrcXAttrPin::pinPerm, XrdFrcXAttrPin::pinTime, and XrdOucNSWalk::NSEnt::Stat.
Referenced by Add(), and PurgeFile().
| int XrdFrmPurge::Init |
( |
XrdOucTList * |
sP = 0, |
|
|
long long |
minV = -1, |
|
|
int |
hVal = -1 |
|
) |
| |
|
static |
References XrdCopy::Config, Default, Find(), First, XrdOucProg::getStream(), XrdOssVSInfo::Large, XrdFrmConfig::VPInfo::Name, XrdOucTList::next, Next, XrdFrmConfig::VPInfo::Next, PolProg, PolStream, XrdFrmConfig::PP_atime, XrdFrmConfig::PP_fsize, XrdFrmConfig::PP_mtime, XrdFrmConfig::PP_pfn, XrdFrmConfig::PP_sname, Say, XrdOucProg::Setup(), XrdOucProg::Start(), XrdOucTList::text, XrdOssVSInfo::Total, totlSpace, and XRDABS.
Referenced by mainConfig().
| int XrdFrmPurge::LowOnSpace |
( |
| ) |
|
|
staticprivate |
>0 -> Purge is needed.
References XrdCopy::Config, contSpace, Enabled, First, XrdOssVSInfo::Free, freeSpace, Left2Do, XrdOssVSInfo::LFree, minFSpace, Next, SName, Stop, XrdOssVSInfo::Usage, and usedSpace.
Referenced by Purge().
| static XrdFrmPurge* XrdFrmPurge::Policy |
( |
const char * |
sname | ) |
|
|
inlinestatic |
| XrdFrmPurge * XrdFrmPurge::Policy |
( |
const char * |
sname, |
|
|
long long |
minV, |
|
|
long long |
maxV, |
|
|
int |
hVal, |
|
|
int |
xVal |
|
) |
| |
|
static |
| void XrdFrmPurge::Purge |
( |
| ) |
|
|
static |
| int XrdFrmPurge::PurgeFile |
( |
| ) |
|
|
private |
References Advance(), XrdFrmFileset::baseFile(), XrdFrmFileset::basePath(), XrdCopy::Config, DEBUG, Eligible(), EPNAME, Ext, freeSpace, FSTab, Hold, maxFSpace, nextReset, XrdFrmTSort::Oldest(), prgFiles, purgBytes, XrdFrmFileset::Refresh(), SName, XrdOucNSWalk::NSEnt::Stat, Stop, Track(), XrdCpConfig::Verbose, and XPolOK().
Referenced by Purge().
| int XrdFrmPurge::PurgeFile |
( |
XrdFrmFileset * |
fP, |
|
|
const char * |
pFN |
|
) |
| |
|
private |
| void XrdFrmPurge::Scan |
( |
| ) |
|
|
staticprivate |
References Add(), XrdFrmFiles::CompressD, XrdCopy::Config, XrdFrmConfig::VPInfo::Dir, XrdFrmFiles::Get(), XrdFrmPurgeDir::lowDirTime, XrdFrmConfig::VPInfo::Name, XrdFrmConfig::VPInfo::Next, XrdFrmFiles::NoAutoDel, XrdFrmPurgeDir::numEMD, XrdFrmPurgeDir::numRMD, XrdMpx::Opts, XrdFrmFileset::Purge(), XrdFrmFiles::Recursive, XrdFrmPurgeDir::Reset(), Say, XrdFrmFileset::Screen(), XrdFrmConfig::VPInfo::Val, and VMSG.
| void XrdFrmPurge::Stats |
( |
int |
Final | ) |
|
|
staticprivate |
References XrdFrmTSort::Count(), Enabled, First, XrdOucUtils::fmtBytes(), freeSpace, FSTab, maxFSpace, minFSpace, Next, numFiles, prgFiles, purgBytes, Say, SName, totlSpace, and usedSpace.
Referenced by Purge().
References XrdFrmFileset::baseFile(), XrdFrmFileset::basePath(), XrdCopy::Config, XrdOucProg::Feed(), XrdOucNSWalk::NSEnt::File, freeSpace, XrdOucStream::GetLine(), PolProg, PolStream, XrdFrmConfig::PP_atime, XrdFrmConfig::PP_ctime, XrdFrmConfig::PP_fname, XrdFrmConfig::PP_fsize, XrdFrmConfig::PP_fspace, XrdFrmConfig::PP_mtime, XrdFrmConfig::PP_pfn, XrdFrmConfig::PP_sname, XrdFrmConfig::PP_tspace, XrdFrmConfig::PP_usage, purgBytes, SName, SNlen, spaceTLen, spaceTotl, XrdOucNSWalk::NSEnt::Stat, Stop, and usedSpace.
Referenced by PurgeFile().
| long long XrdFrmPurge::contSpace |
|
private |
| const int XrdFrmPurge::DeferQsz = 16 |
|
staticprivate |
| long long XrdFrmPurge::fconMaxsp |
|
private |
| long long XrdFrmPurge::freeSpace |
|
private |
| time_t XrdFrmPurge::lastReset = 0 |
|
staticprivate |
| int XrdFrmPurge::Left2Do = 0 |
|
staticprivate |
| long long XrdFrmPurge::maxFSpace |
|
private |
| long long XrdFrmPurge::minFSpace |
|
private |
| time_t XrdFrmPurge::nextReset = 0 |
|
staticprivate |
| int XrdFrmPurge::numFiles |
|
private |
| long long XrdFrmPurge::pmaxSpace |
|
private |
| int XrdFrmPurge::prgFiles |
|
private |
| long long XrdFrmPurge::purgBytes |
|
private |
| int XrdFrmPurge::spaceTLen |
|
private |
| int XrdFrmPurge::spaceTLep |
|
private |
| char* XrdFrmPurge::spaceTotl |
|
private |
| char* XrdFrmPurge::spaceTotP |
|
private |
| long long XrdFrmPurge::totlSpace |
|
private |
| long long XrdFrmPurge::usedSpace |
|
private |
The documentation for this class was generated from the following files: