xrootd
|
#include <XrdClientEnv.hh>
Public Member Functions | |
const char * | Get (const char *varname) |
long | GetInt (const char *varname) |
const char * | ShellGet (const char *varname) |
long | ShellGetInt (const char *varname) |
void | Put (const char *varname, const char *value) |
void | PutInt (const char *varname, long value) |
Static Public Member Functions | |
static XrdClientEnv * | Instance () |
Protected Member Functions | |
XrdClientEnv () | |
~XrdClientEnv () | |
bool | ImportStr (const char *varname) |
bool | ImportInt (const char *varname) |
Private Attributes | |
XrdOucEnv * | fOucEnv |
XrdSysRecMutex | fMutex |
XrdOucEnv * | fShellEnv |
Static Private Attributes | |
static XrdClientEnv * | fgInstance = 0 |
XrdClientEnv::XrdClientEnv | ( | ) | [protected] |
References DFLT_CONNECTTIMEOUT, DFLT_DATASERVERCONN_TTL, DFLT_DEBUG, DFLT_DFLTTCPWINDOWSIZE, DFLT_ENABLE_FORK_HANDLERS, DFLT_ENABLE_TCP_KEEPALIVE, DFLT_FIRSTCONNECTMAXCNT, DFLT_LBSERVERCONN_TTL, DFLT_MAXREDIRECTCOUNT, DFLT_MULTISTREAMCNT, DFLT_PURGEWRITTENBLOCKS, DFLT_READAHEADSIZE, DFLT_READAHEADSTRATEGY, DFLT_READCACHEBLKREMPOLICY, DFLT_READCACHESIZE, DFLT_READTRIMBLKSZ, DFLT_RECONNECTWAIT, DFLT_REDIRCNTTIMEOUT, DFLT_REMUSEDCACHEBLKS, DFLT_REQUESTTIMEOUT, DFLT_TCP_KEEPALIVE_INTERVAL, DFLT_TCP_KEEPALIVE_PROBES, DFLT_TCP_KEEPALIVE_TIME, DFLT_TRANSACTIONTIMEOUT, fOucEnv, fShellEnv, ImportInt(), NAME_CONNECTTIMEOUT, NAME_DATASERVERCONN_TTL, NAME_DEBUG, NAME_DFLTTCPWINDOWSIZE, NAME_ENABLE_FORK_HANDLERS, NAME_ENABLE_TCP_KEEPALIVE, NAME_FIRSTCONNECTMAXCNT, NAME_LBSERVERCONN_TTL, NAME_MAXREDIRECTCOUNT, NAME_MULTISTREAMCNT, NAME_PURGEWRITTENBLOCKS, NAME_READAHEADSIZE, NAME_READAHEADSTRATEGY, NAME_READCACHEBLKREMPOLICY, NAME_READCACHESIZE, NAME_READTRIMBLKSZ, NAME_RECONNECTWAIT, NAME_REDIRCNTTIMEOUT, NAME_REMUSEDCACHEBLKS, NAME_REQUESTTIMEOUT, NAME_TCP_KEEPALIVE_INTERVAL, NAME_TCP_KEEPALIVE_PROBES, NAME_TCP_KEEPALIVE_TIME, NAME_TRANSACTIONTIMEOUT, and PutInt().
Referenced by Instance().
XrdClientEnv::~XrdClientEnv | ( | ) | [protected] |
References fgInstance, fOucEnv, and fShellEnv.
const char* XrdClientEnv::Get | ( | const char * | varname | ) | [inline] |
long XrdClientEnv::GetInt | ( | const char * | varname | ) | [inline] |
bool XrdClientEnv::ImportInt | ( | const char * | varname | ) | [protected] |
References fShellEnv, XrdOucEnv::Import(), and XrdOucEnv::PutInt().
Referenced by XrdClientEnv().
bool XrdClientEnv::ImportStr | ( | const char * | varname | ) | [protected] |
Import the variables from the shell environment, the variable names are capitalized and prefixed with "XRD_"
References fShellEnv, XrdOucEnv::Import(), and XrdOucEnv::Put().
XrdClientEnv * XrdClientEnv::Instance | ( | ) | [static] |
References fgInstance, and XrdClientEnv().
void XrdClientEnv::Put | ( | const char * | varname, |
const char * | value | ||
) | [inline] |
void XrdClientEnv::PutInt | ( | const char * | varname, |
long | value | ||
) | [inline] |
Referenced by XrdClientEnv().
const char * XrdClientEnv::ShellGet | ( | const char * | varname | ) |
Get a string variable from the environment, the same as Get, but checks the shell environment first
References fMutex, fOucEnv, fShellEnv, and XrdOucEnv::Get().
long XrdClientEnv::ShellGetInt | ( | const char * | varname | ) |
Get an integet variable from the environment, the same as GetInt, but checks the shell environment first
References fMutex, fOucEnv, fShellEnv, XrdOucEnv::Get(), and XrdOucEnv::GetInt().
XrdClientEnv * XrdClientEnv::fgInstance = 0 [static, private] |
Referenced by Instance(), and ~XrdClientEnv().
XrdSysRecMutex XrdClientEnv::fMutex [private] |
Referenced by ShellGet(), and ShellGetInt().
XrdOucEnv* XrdClientEnv::fOucEnv [private] |
Referenced by ShellGet(), ShellGetInt(), XrdClientEnv(), and ~XrdClientEnv().
XrdOucEnv* XrdClientEnv::fShellEnv [private] |
Referenced by ImportInt(), ImportStr(), ShellGet(), ShellGetInt(), XrdClientEnv(), and ~XrdClientEnv().