CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LibGlobals Class Reference

#include <libcvmfs_int.h>

Inheritance diagram for LibGlobals:
Collaboration diagram for LibGlobals:

Public Member Functions

FileSystemfile_system ()
 
void set_options_mgr (OptionsManager *value)
 

Static Public Member Functions

static loader::Failures Initialize (OptionsManager *options_mgr)
 
static void CleanupInstance ()
 
static LibGlobalsGetInstance ()
 

Private Member Functions

 LibGlobals ()
 
 ~LibGlobals ()
 
- Private Member Functions inherited from SingleCopy
 SingleCopy ()
 

Private Attributes

OptionsManageroptions_mgr_
 
FileSystemfile_system_
 

Static Private Attributes

static LibGlobalsinstance_ = NULL
 

Detailed Description

A singleton managing the cvmfs resources for all attached repositories. A thin wrapper around the FileSystem object that does most of the heavy work.

Definition at line 61 of file libcvmfs_int.h.

Constructor & Destructor Documentation

LibGlobals::LibGlobals ( )
private

Definition at line 139 of file libcvmfs_int.cc.

LibGlobals::~LibGlobals ( )
private

Definition at line 145 of file libcvmfs_int.cc.

Here is the call graph for this function:

Member Function Documentation

void LibGlobals::CleanupInstance ( )
static

Definition at line 130 of file libcvmfs_int.cc.

Referenced by cvmfs_fini(), cvmfs_init(), and cvmfs_init_v2().

Here is the call graph for this function:

Here is the caller graph for this function:

FileSystem* LibGlobals::file_system ( )
inline

Definition at line 67 of file libcvmfs_int.h.

Referenced by LibContext::file_system().

Here is the caller graph for this function:

LibGlobals * LibGlobals::GetInstance ( )
static

Definition at line 85 of file libcvmfs_int.cc.

Referenced by LibContext::Create(), cvmfs_init(), cvmfs_init_v2(), and LibContext::file_system().

Here is the call graph for this function:

Here is the caller graph for this function:

loader::Failures LibGlobals::Initialize ( OptionsManager options_mgr)
static

Always creates the singleton, even in case of failure.

Definition at line 94 of file libcvmfs_int.cc.

Referenced by cvmfs_init(), and cvmfs_init_v2().

Here is the call graph for this function:

Here is the caller graph for this function:

void LibGlobals::set_options_mgr ( OptionsManager value)
inline

Definition at line 68 of file libcvmfs_int.h.

Referenced by cvmfs_init().

Here is the caller graph for this function:

Member Data Documentation

FileSystem* LibGlobals::file_system_
private

Definition at line 80 of file libcvmfs_int.h.

Referenced by file_system(), and ~LibGlobals().

LibGlobals * LibGlobals::instance_ = NULL
staticprivate

Definition at line 73 of file libcvmfs_int.h.

Referenced by GetInstance().

OptionsManager* LibGlobals::options_mgr_
private

Only non-NULL if cvmfs_init is used for initialization. In this case, the options manager needs to be cleaned up by cvmfs_fini.

Definition at line 79 of file libcvmfs_int.h.

Referenced by set_options_mgr(), and ~LibGlobals().


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