xrootd
Public Member Functions | Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
XrdCl::DefaultEnv Class Reference

#include <XrdClDefaultEnv.hh>

Inheritance diagram for XrdCl::DefaultEnv:
Inheritance graph
[legend]
Collaboration diagram for XrdCl::DefaultEnv:
Collaboration graph
[legend]

Public Member Functions

 DefaultEnv ()
 Constructor. More...
 
- Public Member Functions inherited from XrdCl::Env
virtual ~Env ()
 Destructor. More...
 
bool GetString (const std::string &key, std::string &value)
 
bool PutString (const std::string &key, const std::string &value)
 
bool GetInt (const std::string &key, int &value)
 
bool PutInt (const std::string &key, int value)
 
bool ImportInt (const std::string &key, const std::string &shellKey)
 
bool ImportString (const std::string &key, const std::string &shellKey)
 
void WriteLock ()
 
void UnLock ()
 
void ReInitializeLock ()
 

Static Public Member Functions

static EnvGetEnv ()
 Get default client environment. More...
 
static PostMasterGetPostMaster ()
 Get default post master. More...
 
static Log * GetLog ()
 Get default log. More...
 
static void SetLogLevel (const std::string &level)
 
static bool SetLogFile (const std::string &filepath)
 
static void SetLogMask (const std::string &level, const std::string &mask)
 
static ForkHandler * GetForkHandler ()
 Get the fork handler. More...
 
static FileTimer * GetFileTimer ()
 Get file timer task. More...
 
static MonitorGetMonitor ()
 Get the monitor object. More...
 
static CheckSumManager * GetCheckSumManager ()
 Get checksum manager. More...
 
static TransportManagerGetTransportManager ()
 Get transport manager. More...
 
static PlugInManager * GetPlugInManager ()
 Get plug-in manager. More...
 
static PlugInFactory * GetPlugInFactory (const std::string url)
 
static void Initialize ()
 Initialize the environment. More...
 
static void Finalize ()
 Finalize the environment. More...
 
static void ReInitializeLogging ()
 Re-initialize the logging. More...
 

Static Private Member Functions

static void SetUpLog ()
 

Static Private Attributes

static XrdSysMutex sInitMutex
 
static EnvsEnv
 
static PostMastersPostMaster
 
static Log * sLog
 
static ForkHandler * sForkHandler
 
static FileTimer * sFileTimer
 
static MonitorsMonitor
 
static XrdOucPinLoader * sMonitorLibHandle
 
static bool sMonitorInitialized
 
static CheckSumManager * sCheckSumManager
 
static TransportManagersTransportManager
 
static PlugInManager * sPlugInManager
 

Detailed Description

Default environment for the client. Responsible for setting/importing defaults for the variables used by the client. And holding other global stuff.

Constructor & Destructor Documentation

XrdCl::DefaultEnv::DefaultEnv ( )

Constructor.

Member Function Documentation

static void XrdCl::DefaultEnv::Finalize ( )
static

Finalize the environment.

static CheckSumManager* XrdCl::DefaultEnv::GetCheckSumManager ( )
static

Get checksum manager.

static Env* XrdCl::DefaultEnv::GetEnv ( )
static

Get default client environment.

static FileTimer* XrdCl::DefaultEnv::GetFileTimer ( )
static

Get file timer task.

static ForkHandler* XrdCl::DefaultEnv::GetForkHandler ( )
static

Get the fork handler.

static Log* XrdCl::DefaultEnv::GetLog ( )
static

Get default log.

static Monitor* XrdCl::DefaultEnv::GetMonitor ( )
static

Get the monitor object.

static PlugInFactory* XrdCl::DefaultEnv::GetPlugInFactory ( const std::string  url)
static

Retrieve the plug-in factory for the given URL

Returns
you do not own the returned memory
static PlugInManager* XrdCl::DefaultEnv::GetPlugInManager ( )
static

Get plug-in manager.

static PostMaster* XrdCl::DefaultEnv::GetPostMaster ( )
static

Get default post master.

static TransportManager* XrdCl::DefaultEnv::GetTransportManager ( )
static

Get transport manager.

static void XrdCl::DefaultEnv::Initialize ( )
static

Initialize the environment.

static void XrdCl::DefaultEnv::ReInitializeLogging ( )
static

Re-initialize the logging.

static bool XrdCl::DefaultEnv::SetLogFile ( const std::string &  filepath)
static

Set log file

Parameters
filepathpath to the log file
static void XrdCl::DefaultEnv::SetLogLevel ( const std::string &  level)
static

Set log level

Parameters
levelDump, Debug, Info, Warning or Error
static void XrdCl::DefaultEnv::SetLogMask ( const std::string &  level,
const std::string &  mask 
)
static

Set log mask. Determines which diagnostics topics should be printed. It's a "|" separated list of topics. The first element may be "All" in which case all the topics are enabled and the subsequent elements may turn them off, or "None" in which case all the topics are disabled and the subsequent flags may turn them on. If the topic name is prefixed with "^", then it means that the topic should be disabled. If the topic name is not prefixed, then it means that the topic should be enabled.

The default for each level is "All", except for the "Dump" level, where the default is "All|^PollerMsg". This means that, at the "Dump" level, all the topics but "PollerMsg" are enabled.

Available topics: AppMsg, UtilityMsg, FileMsg, PollerMsg, PostMasterMsg, XRootDTransportMsg, TaskMgrMsg, XRootDMsg, FileSystemMsg, AsyncSockMsg

Parameters
levellog level or "All" for all levels
masklog mask
static void XrdCl::DefaultEnv::SetUpLog ( )
staticprivate

Member Data Documentation

CheckSumManager* XrdCl::DefaultEnv::sCheckSumManager
staticprivate
Env* XrdCl::DefaultEnv::sEnv
staticprivate
FileTimer* XrdCl::DefaultEnv::sFileTimer
staticprivate
ForkHandler* XrdCl::DefaultEnv::sForkHandler
staticprivate
XrdSysMutex XrdCl::DefaultEnv::sInitMutex
staticprivate
Log* XrdCl::DefaultEnv::sLog
staticprivate
Monitor* XrdCl::DefaultEnv::sMonitor
staticprivate
bool XrdCl::DefaultEnv::sMonitorInitialized
staticprivate
XrdOucPinLoader* XrdCl::DefaultEnv::sMonitorLibHandle
staticprivate
PlugInManager* XrdCl::DefaultEnv::sPlugInManager
staticprivate
PostMaster* XrdCl::DefaultEnv::sPostMaster
staticprivate
TransportManager* XrdCl::DefaultEnv::sTransportManager
staticprivate

The documentation for this class was generated from the following file: