#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 |
Definition at line 32 of file XrdClientEnv.hh.
XrdClientEnv::XrdClientEnv | ( | ) | [protected] |
Definition at line 37 of file XrdClientEnv.cc.
References DFLT_CONNECTTIMEOUT, DFLT_DATASERVERCONN_TTL, DFLT_DEBUG, DFLT_DFLTTCPWINDOWSIZE, 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_TRANSACTIONTIMEOUT, fOucEnv, fShellEnv, ImportInt(), NAME_CONNECTTIMEOUT, NAME_DATASERVERCONN_TTL, NAME_DEBUG, NAME_DFLTTCPWINDOWSIZE, 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_TRANSACTIONTIMEOUT, and PutInt().
XrdClientEnv::~XrdClientEnv | ( | ) | [protected] |
bool XrdClientEnv::ImportStr | ( | const char * | varname | ) | [protected] |
Import the variables from the shell environment, the variable names are capitalized and prefixed with "XRD_"
Definition at line 86 of file XrdClientEnv.cc.
References fShellEnv, XrdOucEnv::Import(), name, XrdOucEnv::Put(), transform, and value.
bool XrdClientEnv::ImportInt | ( | const char * | varname | ) | [protected] |
Definition at line 103 of file XrdClientEnv.cc.
References fShellEnv, XrdOucEnv::Import(), name, XrdOucEnv::PutInt(), transform, and value.
Referenced by XrdClientEnv().
const char* XrdClientEnv::Get | ( | const char * | varname | ) | [inline] |
long XrdClientEnv::GetInt | ( | const char * | varname | ) | [inline] |
Definition at line 61 of file XrdClientEnv.hh.
References fMutex, fOucEnv, XrdOucEnv::GetInt(), and m.
const char * XrdClientEnv::ShellGet | ( | const char * | varname | ) |
Get a string variable from the environment, the same as Get, but checks the shell environment first
Definition at line 120 of file XrdClientEnv.cc.
References fMutex, fOucEnv, fShellEnv, XrdOucEnv::Get(), and m.
long XrdClientEnv::ShellGetInt | ( | const char * | varname | ) |
Get an integet variable from the environment, the same as GetInt, but checks the shell environment first
Definition at line 134 of file XrdClientEnv.cc.
References fMutex, fOucEnv, fShellEnv, XrdOucEnv::Get(), XrdOucEnv::GetInt(), and m.
void XrdClientEnv::Put | ( | const char * | varname, | |
const char * | value | |||
) | [inline] |
void XrdClientEnv::PutInt | ( | const char * | varname, | |
long | value | |||
) | [inline] |
Definition at line 88 of file XrdClientEnv.hh.
References fMutex, fOucEnv, m, and XrdOucEnv::PutInt().
Referenced by XrdClientEnv().
XrdClientEnv * XrdClientEnv::Instance | ( | ) | [static] |
XrdOucEnv* XrdClientEnv::fOucEnv [private] |
Definition at line 35 of file XrdClientEnv.hh.
Referenced by Get(), GetInt(), Put(), PutInt(), ShellGet(), ShellGetInt(), XrdClientEnv(), and ~XrdClientEnv().
XrdSysRecMutex XrdClientEnv::fMutex [private] |
Definition at line 36 of file XrdClientEnv.hh.
Referenced by Get(), GetInt(), Put(), PutInt(), ShellGet(), and ShellGetInt().
XrdClientEnv * XrdClientEnv::fgInstance [static, private] |
XrdOucEnv* XrdClientEnv::fShellEnv [private] |
Definition at line 38 of file XrdClientEnv.hh.
Referenced by ImportInt(), ImportStr(), ShellGet(), ShellGetInt(), XrdClientEnv(), and ~XrdClientEnv().