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 LogGetLog ()
 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 ForkHandlerGetForkHandler ()
 Get the fork handler.
static FileTimerGetFileTimer ()
 Get file timer task.
static MonitorGetMonitor ()
 Get the monitor object.
static CheckSumManagerGetCheckSumManager ()
 Get checksum manager.
static TransportManagerGetTransportManager ()
 Get transport manager.
static PlugInManagerGetPlugInManager ()
 Get plug-in manager.
static PlugInFactoryGetPlugInFactory (const std::string url)
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 LogsLog
static ForkHandlersForkHandler
static FileTimersFileTimer
static MonitorsMonitor
static XrdOucPinLoadersMonitorLibHandle
static bool sMonitorInitialized
static CheckSumManagersCheckSumManager
static TransportManagersTransportManager
static PlugInManagersPlugInManager

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.

Referenced by XrdCl::ZipListHandler::ZipListHandler().

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]
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.

Referenced by XrdCl::XRootDMsgHandler::XRootDMsgHandler().

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

Env* XrdCl::DefaultEnv::sEnv [static, private]
Log* XrdCl::DefaultEnv::sLog [static, private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 11 Jun 2020 for xrootd by  doxygen 1.6.1