5 #include "XrdClient/XrdClientAdmin.hh"
6 #include "XrdClient/XrdClientUrlSet.hh"
7 #include "XrdClient/XrdClientEnv.hh"
15 const std::string &
path,
22 EnvPutInt(NAME_READCACHESIZE, 20*1024*1024);
34 std::string fullpath(proto +
":" + path);
39 virtual void stagein (
const std::string &proto,
const std::string &
path)
41 std::string fullpath(proto +
":" + path);
42 XrdClientAdmin admin(fullpath.c_str());
45 XrdOucString str(fullpath.c_str());
46 XrdClientUrlSet
url(str);
47 admin.Prepare(url.GetFile().c_str(), kXR_stage | kXR_noerrs, 0);
51 virtual bool check (
const std::string &proto,
52 const std::string &
path,
55 std::string fullpath(proto +
":" + path);
56 XrdClientAdmin admin(fullpath.c_str());
57 if (! admin.Connect())
65 XrdOucString str(fullpath.c_str());
66 XrdClientUrlSet
url(str);
68 if (! admin.Stat(url.GetFile().c_str(),
id, xrdsize,
flags, modtime))
77 EnvPutInt(
"DebugLevel", level);
CacheHint cacheHint(void) const
virtual void setDebugLevel(unsigned int level)
virtual Storage * open(const std::string &proto, const std::string &path, int mode)
std::vector< Variable::Flags > flags
Storage * wrapNonLocalFile(Storage *s, const std::string &proto, const std::string &path, int mode)
static StorageFactory * get(void)
ReadHint readHint(void) const
virtual bool check(const std::string &proto, const std::string &path, IOOffset *size=0)
virtual void stagein(const std::string &proto, const std::string &path)
#define DEFINE_EDM_PLUGIN(factory, type, name)
tuple size
Write out results.