#include <XrdPss.hh>


Public Member Functions | |
| virtual XrdOssDF * | newDir (const char *tident) |
| virtual XrdOssDF * | newFile (const char *tident) |
| int | Chmod (const char *, mode_t mode) |
| virtual int | Create (const char *, const char *, mode_t, XrdOucEnv &, int opts=0) |
| int | Init (XrdSysLogger *, const char *) |
| int | Mkdir (const char *, mode_t mode, int mkpath=0) |
| int | Remdir (const char *, int Opts=0) |
| int | Rename (const char *, const char *) |
| int | Stat (const char *, struct stat *, int resonly=0) |
| int | Truncate (const char *, unsigned long long) |
| int | Unlink (const char *, int Opts=0) |
| XrdPssSys () | |
| virtual | ~XrdPssSys () |
Static Public Member Functions | |
| static int | P2URL (char *pbuff, int pblen, const char *path, XrdOucEnv *env=0) |
Static Public Attributes | |
| static char * | ConfigFN |
| static char * | myHost |
| static char * | myName |
| static XrdOucTList * | PanList = 0 |
| static char * | hdrData |
| static char | hdrLen |
| static long | rdAheadSz = 0 |
| static long | rdCacheSz = 0 |
| static long | numStream = 8 |
Private Member Functions | |
| int | buildHdr () |
| int | Configure (const char *) |
| int | ConfigProc (const char *ConfigFN) |
| int | ConfigXeq (char *, XrdOucStream &) |
| int | xmang (XrdSysError *errp, XrdOucStream &Config) |
| int | xsopt (XrdSysError *Eroute, XrdOucStream &Config) |
| int | xtrac (XrdSysError *Eroute, XrdOucStream &Config) |
| XrdPssSys::XrdPssSys | ( | ) | [inline] |
| virtual XrdPssSys::~XrdPssSys | ( | ) | [inline, virtual] |
| int XrdPssSys::buildHdr | ( | ) | [private] |
References eDest, XrdSysError::Emsg(), hdrData, hdrLen, XrdOucTList::next, PanList, XrdMonCtrCollector::port, strlcpy(), XrdOucTList::text, and XrdOucTList::val.
Referenced by Configure().
| int XrdPssSys::ConfigProc | ( | const char * | ConfigFN | ) | [private] |
References XrdOucStream::Attach(), XrdOucStream::Close(), XrdCms::Config, ConfigXeq(), XrdOucStream::Echo(), eDest, XrdSysError::Emsg(), XrdOucStream::GetMyFirstWord(), XrdOucStream::LastError(), and open().
Referenced by Configure().
| int XrdPssSys::Configure | ( | const char * | cfn | ) | [private] |
References buildHdr(), ConfigProc(), eDest, XrdSysError::Emsg(), myHost, myName, numStream, PanList, rdAheadSz, rdCacheSz, XrdPosixXrootd::setDebug(), XrdPosixXrootd::setEnv(), XrdPosixXrootd, and Xroot.
Referenced by Init().
| int XrdPssSys::ConfigXeq | ( | char * | var, | |
| XrdOucStream & | Config | |||
| ) | [private] |
References XrdOucStream::Echo(), eDest, XrdSysError::Say(), TS_Xeq, xmang(), xsopt(), and xtrac().
Referenced by ConfigProc().
| int XrdPssSys::Create | ( | const char * | tident, | |
| const char * | path, | |||
| mode_t | Mode, | |||
| XrdOucEnv & | env, | |||
| int | opts = 0 | |||
| ) | [virtual] |
Implements XrdOss.
| int XrdPssSys::Init | ( | XrdSysLogger * | lp, | |
| const char * | configfn | |||
| ) | [virtual] |
Implements XrdOss.
References Configure(), eDest, XrdSysError::logger(), XrdSysError::Say(), and XrdVSTRING.
Referenced by XrdOssGetStorageSystem().
| int XrdPssSys::Mkdir | ( | const char * | path, | |
| mode_t | mode, | |||
| int | mkpath = 0 | |||
| ) | [virtual] |
Implements XrdOss.
References XrdPosixXrootd::Mkdir(), P2URL(), XrdProxy::PBsz, and XrdOssOK.
| int XrdPssSys::P2URL | ( | char * | pbuff, | |
| int | pblen, | |||
| const char * | path, | |||
| XrdOucEnv * | env = 0 | |||
| ) | [static] |
References XrdOucEnv::Env(), hdrData, and hdrLen.
Referenced by Mkdir(), XrdPssFile::Open(), XrdPssDir::Opendir(), Stat(), Truncate(), and Unlink().
| int XrdPssSys::Remdir | ( | const char * | path, | |
| int | Opts = 0 | |||
| ) | [virtual] |
Implements XrdOss.
| int XrdPssSys::Rename | ( | const char * | oldname, | |
| const char * | newname | |||
| ) | [virtual] |
Implements XrdOss.
| int XrdPssSys::Stat | ( | const char * | path, | |
| struct stat * | buff, | |||
| int | resonly = 0 | |||
| ) | [virtual] |
Implements XrdOss.
References P2URL(), XrdProxy::PBsz, XrdPosixXrootd::Stat(), and XrdOssOK.
| int XrdPssSys::Truncate | ( | const char * | path, | |
| unsigned long long | flen | |||
| ) | [virtual] |
Implements XrdOss.
References P2URL(), XrdProxy::PBsz, XrdPosixXrootd::Truncate(), and XrdOssOK.
| int XrdPssSys::Unlink | ( | const char * | path, | |
| int | Opts = 0 | |||
| ) | [virtual] |
Implements XrdOss.
References P2URL(), XrdProxy::PBsz, XrdPosixXrootd::Unlink(), and XrdOssOK.
| int XrdPssSys::xmang | ( | XrdSysError * | errp, | |
| XrdOucStream & | Config | |||
| ) | [private] |
References XrdOuca2x::a2i(), XrdOucUtils::doIf(), XrdSysError::Emsg(), XrdNetDNS::getHostAddr(), XrdNetDNS::getHostName(), XrdNetDNS::getPort(), XrdOucStream::GetWord(), index(), myHost, myName, XrdOucTList::next, PanList, and XrdMonCtrCollector::port.
Referenced by ConfigXeq().
| int XrdPssSys::xsopt | ( | XrdSysError * | Eroute, | |
| XrdOucStream & | Config | |||
| ) | [private] |
References XrdSysError::Emsg(), XrdOucStream::GetWord(), XrdSysError::Say(), XrdPosixXrootd::setEnv(), and strlcpy().
Referenced by ConfigXeq().
| int XrdPssSys::xtrac | ( | XrdSysError * | Eroute, | |
| XrdOucStream & | Config | |||
| ) | [private] |
References XrdSysError::Emsg(), XrdOucStream::GetWord(), XrdSysError::Say(), and XrdPosixXrootd::setDebug().
Referenced by ConfigXeq().
char * XrdPssSys::ConfigFN [static] |
char * XrdPssSys::hdrData [static] |
Referenced by buildHdr(), and P2URL().
char XrdPssSys::hdrLen [static] |
Referenced by buildHdr(), and P2URL().
char * XrdPssSys::myHost [static] |
Referenced by Configure(), and xmang().
char * XrdPssSys::myName [static] |
Referenced by Configure(), and xmang().
long XrdPssSys::numStream = 8 [static] |
Referenced by Configure().
XrdOucTList * XrdPssSys::PanList = 0 [static] |
Referenced by buildHdr(), Configure(), and xmang().
long XrdPssSys::rdAheadSz = 0 [static] |
Referenced by Configure().
long XrdPssSys::rdCacheSz = 0 [static] |
Referenced by Configure().
1.7.1