5 #include "XrdClient/XrdClientAdmin.hh"
6 #include "XrdClient/XrdClientUrlSet.hh"
7 #include "XrdClient/XrdClientEnv.hh"
25 EnvPutInt(NAME_READCACHESIZE, 20*1024*1024);
50 XrdClientAdmin admin(fullpath.c_str());
53 XrdOucString str(fullpath.c_str());
54 XrdClientUrlSet
url(str);
55 admin.Prepare(url.GetFile().c_str(), kXR_stage | kXR_noerrs, 0);
64 XrdClientAdmin admin(fullpath.c_str());
65 if (! admin.Connect())
73 XrdOucString str(fullpath.c_str());
74 XrdClientUrlSet
url(str);
76 if (! admin.Stat(url.GetFile().c_str(), id, xrdsize,
flags, modtime))
85 EnvPutInt(
"DebugLevel", level);
91 if (timeout == 0) {
return;}
92 EnvPutInt(
"ConnectTimeout", timeout/3+1);
93 EnvPutInt(
"RequestTimeout", timeout/3+1);
94 EnvPutInt(
"TransactionTimeout", timeout);
98 EnvPutInt(
"RedirCntTimeout", 600);
101 EnvPutInt(
"MaxRedirectcount", 32);
102 EnvPutInt(
"ReconnectWait", 5);
CacheHint cacheHint(void) const
std::vector< Variable::Flags > flags
virtual Storage * open(const std::string &proto, const std::string &path, int mode) override
virtual void setTimeout(unsigned int timeout) override
Storage * wrapNonLocalFile(Storage *s, const std::string &proto, const std::string &path, int mode)
static StorageFactory * get(void)
tuple path
else: Piece not in the list, fine.
virtual void stagein(const std::string &proto, const std::string &path) override
ReadHint readHint(void) const
virtual bool check(const std::string &proto, const std::string &path, IOOffset *size=0) override
#define DEFINE_EDM_PLUGIN(factory, type, name)
virtual void setDebugLevel(unsigned int level) override
tuple size
Write out results.