XrdCl::DefaultEnv Class Reference

#include <XrdClDefaultEnv.hh>

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

List of all members.

Public Member Functions

 DefaultEnv ()
 Constructor.

Static Public Member Functions

static EnvGetEnv ()
 Get default client environment.
static PostMasterGetPostMaster ()
 Get default post master.
static Log * GetLog ()
 Get default log.
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.
static FileTimer * GetFileTimer ()
 Get file timer task.
static MonitorGetMonitor ()
 Get the monitor object.
static CheckSumManager * GetCheckSumManager ()
 Get checksum manager.
static TransportManagerGetTransportManager ()
 Get transport manager.
static void Initialize ()
 Initialize the environment.
static void Finalize ()
 Finalize the environment.
static void ReInitializeLogging ()
 Re-initialize the logging.

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 XrdSysPluginsMonitorLibHandle
static bool sMonitorInitialized
static CheckSumManager * sCheckSumManager
static TransportManagersTransportManager

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 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:
filepath path to the log file
static void XrdCl::DefaultEnv::SetLogLevel ( const std::string &  level  )  [static]

Set log level

Parameters:
level Dump, 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:
level log level or "All" for all levels
mask log mask
static void XrdCl::DefaultEnv::SetUpLog (  )  [static, private]

Member Data Documentation

CheckSumManager* XrdCl::DefaultEnv::sCheckSumManager [static, private]
Env* XrdCl::DefaultEnv::sEnv [static, private]
FileTimer* XrdCl::DefaultEnv::sFileTimer [static, private]
ForkHandler* XrdCl::DefaultEnv::sForkHandler [static, private]
Log* XrdCl::DefaultEnv::sLog [static, private]

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

Generated on 27 Jul 2013 for xrootd by  doxygen 1.6.1