![]() |
XRootD
|
#include <XrdClEnv.hh>
Public Member Functions | |
virtual | ~Env () |
Destructor. More... | |
bool | GetDefaultIntValue (const std::string &key, int &value) |
bool | GetDefaultStringValue (const std::string &key, std::string &value) |
bool | GetInt (const std::string &key, int &value) |
bool | GetString (const std::string &key, std::string &value) |
bool | ImportInt (const std::string &key, const std::string &shellKey) |
bool | ImportString (const std::string &key, const std::string &shellKey) |
bool | PutInt (const std::string &key, int value) |
bool | PutString (const std::string &key, const std::string &value) |
void | RecreateLock () |
void | ReInitializeLock () |
void | UnLock () |
void | WriteLock () |
A simple key value store intended to hold global configuration. It is able to import the settings from the shell environment, the variables imported this way supersede these provided from the C++ code.
Definition at line 37 of file XrdClEnv.hh.
|
inlinevirtual |
bool XrdCl::Env::GetDefaultIntValue | ( | const std::string & | key, |
int & | value | ||
) |
Get default integer value for the given key
key | : the key |
value | : output parameter, default value corresponding to the key |
Definition at line 195 of file XrdClEnv.cc.
References XrdCl::theDefaultInts.
bool XrdCl::Env::GetDefaultStringValue | ( | const std::string & | key, |
std::string & | value | ||
) |
Get default string value for the given key
key | : the key |
value | : output parameter, default value corresponding to the key |
Definition at line 207 of file XrdClEnv.cc.
References XrdCl::theDefaultStrs.
bool XrdCl::Env::GetInt | ( | const std::string & | key, |
int & | value | ||
) |
Get an int associated to the given key
Definition at line 89 of file XrdClEnv.cc.
References XrdCl::Log::Debug(), XrdCl::DefaultEnv::GetLog(), and XrdCl::UtilityMsg.
Referenced by XrdCl::AsyncSocketHandler::AsyncSocketHandler(), XrdCl::Channel::Channel(), XrdCl::PostMasterImpl::PostMasterImpl(), XrdCl::ZipListHandler::ZipListHandler(), XrdCl::CopyProcess::AddJob(), BuildPath(), child(), XrdCl::AsyncSocketHandler::Connect(), XrdCl::Utils::GetHostAddresses(), XrdCl::Utils::GetIntParameter(), XrdCl::Utils::InferChecksumType(), XrdCl::Socket::Initialize(), XrdCl::XRootDTransport::InitializeChannel(), XrdCl::InitTLS(), XrdCl::URL::IsMetalink(), XrdCl::XRootDTransport::IsStreamBroken(), XrdCl::XRootDTransport::IsStreamTTLElapsed(), main(), XrdCl::XRootDTransport::NeedEncryption(), parent(), XrdCl::FileStateHandler::PgWrite(), prepare(), XrdCl::XRootDMsgHandler::Process(), XrdCl::MessageUtils::ProcessSendParams(), XrdCl::MessageUtils::RewriteCGIAndPath(), XrdCl::TickGeneratorTask::Run(), XrdCl::FileTimer::Run(), and XrdCl::XRootDTransport::SubStreamNumber().
bool XrdCl::Env::GetString | ( | const std::string & | key, |
std::string & | value | ||
) |
Get a string associated to the given key
Definition at line 31 of file XrdClEnv.cc.
References XrdCl::Log::Debug(), XrdCl::DefaultEnv::GetLog(), and XrdCl::UtilityMsg.
Referenced by BuildPath(), BuildPrompt(), DoCat(), DoLS(), DoTail(), XrdCl::DefaultEnv::GetMonitor(), XrdCl::Utils::GetStringParameter(), XrdCl::PostMaster::Initialize(), and XrdCl::PlugInManager::ProcessEnvironmentSettings().
bool XrdCl::Env::ImportInt | ( | const std::string & | key, |
const std::string & | shellKey | ||
) |
Import an int from the shell environment. Any imported setting takes precedence over the one set by other means.
Definition at line 148 of file XrdClEnv.cc.
References XrdCl::Log::Error(), XrdCl::DefaultEnv::GetLog(), XrdCl::Log::Info(), and XrdCl::UtilityMsg.
bool XrdCl::Env::ImportString | ( | const std::string & | key, |
const std::string & | shellKey | ||
) |
Import a string from the shell environment. Any imported setting takes precedence over the one set by ther means.
Definition at line 177 of file XrdClEnv.cc.
References XrdCl::DefaultEnv::GetLog(), XrdCl::Log::Info(), and XrdCl::UtilityMsg.
bool XrdCl::Env::PutInt | ( | const std::string & | key, |
int | value | ||
) |
Associate an int with the given key
Definition at line 110 of file XrdClEnv.cc.
References XrdCl::Log::Debug(), XrdCl::DefaultEnv::GetLog(), and XrdCl::UtilityMsg.
Referenced by DoCD(), DoLocate(), ExecuteCommand(), ExecuteInteractive(), XrdSsiClientProvider::GetService(), XrdCl::InitTLS(), main(), ProcessCommandLineEnv(), XrdPosixConfig::SetEnv(), and XrdSsiClientProvider::SetTimeout().
bool XrdCl::Env::PutString | ( | const std::string & | key, |
const std::string & | value | ||
) |
Associate a string with the given key
Definition at line 52 of file XrdClEnv.cc.
References XrdCl::Log::Debug(), XrdCl::DefaultEnv::GetLog(), and XrdCl::UtilityMsg.
Referenced by XrdCl::FSExecutor::FSExecutor(), CreateExecutor(), DoCD(), main(), and ProcessCommandLineEnv().
|
inline |
Definition at line 141 of file XrdClEnv.hh.
Referenced by child().
|
inline |
Definition at line 130 of file XrdClEnv.hh.
References XrdSysRWLock::ReInitialize(), and XrdSysRWLock::UnLock().
|
inline |
Definition at line 122 of file XrdClEnv.hh.
References XrdSysRWLock::UnLock().
|
inline |
Definition at line 114 of file XrdClEnv.hh.
References XrdSysRWLock::WriteLock().