![]() |
![]() |
Public Member Functions | |
virtual bool | check (const std::string &proto, const std::string &path, IOOffset *size=0) |
virtual Storage * | open (const std::string &proto, const std::string &path, int mode) |
virtual void | setDebugLevel (unsigned int level) |
virtual void | stagein (const std::string &proto, const std::string &path) |
Definition at line 8 of file XrdStorageMaker.cc.
virtual bool XrdStorageMaker::check | ( | const std::string & | proto, |
const std::string & | path, | ||
IOOffset * | size = 0 |
||
) | [inline, virtual] |
Reimplemented from StorageMaker.
Definition at line 33 of file XrdStorageMaker.cc.
References flags, findQualityFiles::size, and relmon_authenticated_wget::url.
{ std::string fullpath(proto + ":" + path); XrdClientAdmin admin(fullpath.c_str()); if (! admin.Connect()) return false; // FIXME: Throw? long id; long flags; long modtime; long long xrdsize; XrdOucString str(fullpath.c_str()); XrdClientUrlSet url(str); if (! admin.Stat(url.GetFile().c_str(), id, xrdsize, flags, modtime)) return false; // FIXME: Throw? *size = xrdsize; return true; }
virtual Storage* XrdStorageMaker::open | ( | const std::string & | proto, |
const std::string & | path, | ||
int | mode | ||
) | [inline, virtual] |
Open a storage object for the given URL (protocol + path), using the mode bits. No temporary files are downloaded.
Implements StorageMaker.
Definition at line 13 of file XrdStorageMaker.cc.
virtual void XrdStorageMaker::setDebugLevel | ( | unsigned int | level | ) | [inline, virtual] |
Reimplemented from StorageMaker.
Definition at line 57 of file XrdStorageMaker.cc.
{ EnvPutInt("DebugLevel", level); }
virtual void XrdStorageMaker::stagein | ( | const std::string & | proto, |
const std::string & | path | ||
) | [inline, virtual] |
Reimplemented from StorageMaker.
Definition at line 21 of file XrdStorageMaker.cc.
References relmon_authenticated_wget::url.