CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
swissknife::CommandMigrate::AbstractMigrationWorker< DerivedT > Class Template Reference

#include <swissknife_migrate.h>

Inheritance diagram for swissknife::CommandMigrate::AbstractMigrationWorker< DerivedT >:
Collaboration diagram for swissknife::CommandMigrate::AbstractMigrationWorker< DerivedT >:

Classes

struct  worker_context
 

Public Types

typedef
CommandMigrate::PendingCatalog
expected_data
 
typedef
CommandMigrate::PendingCatalog
returned_data
 

Public Member Functions

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

Protected Member Functions

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< DerivedT >
 ConcurrentWorker ()
 
ConcurrentWorkers< DerivedT > * master () const
 

Protected Attributes

const std::string temporary_directory_
 
const bool collect_catalog_statistics_
 
StopWatch migration_stopwatch_
 

Detailed Description

template<class DerivedT>
class swissknife::CommandMigrate::AbstractMigrationWorker< DerivedT >

Definition at line 114 of file swissknife_migrate.h.

Member Typedef Documentation

Definition at line 116 of file swissknife_migrate.h.

Definition at line 117 of file swissknife_migrate.h.

Constructor & Destructor Documentation

template<class DerivedT >
swissknife::CommandMigrate::AbstractMigrationWorker< DerivedT >::AbstractMigrationWorker ( const worker_context context)
explicit

Definition at line 703 of file swissknife_migrate.cc.

template<class DerivedT >
swissknife::CommandMigrate::AbstractMigrationWorker< DerivedT >::~AbstractMigrationWorker ( )
virtual

Definition at line 711 of file swissknife_migrate.cc.

Member Function Documentation

template<class DerivedT >
bool swissknife::CommandMigrate::AbstractMigrationWorker< DerivedT >::CleanupNestedCatalogs ( PendingCatalog data) const
protected

Definition at line 839 of file swissknife_migrate.cc.

template<class DerivedT >
bool swissknife::CommandMigrate::AbstractMigrationWorker< DerivedT >::CollectAndAggregateStatistics ( PendingCatalog data) const
protected

Definition at line 807 of file swissknife_migrate.cc.

Here is the call graph for this function:

template<class DerivedT >
catalog::WritableCatalog * swissknife::CommandMigrate::AbstractMigrationWorker< DerivedT >::GetWritable ( const catalog::Catalog catalog) const
protected

Definition at line 867 of file swissknife_migrate.cc.

template<class DerivedT >
void swissknife::CommandMigrate::AbstractMigrationWorker< DerivedT >::operator() ( const expected_data data)

Definition at line 715 of file swissknife_migrate.cc.

Here is the call graph for this function:

template<class DerivedT>
bool swissknife::CommandMigrate::AbstractMigrationWorker< DerivedT >::RunMigration ( PendingCatalog data) const
inlineprotected

Definition at line 135 of file swissknife_migrate.h.

template<class DerivedT >
bool swissknife::CommandMigrate::AbstractMigrationWorker< DerivedT >::UpdateCatalogMetadata ( PendingCatalog data) const
protected

Definition at line 785 of file swissknife_migrate.cc.

Here is the call graph for this function:

template<class DerivedT >
bool swissknife::CommandMigrate::AbstractMigrationWorker< DerivedT >::UpdateNestedCatalogReferences ( PendingCatalog data) const
protected

Definition at line 740 of file swissknife_migrate.cc.

Here is the call graph for this function:

Member Data Documentation

template<class DerivedT>
const bool swissknife::CommandMigrate::AbstractMigrationWorker< DerivedT >::collect_catalog_statistics_
protected

Definition at line 147 of file swissknife_migrate.h.

template<class DerivedT>
StopWatch swissknife::CommandMigrate::AbstractMigrationWorker< DerivedT >::migration_stopwatch_
protected

Definition at line 149 of file swissknife_migrate.h.

template<class DerivedT>
const std::string swissknife::CommandMigrate::AbstractMigrationWorker< DerivedT >::temporary_directory_
protected

Definition at line 146 of file swissknife_migrate.h.


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