#include <swissknife_migrate.h>
|
| CommandMigrate () |
|
| ~CommandMigrate () |
|
virtual std::string | GetName () const |
|
virtual std::string | GetDescription () const |
|
virtual ParameterList | GetParams () const |
|
int | Main (const ArgumentList &args) |
|
Public Member Functions inherited from swissknife::Command |
| Command () |
|
virtual | ~Command () |
|
| ServerTool () |
|
virtual | ~ServerTool () |
|
bool | InitDownloadManager (const bool follow_redirects, const std::string &proxy, const unsigned max_pool_handles=1) |
|
bool | InitVerifyingSignatureManager (const std::string &pubkey_path) |
|
bool | InitSigningSignatureManager (const std::string &certificate_path, const std::string &private_key_path, const std::string &private_key_password) |
|
manifest::Manifest * | OpenLocalManifest (const std::string path) const |
|
manifest::Failures | FetchRemoteManifestEnsemble (const std::string &repository_url, const std::string &repository_name, manifest::ManifestEnsemble *ensemble) const |
|
manifest::Manifest * | FetchRemoteManifest (const std::string &repository_url, const std::string &repository_name, const shash::Any &base_hash=shash::Any()) const |
|
template<class ObjectFetcherT > |
manifest::Reflog * | FetchReflog (ObjectFetcherT *object_fetcher, const std::string &repo_name, const shash::Any &reflog_hash) |
|
manifest::Reflog * | CreateEmptyReflog (const std::string &temp_directory, const std::string &repo_name) |
|
download::DownloadManager * | download_manager () const |
|
signature::SignatureManager * | signature_manager () const |
|
perf::Statistics * | statistics () |
|
const perf::Statistics * | statistics () const |
|
|
template<class ObjectFetcherT > |
bool | LoadCatalogs (const shash::Any &manual_root_hash, ObjectFetcherT *object_fetcher) |
|
void | CatalogCallback (const CatalogTraversalData< catalog::WritableCatalog > &data) |
|
void | MigrationCallback (PendingCatalog *const &data) |
|
void | UploadCallback (const upload::SpoolerResult &result) |
|
void | PrintStatusMessage (const PendingCatalog *catalog, const shash::Any &content_hash, const std::string &message) |
|
template<class MigratorT > |
bool | DoMigrationAndCommit (const std::string &manifest_path, typename MigratorT::worker_context *context) |
|
template<class MigratorT > |
void | ConvertCatalogsRecursively (PendingCatalog *catalog, MigratorT *migrator) |
|
bool | RaiseFileDescriptorLimit () const |
|
bool | ConfigureSQLite () const |
|
void | AnalyzeCatalogStatistics () const |
|
bool | ReadPersona (const std::string &uid, const std::string &gid) |
|
bool | ReadPersonaMaps (const std::string &uid_map_path, const std::string &gid_map_path, UidMap *uid_map, GidMap *gid_map) const |
|
bool | GenerateNestedCatalogMarkerChunk () |
|
void | CreateNestedCatalogMarkerDirent (const shash::Any &content_hash) |
|
void | UploadHistoryClosure (const upload::SpoolerResult &result, Future< shash::Any > *hash) |
|
bool | UpdateUndoTags (PendingCatalog *root_catalog, uint64_t revision, time_t timestamp, shash::Any *history_hash) |
|
Definition at line 34 of file swissknife_migrate.h.
swissknife::CommandMigrate::CommandMigrate |
( |
| ) |
|
swissknife::CommandMigrate::~CommandMigrate |
( |
| ) |
|
|
inline |
void swissknife::CommandMigrate::AnalyzeCatalogStatistics |
( |
| ) |
const |
|
protected |
bool swissknife::CommandMigrate::ConfigureSQLite |
( |
| ) |
const |
|
protected |
template<class MigratorT >
void swissknife::CommandMigrate::ConvertCatalogsRecursively |
( |
PendingCatalog * |
catalog, |
|
|
MigratorT * |
migrator |
|
) |
| |
|
protected |
void swissknife::CommandMigrate::CreateNestedCatalogMarkerDirent |
( |
const shash::Any & |
content_hash | ) |
|
|
protected |
template<class MigratorT >
bool swissknife::CommandMigrate::DoMigrationAndCommit |
( |
const std::string & |
manifest_path, |
|
|
typename MigratorT::worker_context * |
context |
|
) |
| |
|
protected |
bool swissknife::CommandMigrate::GenerateNestedCatalogMarkerChunk |
( |
| ) |
|
|
protected |
virtual std::string swissknife::CommandMigrate::GetDescription |
( |
| ) |
const |
|
inlinevirtual |
virtual std::string swissknife::CommandMigrate::GetName |
( |
| ) |
const |
|
inlinevirtual |
template<class ObjectFetcherT >
bool swissknife::CommandMigrate::LoadCatalogs |
( |
const shash::Any & |
manual_root_hash, |
|
|
ObjectFetcherT * |
object_fetcher |
|
) |
| |
|
inlineprotected |
int swissknife::CommandMigrate::Main |
( |
const ArgumentList & |
args | ) |
|
|
virtual |
void swissknife::CommandMigrate::MigrationCallback |
( |
PendingCatalog *const & |
data | ) |
|
|
protected |
void swissknife::CommandMigrate::PrintStatusMessage |
( |
const PendingCatalog * |
catalog, |
|
|
const shash::Any & |
content_hash, |
|
|
const std::string & |
message |
|
) |
| |
|
protected |
bool swissknife::CommandMigrate::RaiseFileDescriptorLimit |
( |
| ) |
const |
|
protected |
bool swissknife::CommandMigrate::ReadPersona |
( |
const std::string & |
uid, |
|
|
const std::string & |
gid |
|
) |
| |
|
protected |
bool swissknife::CommandMigrate::ReadPersonaMaps |
( |
const std::string & |
uid_map_path, |
|
|
const std::string & |
gid_map_path, |
|
|
UidMap * |
uid_map, |
|
|
GidMap * |
gid_map |
|
) |
| const |
|
protected |
bool swissknife::CommandMigrate::UpdateUndoTags |
( |
PendingCatalog * |
root_catalog, |
|
|
uint64_t |
revision, |
|
|
time_t |
timestamp, |
|
|
shash::Any * |
history_hash |
|
) |
| |
|
protected |
unsigned int swissknife::CommandMigrate::catalog_count_ |
|
private |
StopWatch swissknife::CommandMigrate::catalog_loading_stopwatch_ |
|
private |
atomic_int32 swissknife::CommandMigrate::catalogs_processed_ |
|
private |
unsigned int swissknife::CommandMigrate::file_descriptor_limit_ |
|
private |
gid_t swissknife::CommandMigrate::gid_ |
|
private |
bool swissknife::CommandMigrate::has_committed_new_revision_ |
|
private |
StopWatch swissknife::CommandMigrate::migration_stopwatch_ |
|
private |
std::string swissknife::CommandMigrate::nested_catalog_marker_tmp_path_ |
|
private |
UniquePtr<upload::Spooler> swissknife::CommandMigrate::spooler_ |
|
private |
std::string swissknife::CommandMigrate::temporary_directory_ |
|
private |
uid_t swissknife::CommandMigrate::uid_ |
|
private |
The documentation for this class was generated from the following files: