#include <XrdCnsLogClient.hh>
|
| XrdClientAdmin * | admConnect (XrdClientAdmin *adminP) |
| |
| int | Archive (XrdCnsLogFile *lfP) |
| |
| int | do_Create (XrdCnsLogRec *lrP, const char *lfn=0) |
| |
| int | do_Mkdir (XrdCnsLogRec *lrP) |
| |
| int | do_Mv (XrdCnsLogRec *lrP) |
| |
| int | do_Rm (XrdCnsLogRec *lrP) |
| |
| int | do_Rmdir (XrdCnsLogRec *lrP) |
| |
| int | do_Trunc (XrdCnsLogRec *lrP, const char *lfn=0) |
| |
| char | getMount (char *Lfn, char *Pfn, XrdCnsXref &Mount) |
| |
| int | Inventory (XrdCnsLogFile *lfp, const char *dPath) |
| |
| int | Manifest () |
| |
| int | mapError (int rc) |
| |
| int | xrdEmsg (const char *Opname, const char *theFN, XrdClientAdmin *aP) |
| |
| int | xrdEmsg (const char *Opname, const char *theFN) |
| |
| int | xrdEmsg (const char *Opname, const char *theFN, XrdClient *fP) |
| |
References Admin, admURL, arkFN, arkOnly, arkPath, arkURL, XrdCopy::Config, crtFN, crtURL, XrdSysError::Emsg(), XrdSysDNS::getHostName(), logDir, logFirst, logFN, logLast, XrdCns::MLog, Next, XrdCnsConfig::optNoCns, XrdCpConfig::Opts, pfxNF, sfxFN, XrdOucTList::text, urlHost, and XrdOucTList::val.
| XrdCnsLogClient::~XrdCnsLogClient |
( |
| ) |
|
|
inline |
References Activate(), lfMutex, lfSem, XrdSysMutex::Lock(), logDir, logFirst, logFN, logLast, XrdCnsLogFile::Next, Next, pfxNF, XrdSysSemaphore::Post(), sfxFN, XrdCnsLogFile::Subscribe(), and XrdSysMutex::UnLock().
Referenced by Activate().
References Admin, arkFN, arkPath, arkURL, XrdSysError::Emsg(), XrdCnsLogFile::FName(), XrdCnsLogFile::getLog(), kXR_delete, kXR_gr, kXR_gw, kXR_mkpath, kXR_ok, kXR_open_updt, kXR_or, kXR_ur, kXR_uw, XrdClientAbs::LastServerResp(), XrdCns::MLog, XrdClientAdmin::Mv(), XrdClient::Open(), XrdClientAdmin::Rm(), ServerResponseHeader::status, XrdClient::Write(), and xrdEmsg().
Referenced by Run().
| int XrdCnsLogClient::do_Create |
( |
XrdCnsLogRec * |
lrP, |
|
|
const char * |
lfn = 0 |
|
) |
| |
|
private |
References XrdCopy::Config, crtFN, crtURL, kXR_delete, kXR_gr, kXR_gw, kXR_mkpath, kXR_ok, kXR_open_updt, kXR_or, kXR_ur, kXR_uw, XrdClientAbs::LastServerResp(), XrdCnsLogRec::Lfn1(), XrdCnsLogRec::Mode(), XrdClient::Open(), XrdCnsLogRec::Space(), ServerResponseHeader::status, and xrdEmsg().
Referenced by Run().
| int XrdCnsLogClient::do_Trunc |
( |
XrdCnsLogRec * |
lrP, |
|
|
const char * |
lfn = 0 |
|
) |
| |
|
private |
| char XrdCnsLogClient::getMount |
( |
char * |
Lfn, |
|
|
char * |
Pfn, |
|
|
XrdCnsXref & |
Mount |
|
) |
| |
|
private |
| int XrdCnsLogClient::Init |
( |
| ) |
|
References XrdCopy::Config, XrdSysError::Emsg(), XrdCnsLog::invFNa, XrdCnsLog::List(), logDir, logFirst, logFN, logLast, XrdOucUtils::makePath(), XrdCns::MLog, Mode, XrdCnsLogFile::Next, XrdOucNSWalk::NSEnt::Next, XrdCnsConfig::optRecr, XrdCpConfig::Opts, Run(), XrdOucNSWalk::NSEnt::Stat, unlink(), and urlHost.
| int XrdCnsLogClient::Inventory |
( |
XrdCnsLogFile * |
lfp, |
|
|
const char * |
dPath |
|
) |
| |
|
private |
| int XrdCnsLogClient::Manifest |
( |
| ) |
|
|
private |
References Admin, arkFN, arkPath, XrdCnsInventory::Conduct(), XrdCopy::Config, DEBUG, XrdSysError::Emsg(), XrdCnsLogFile::Eol(), ServerResponseBody_Error::errnum, XrdCnsLogFile::FName(), XrdCnsInventory::Init(), Inventory(), XrdCnsLog::invFNa, XrdCnsLog::invFNt, XrdCnsLog::invFNz, kXR_NotFound, XrdClientAbs::LastServerError(), lfMutex, XrdSysMutex::Lock(), logDir, logFirst, logFN, logLast, XrdCns::MLog, XrdCnsLogFile::Next, XrdOucTList::next, XrdCnsLogFile::Open(), rename(), XrdClientAdmin::Stat(), XrdOucTList::text, TRACE, unlink(), XrdSysMutex::UnLock(), and xrdEmsg().
Referenced by Run().
| int XrdCnsLogClient::mapError |
( |
int |
rc | ) |
|
|
private |
| int XrdCnsLogClient::Run |
( |
int |
Always = 1 | ) |
|
References admConnect(), Admin, Archive(), arkFN, arkOnly, arkURL, XrdCnsLogFile::Commit(), XrdCopy::Config, XrdCnsLogRec::Data(), DEBUG, do_Create(), do_Mkdir(), do_Mv(), do_Rm(), do_Rmdir(), do_Trunc(), XrdSysError::Emsg(), XrdCnsLogFile::getRec(), lfMutex, XrdCnsLogRec::Lfn1(), lfSem, XrdSysMutex::Lock(), logFirst, logLast, XrdCnsLogRec::lrClosew, XrdCnsLogRec::lrCreate, XrdCnsLogRec::lrInvD, XrdCnsLogRec::lrInvF, XrdCnsLogRec::lrMkdir, XrdCnsLogRec::lrMount, XrdCnsLogRec::lrMv, XrdCnsLogRec::lrRm, XrdCnsLogRec::lrRmdir, XrdCnsLogRec::lrSpace, XrdCnsLogRec::lrTOD, Manifest(), XrdCns::MLog, XrdCnsLogFile::Next, XrdCnsLogFile::Open(), XrdCnsLogRec::Space(), TRACE, XrdCnsLogRec::Type(), XrdCnsLogFile::Unlink(), XrdSysMutex::UnLock(), urlHost, and XrdSysSemaphore::Wait().
Referenced by Init(), and XrdCns::StartLogClient().
| int XrdCnsLogClient::Start |
( |
| ) |
|
| int XrdCnsLogClient::xrdEmsg |
( |
const char * |
Opname, |
|
|
const char * |
theFN, |
|
|
XrdClientAdmin * |
aP |
|
) |
| |
|
private |
References XrdSysError::Emsg(), ServerResponseBody_Error::errmsg, ServerResponseBody_Error::errnum, XrdClientAbs::LastServerError(), mapError(), and XrdCns::MLog.
Referenced by admConnect(), Archive(), do_Create(), do_Mkdir(), do_Mv(), do_Rm(), do_Rmdir(), do_Trunc(), Manifest(), and xrdEmsg().
| int XrdCnsLogClient::xrdEmsg |
( |
const char * |
Opname, |
|
|
const char * |
theFN |
|
) |
| |
|
private |
| int XrdCnsLogClient::xrdEmsg |
( |
const char * |
Opname, |
|
|
const char * |
theFN, |
|
|
XrdClient * |
fP |
|
) |
| |
|
private |
| char* XrdCnsLogClient::admURL |
|
private |
| char* XrdCnsLogClient::arkFN |
|
private |
| int XrdCnsLogClient::arkOnly |
|
private |
| char* XrdCnsLogClient::arkPath |
|
private |
| char XrdCnsLogClient::arkURL[MAXPATHLEN+512] |
|
private |
| char* XrdCnsLogClient::crtFN |
|
private |
| char XrdCnsLogClient::crtURL[MAXPATHLEN+512] |
|
private |
| char XrdCnsLogClient::logDir[MAXPATHLEN+1] |
|
private |
| char* XrdCnsLogClient::logFN |
|
private |
| int XrdCnsLogClient::pfxNF |
|
private |
| int XrdCnsLogClient::sfxFN |
|
private |
| char* XrdCnsLogClient::urlHost |
|
private |
The documentation for this class was generated from the following files: