CernVM-FS  2.9.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 ()
 

Static Private Member Functions

static void CallbackLibcryptoLock (int mode, int type, const char *file, int line)
 
static unsigned long CallbackLibcryptoThreadId ()
 

Private Attributes

OptionsManageroptions_mgr_
 
FileSystemfile_system_
 
pthread_mutex_t * libcrypto_locks_
 

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 60 of file libcvmfs_int.h.

Constructor & Destructor Documentation

LibGlobals::LibGlobals ( )
private

Definition at line 146 of file libcvmfs_int.cc.

LibGlobals::~LibGlobals ( )
private

Definition at line 153 of file libcvmfs_int.cc.

Member Function Documentation

void LibGlobals::CallbackLibcryptoLock ( int  mode,
int  type,
const char *  file,
int  line 
)
staticprivate

Definition at line 166 of file libcvmfs_int.cc.

Referenced by Initialize().

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned long LibGlobals::CallbackLibcryptoThreadId ( )
staticprivate

Definition at line 190 of file libcvmfs_int.cc.

Referenced by Initialize().

Here is the call graph for this function:

Here is the caller graph for this function:

void LibGlobals::CleanupInstance ( )
static

Definition at line 137 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 66 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 CallbackLibcryptoLock(), 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 67 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 84 of file libcvmfs_int.h.

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

LibGlobals * LibGlobals::instance_ = NULL
staticprivate

Definition at line 77 of file libcvmfs_int.h.

Referenced by GetInstance().

pthread_mutex_t* LibGlobals::libcrypto_locks_
private

Definition at line 86 of file libcvmfs_int.h.

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

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 83 of file libcvmfs_int.h.

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


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