11 #include "XrdCl/XrdClDefaultEnv.hh"
12 #include "XrdNet/XrdNetUtils.hh"
18 XrdCl::AnyObject *response )
20 if (response)
delete response;
36 XrdCl::Env *
env = XrdCl::DefaultEnv::GetEnv();
39 env->PutString(
"NetworkStack",
"IPAuto");
41 XrdNetUtils::SetAuto(XrdNetUtils::prefAuto);
70 XrdCl::URL
url(fullpath);
71 XrdCl::FileSystem fs(url);
72 std::vector<std::string> fileList; fileList.push_back(url.GetPath());
73 fs.Prepare(fileList, XrdCl::PrepareFlags::Stage, 0, &
m_null_handler);
81 XrdCl::URL
url(fullpath);
82 XrdCl::FileSystem fs(url);
84 XrdCl::StatInfo *stat;
85 if (!(fs.Stat(fullpath, stat)).IsOK() || (stat ==
nullptr))
101 XrdCl::DefaultEnv::SetLogLevel(
"Warning");
104 XrdCl::DefaultEnv::SetLogLevel(
"Info");
107 XrdCl::DefaultEnv::SetLogLevel(
"Debug");
110 XrdCl::DefaultEnv::SetLogLevel(
"Dump");
113 XrdCl::DefaultEnv::SetLogLevel(
"Dump");
117 ex <<
"Invalid log level specified " <<
level;
118 ex.
addContext(
"Calling XrdStorageMaker::setDebugLevel()");
126 XrdCl::Env *
env = XrdCl::DefaultEnv::GetEnv();
129 env->PutInt(
"StreamTimeout", timeout);
130 env->PutInt(
"RequestTimeout", timeout);
131 env->PutInt(
"ConnectionWindow", timeout);
132 env->PutInt(
"StreamErrorWindow", timeout);
136 env->PutInt(
"ConnectionWindow", timeout/6+1);
137 env->PutInt(
"ConnectionRetry", 2);
CacheHint cacheHint(void) const
MakerResponseHandler m_null_handler
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 HandleResponse(XrdCl::XRootDStatus *status, XrdCl::AnyObject *response)
virtual void stagein(const std::string &proto, const std::string &path) override
#define DEFINE_FWK_SERVICE(type)
static const unsigned int XRD_DEFAULT_TIMEOUT
ReadHint readHint(void) const
void addContext(std::string const &context)
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.