CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
catalog::VirtualCatalog Class Reference

#include <catalog_virtual.h>

Collaboration diagram for catalog::VirtualCatalog:

Classes

struct  TagId
 

Public Member Functions

 VirtualCatalog (manifest::Manifest *m, download::DownloadManager *d, catalog::WritableCatalogManager *c, SyncParameters *p)
 
void Generate (int actions)
 

Static Public Member Functions

static bool ParseActions (const std::string &action_desc, unsigned *actions)
 

Static Public Attributes

static const char * kVirtualPath = ".cvmfs"
 
static const unsigned kActionNone = 0x00
 
static const unsigned kActionGenerateSnapshots = 0x01
 
static const unsigned kActionRemove = 0x02
 

Private Member Functions

void GenerateSnapshots ()
 
void EnsurePresence ()
 
void CreateCatalog ()
 
void CreateBaseDirectory ()
 
void CreateNestedCatalogMarker ()
 
void CreateSnapshotDirectory ()
 
void GetSortedTagsFromHistory (std::vector< TagId > *tags)
 
void GetSortedTagsFromCatalog (std::vector< TagId > *tags)
 
void RemoveSnapshot (TagId tag)
 
void InsertSnapshot (TagId tag)
 
void Remove ()
 
void RemoveRecursively (const std::string &directory)
 

Private Attributes

catalog::WritableCatalogManagercatalog_mgr_
 
swissknife::Assistant assistant_
 

Static Private Attributes

static const char * kSnapshotDirectory = "snapshots"
 

Detailed Description

Definition at line 28 of file catalog_virtual.h.

Constructor & Destructor Documentation

catalog::VirtualCatalog::VirtualCatalog ( manifest::Manifest m,
download::DownloadManager d,
catalog::WritableCatalogManager c,
SyncParameters p 
)

Definition at line 335 of file catalog_virtual.cc.

Member Function Documentation

void catalog::VirtualCatalog::CreateBaseDirectory ( )
private

Definition at line 33 of file catalog_virtual.cc.

Here is the call graph for this function:

void catalog::VirtualCatalog::CreateCatalog ( )
private
void catalog::VirtualCatalog::CreateNestedCatalogMarker ( )
private

Definition at line 69 of file catalog_virtual.cc.

Here is the call graph for this function:

void catalog::VirtualCatalog::CreateSnapshotDirectory ( )
private

Definition at line 94 of file catalog_virtual.cc.

Here is the call graph for this function:

void catalog::VirtualCatalog::EnsurePresence ( )
private

Checks for the top-level /.cvmfs directory and creates it as a nested catalog if necessary.

Definition at line 111 of file catalog_virtual.cc.

Here is the call graph for this function:

void catalog::VirtualCatalog::Generate ( int  actions)

Definition at line 125 of file catalog_virtual.cc.

Referenced by swissknife::CommandSync::Main().

Here is the caller graph for this function:

void catalog::VirtualCatalog::GenerateSnapshots ( )
private

Definition at line 135 of file catalog_virtual.cc.

Here is the call graph for this function:

void catalog::VirtualCatalog::GetSortedTagsFromCatalog ( std::vector< TagId > *  tags)
private

Definition at line 232 of file catalog_virtual.cc.

Here is the call graph for this function:

void catalog::VirtualCatalog::GetSortedTagsFromHistory ( std::vector< TagId > *  tags)
private

Definition at line 214 of file catalog_virtual.cc.

Here is the call graph for this function:

void catalog::VirtualCatalog::InsertSnapshot ( TagId  tag)
private

Definition at line 246 of file catalog_virtual.cc.

Here is the call graph for this function:

bool catalog::VirtualCatalog::ParseActions ( const std::string &  action_desc,
unsigned *  actions 
)
static

Definition at line 192 of file catalog_virtual.cc.

Referenced by swissknife::CommandSync::Main().

Here is the call graph for this function:

Here is the caller graph for this function:

void catalog::VirtualCatalog::Remove ( )
private

Definition at line 281 of file catalog_virtual.cc.

Here is the call graph for this function:

void catalog::VirtualCatalog::RemoveRecursively ( const std::string &  directory)
private

Definition at line 300 of file catalog_virtual.cc.

Here is the call graph for this function:

void catalog::VirtualCatalog::RemoveSnapshot ( TagId  tag)
private

Definition at line 320 of file catalog_virtual.cc.

Here is the call graph for this function:

Member Data Documentation

swissknife::Assistant catalog::VirtualCatalog::assistant_
private

Definition at line 76 of file catalog_virtual.h.

catalog::WritableCatalogManager* catalog::VirtualCatalog::catalog_mgr_
private

Definition at line 75 of file catalog_virtual.h.

const unsigned catalog::VirtualCatalog::kActionGenerateSnapshots = 0x01
static

Definition at line 32 of file catalog_virtual.h.

const unsigned catalog::VirtualCatalog::kActionNone = 0x00
static
const unsigned catalog::VirtualCatalog::kActionRemove = 0x02
static

Definition at line 33 of file catalog_virtual.h.

const char * catalog::VirtualCatalog::kSnapshotDirectory = "snapshots"
staticprivate

Definition at line 44 of file catalog_virtual.h.

const char * catalog::VirtualCatalog::kVirtualPath = ".cvmfs"
static

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