xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdCl
XrdClDefaultEnv.hh
Go to the documentation of this file.
1
//------------------------------------------------------------------------------
2
// Copyright (c) 2011-2012 by European Organization for Nuclear Research (CERN)
3
// Author: Lukasz Janyst <ljanyst@cern.ch>
4
//------------------------------------------------------------------------------
5
// XRootD is free software: you can redistribute it and/or modify
6
// it under the terms of the GNU Lesser General Public License as published by
7
// the Free Software Foundation, either version 3 of the License, or
8
// (at your option) any later version.
9
//
10
// XRootD is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details.
14
//
15
// You should have received a copy of the GNU Lesser General Public License
16
// along with XRootD. If not, see <http://www.gnu.org/licenses/>.
17
//------------------------------------------------------------------------------
18
19
#ifndef __XRD_CL_DEFAULT_ENV_HH__
20
#define __XRD_CL_DEFAULT_ENV_HH__
21
22
#include "
XrdSys/XrdSysPthread.hh
"
23
#include "
XrdCl/XrdClEnv.hh
"
24
#include "
XrdVersion.hh
"
25
26
class
XrdSysPlugin
;
27
28
namespace
XrdCl
29
{
30
class
PostMaster;
31
class
Log;
32
class
ForkHandler;
33
class
Monitor;
34
class
CheckSumManager;
35
class
TransportManager;
36
37
//----------------------------------------------------------------------------
41
//----------------------------------------------------------------------------
42
class
DefaultEnv
:
public
Env
43
{
44
public
:
45
//------------------------------------------------------------------------
47
//------------------------------------------------------------------------
48
DefaultEnv
();
49
50
//------------------------------------------------------------------------
52
//------------------------------------------------------------------------
53
static
Env
*
GetEnv
();
54
55
//------------------------------------------------------------------------
57
//------------------------------------------------------------------------
58
static
PostMaster
*
GetPostMaster
();
59
60
//------------------------------------------------------------------------
62
//------------------------------------------------------------------------
63
static
Log
*
GetLog
();
64
65
//------------------------------------------------------------------------
67
//------------------------------------------------------------------------
68
static
ForkHandler
*
GetForkHandler
();
69
70
//------------------------------------------------------------------------
72
//------------------------------------------------------------------------
73
static
Monitor
*
GetMonitor
();
74
75
//------------------------------------------------------------------------
77
//------------------------------------------------------------------------
78
static
CheckSumManager
*
GetCheckSumManager
();
79
80
//------------------------------------------------------------------------
82
//------------------------------------------------------------------------
83
static
TransportManager
*
GetTransportManager
();
84
85
//------------------------------------------------------------------------
87
//------------------------------------------------------------------------
88
static
void
Initialize
();
89
90
//------------------------------------------------------------------------
92
//------------------------------------------------------------------------
93
static
void
Finalize
();
94
95
//------------------------------------------------------------------------
97
//------------------------------------------------------------------------
98
static
void
ReInitializeLogging
();
99
100
private
:
101
static
void
SetUpLog
();
102
103
static
XrdSysMutex
sInitMutex
;
104
static
Env
*
sEnv
;
105
static
PostMaster
*
sPostMaster
;
106
static
Log
*
sLog
;
107
static
ForkHandler
*
sForkHandler
;
108
static
Monitor
*
sMonitor
;
109
static
XrdSysPlugin
*
sMonitorLibHandle
;
110
static
bool
sMonitorInitialized
;
111
static
CheckSumManager
*
sCheckSumManager
;
112
static
TransportManager
*
sTransportManager
;
113
};
114
}
115
116
#endif // __XRD_CL_DEFAULT_ENV_HH__
Generated by
1.8.3.1