CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
swissknife::CommandMigrate::MigrationWorker_20x Class Reference

#include <swissknife_migrate.h>

Inheritance diagram for swissknife::CommandMigrate::MigrationWorker_20x:
Collaboration diagram for swissknife::CommandMigrate::MigrationWorker_20x:

Classes

struct  worker_context
 

Public Member Functions

 MigrationWorker_20x (const worker_context *context)
 
- Public Member Functions inherited from swissknife::CommandMigrate::AbstractMigrationWorker< MigrationWorker_20x >
 AbstractMigrationWorker (const worker_context *context)
 
virtual ~AbstractMigrationWorker ()
 
void operator() (const expected_data &data)
 
- Public Member Functions inherited from ConcurrentWorker< MigrationWorker_20x >
virtual ~ConcurrentWorker ()
 
virtual bool Initialize ()
 
virtual void TearDown ()
 

Protected Member Functions

bool RunMigration (PendingCatalog *data) const
 
bool CreateNewEmptyCatalog (PendingCatalog *data) const
 
bool CheckDatabaseSchemaCompatibility (PendingCatalog *data) const
 
bool AttachOldCatalogDatabase (PendingCatalog *data) const
 
bool StartDatabaseTransaction (PendingCatalog *data) const
 
bool MigrateFileMetadata (PendingCatalog *data) const
 
bool AnalyzeFileLinkcounts (PendingCatalog *data) const
 
bool RemoveDanglingNestedMountpoints (PendingCatalog *data) const
 
bool MigrateNestedCatalogMountPoints (PendingCatalog *data) const
 
bool FixNestedCatalogTransitionPoints (PendingCatalog *data) const
 
bool GenerateCatalogStatistics (PendingCatalog *data) const
 
bool FindRootEntryInformation (PendingCatalog *data) const
 
bool CommitDatabaseTransaction (PendingCatalog *data) const
 
bool DetachOldCatalogDatabase (PendingCatalog *data) const
 
- Protected Member Functions inherited from swissknife::CommandMigrate::AbstractMigrationWorker< MigrationWorker_20x >
bool RunMigration (PendingCatalog *data) const
 
bool UpdateNestedCatalogReferences (PendingCatalog *data) const
 
bool UpdateCatalogMetadata (PendingCatalog *data) const
 
bool CleanupNestedCatalogs (PendingCatalog *data) const
 
bool CollectAndAggregateStatistics (PendingCatalog *data) const
 
catalog::WritableCatalogGetWritable (const catalog::Catalog *catalog) const
 
- Protected Member Functions inherited from ConcurrentWorker< MigrationWorker_20x >
 ConcurrentWorker ()
 
ConcurrentWorkers
< MigrationWorker_20x > * 
master () const
 

Static Protected Attributes

static const float kSchema = 2.5
 
static const unsigned kSchemaRevision = 6
 

Private Attributes

const bool fix_nested_catalog_transitions_
 
const bool analyze_file_linkcounts_
 
const uid_t uid_
 
const gid_t gid_
 

Friends

class AbstractMigrationWorker< MigrationWorker_20x >
 

Additional Inherited Members

- Public Types inherited from swissknife::CommandMigrate::AbstractMigrationWorker< MigrationWorker_20x >
typedef
CommandMigrate::PendingCatalog
expected_data
 
typedef
CommandMigrate::PendingCatalog
returned_data
 
- Protected Attributes inherited from swissknife::CommandMigrate::AbstractMigrationWorker< MigrationWorker_20x >
const std::string temporary_directory_
 
const bool collect_catalog_statistics_
 
StopWatch migration_stopwatch_
 

Detailed Description

Definition at line 151 of file swissknife_migrate.h.

Constructor & Destructor Documentation

swissknife::CommandMigrate::MigrationWorker_20x::MigrationWorker_20x ( const worker_context context)
explicit

Definition at line 876 of file swissknife_migrate.cc.

Member Function Documentation

bool swissknife::CommandMigrate::MigrationWorker_20x::AnalyzeFileLinkcounts ( PendingCatalog data) const
protected

Definition at line 1173 of file swissknife_migrate.cc.

Here is the call graph for this function:

bool swissknife::CommandMigrate::MigrationWorker_20x::AttachOldCatalogDatabase ( PendingCatalog data) const
protected

Definition at line 973 of file swissknife_migrate.cc.

Here is the call graph for this function:

bool swissknife::CommandMigrate::MigrationWorker_20x::CheckDatabaseSchemaCompatibility ( PendingCatalog data) const
protected

Definition at line 949 of file swissknife_migrate.cc.

Here is the call graph for this function:

bool swissknife::CommandMigrate::MigrationWorker_20x::CommitDatabaseTransaction ( PendingCatalog data) const
protected

Definition at line 1665 of file swissknife_migrate.cc.

Here is the call graph for this function:

bool swissknife::CommandMigrate::MigrationWorker_20x::CreateNewEmptyCatalog ( PendingCatalog data) const
protected

Definition at line 907 of file swissknife_migrate.cc.

Here is the call graph for this function:

bool swissknife::CommandMigrate::MigrationWorker_20x::DetachOldCatalogDatabase ( PendingCatalog data) const
protected

Definition at line 1674 of file swissknife_migrate.cc.

Here is the call graph for this function:

bool swissknife::CommandMigrate::MigrationWorker_20x::FindRootEntryInformation ( PendingCatalog data) const
protected

Definition at line 1635 of file swissknife_migrate.cc.

Here is the call graph for this function:

bool swissknife::CommandMigrate::MigrationWorker_20x::FixNestedCatalogTransitionPoints ( PendingCatalog data) const
protected

Definition at line 1328 of file swissknife_migrate.cc.

Here is the call graph for this function:

bool swissknife::CommandMigrate::MigrationWorker_20x::GenerateCatalogStatistics ( PendingCatalog data) const
protected

Definition at line 1554 of file swissknife_migrate.cc.

Here is the call graph for this function:

bool swissknife::CommandMigrate::MigrationWorker_20x::MigrateFileMetadata ( PendingCatalog data) const
protected

Definition at line 1004 of file swissknife_migrate.cc.

Here is the call graph for this function:

bool swissknife::CommandMigrate::MigrationWorker_20x::MigrateNestedCatalogMountPoints ( PendingCatalog data) const
protected

Definition at line 1285 of file swissknife_migrate.cc.

Here is the call graph for this function:

bool swissknife::CommandMigrate::MigrationWorker_20x::RemoveDanglingNestedMountpoints ( PendingCatalog data) const
protected

Definition at line 1438 of file swissknife_migrate.cc.

Here is the call graph for this function:

bool swissknife::CommandMigrate::MigrationWorker_20x::RunMigration ( PendingCatalog data) const
protected

Definition at line 885 of file swissknife_migrate.cc.

Here is the call graph for this function:

bool swissknife::CommandMigrate::MigrationWorker_20x::StartDatabaseTransaction ( PendingCatalog data) const
protected

Definition at line 995 of file swissknife_migrate.cc.

Here is the call graph for this function:

Friends And Related Function Documentation

Definition at line 154 of file swissknife_migrate.h.

Member Data Documentation

const bool swissknife::CommandMigrate::MigrationWorker_20x::analyze_file_linkcounts_
private

Definition at line 203 of file swissknife_migrate.h.

const bool swissknife::CommandMigrate::MigrationWorker_20x::fix_nested_catalog_transitions_
private

Definition at line 202 of file swissknife_migrate.h.

const gid_t swissknife::CommandMigrate::MigrationWorker_20x::gid_
private

Definition at line 205 of file swissknife_migrate.h.

const float swissknife::CommandMigrate::MigrationWorker_20x::kSchema = 2.5
staticprotected

Those values must reflect the schema version in catalog_sql.h so that a legacy catalog migration generates always the latest catalog revision. This is a deliberately duplicated piece of information to ensure that always both the catalog management and migration classes get updated.

Definition at line 156 of file swissknife_migrate.h.

const unsigned swissknife::CommandMigrate::MigrationWorker_20x::kSchemaRevision = 6
staticprotected

Definition at line 157 of file swissknife_migrate.h.

const uid_t swissknife::CommandMigrate::MigrationWorker_20x::uid_
private

Definition at line 204 of file swissknife_migrate.h.


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