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

#include <swissknife_check.h>

Inheritance diagram for swissknife::CommandCheck:
Collaboration diagram for swissknife::CommandCheck:

Public Member Functions

 CommandCheck ()
 
 ~CommandCheck ()
 
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 ()
 
- Public Member Functions inherited from ServerTool
 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, const std::string &trusted_certs="")
 
bool InitSigningSignatureManager (const std::string &certificate_path, const std::string &private_key_path, const std::string &private_key_password)
 
manifest::ManifestOpenLocalManifest (const std::string path) const
 
manifest::Failures FetchRemoteManifestEnsemble (const std::string &repository_url, const std::string &repository_name, manifest::ManifestEnsemble *ensemble) const
 
manifest::ManifestFetchRemoteManifest (const std::string &repository_url, const std::string &repository_name, const shash::Any &base_hash=shash::Any()) const
 
template<class ObjectFetcherT >
manifest::ReflogFetchReflog (ObjectFetcherT *object_fetcher, const std::string &repo_name, const shash::Any &reflog_hash)
 
manifest::ReflogCreateEmptyReflog (const std::string &temp_directory, const std::string &repo_name)
 
download::DownloadManagerdownload_manager () const
 
signature::SignatureManagersignature_manager () const
 
perf::Statisticsstatistics ()
 
const perf::Statisticsstatistics () const
 

Protected Member Functions

bool InspectTree (const std::string &path, const shash::Any &catalog_hash, const uint64_t catalog_size, const bool is_nested_catalog, const catalog::DirectoryEntry *transition_point, catalog::DeltaCounters *computed_counters)
 
catalog::CatalogFetchCatalog (const std::string &path, const shash::Any &catalog_hash, const uint64_t catalog_size=0)
 
bool FindSubtreeRootCatalog (const std::string &subtree_path, shash::Any *root_hash, uint64_t *root_size)
 
std::string DecompressPiece (const shash::Any catalog_hash)
 
std::string DownloadPiece (const shash::Any catalog_hash)
 
std::string FetchPath (const std::string &path)
 
bool InspectReflog (const shash::Any &reflog_hash, manifest::Manifest *manifest)
 
bool InspectHistory (history::History *history)
 
bool Find (const catalog::Catalog *catalog, const PathString &path, catalog::DeltaCounters *computed_counters, std::set< PathString > *bind_mountpoints)
 
bool Exists (const std::string &file)
 
bool CompareCounters (const catalog::Counters &a, const catalog::Counters &b)
 
bool CompareEntries (const catalog::DirectoryEntry &a, const catalog::DirectoryEntry &b, const bool compare_names, const bool is_transition_point=false)
 

Private Attributes

std::string temp_directory_
 
std::string repo_base_path_
 
bool check_chunks_
 
bool is_remote_
 

Additional Inherited Members

- Static Public Attributes inherited from swissknife::Command
static const char kGenericParam = '+'
 
static const char kGenericParamSeparator = ','
 
- Protected Attributes inherited from ServerTool
UniquePtr
< download::DownloadManager
download_manager_
 
UniquePtr
< signature::SignatureManager
signature_manager_
 
perf::Statistics statistics_
 

Detailed Description

Definition at line 27 of file swissknife_check.h.

Constructor & Destructor Documentation

swissknife::CommandCheck::CommandCheck ( )
inline

Definition at line 29 of file swissknife_check.h.

swissknife::CommandCheck::~CommandCheck ( )
inline

Definition at line 32 of file swissknife_check.h.

Member Function Documentation

bool swissknife::CommandCheck::CompareCounters ( const catalog::Counters a,
const catalog::Counters b 
)
protected

Definition at line 119 of file swissknife_check.cc.

Here is the call graph for this function:

bool swissknife::CommandCheck::CompareEntries ( const catalog::DirectoryEntry a,
const catalog::DirectoryEntry b,
const bool  compare_names,
const bool  is_transition_point = false 
)
protected

Definition at line 40 of file swissknife_check.cc.

Here is the call graph for this function:

string swissknife::CommandCheck::DecompressPiece ( const shash::Any  catalog_hash)
protected

Definition at line 645 of file swissknife_check.cc.

Here is the call graph for this function:

string swissknife::CommandCheck::DownloadPiece ( const shash::Any  catalog_hash)
protected

Definition at line 629 of file swissknife_check.cc.

Here is the call graph for this function:

bool swissknife::CommandCheck::Exists ( const std::string &  file)
protected

Checks for existance of a file either locally or via HTTP head

Definition at line 148 of file swissknife_check.cc.

Here is the call graph for this function:

catalog::Catalog * swissknife::CommandCheck::FetchCatalog ( const std::string &  path,
const shash::Any catalog_hash,
const uint64_t  catalog_size = 0 
)
protected

Definition at line 655 of file swissknife_check.cc.

Here is the call graph for this function:

string swissknife::CommandCheck::FetchPath ( const std::string &  path)
protected

Copies a file from the repository into a temporary file.

Definition at line 163 of file swissknife_check.cc.

Here is the call graph for this function:

bool swissknife::CommandCheck::Find ( const catalog::Catalog catalog,
const PathString path,
catalog::DeltaCounters computed_counters,
std::set< PathString > *  bind_mountpoints 
)
protected

Recursive catalog walk-through

Definition at line 311 of file swissknife_check.cc.

Here is the call graph for this function:

bool swissknife::CommandCheck::FindSubtreeRootCatalog ( const std::string &  subtree_path,
shash::Any root_hash,
uint64_t *  root_size 
)
protected

Definition at line 688 of file swissknife_check.cc.

Here is the call graph for this function:

virtual std::string swissknife::CommandCheck::GetDescription ( ) const
inlinevirtual

Implements swissknife::Command.

Definition at line 34 of file swissknife_check.h.

virtual std::string swissknife::CommandCheck::GetName ( ) const
inlinevirtual

Implements swissknife::Command.

Definition at line 33 of file swissknife_check.h.

virtual ParameterList swissknife::CommandCheck::GetParams ( ) const
inlinevirtual

Implements swissknife::Command.

Definition at line 39 of file swissknife_check.h.

Here is the call graph for this function:

bool swissknife::CommandCheck::InspectHistory ( history::History history)
protected

Verifies the logical consistency of the tag database.

Definition at line 251 of file swissknife_check.cc.

Here is the call graph for this function:

bool swissknife::CommandCheck::InspectReflog ( const shash::Any reflog_hash,
manifest::Manifest manifest 
)
protected

Verifies reflog checksum and looks for presence of the entry points referenced in the manifest.

Definition at line 192 of file swissknife_check.cc.

Here is the call graph for this function:

bool swissknife::CommandCheck::InspectTree ( const std::string &  path,
const shash::Any catalog_hash,
const uint64_t  catalog_size,
const bool  is_nested_catalog,
const catalog::DirectoryEntry transition_point,
catalog::DeltaCounters computed_counters 
)
protected

Recursion on nested catalog level. No ownership of computed_counters.

Definition at line 733 of file swissknife_check.cc.

Here is the call graph for this function:

int swissknife::CommandCheck::Main ( const ArgumentList args)
virtual

Implements swissknife::Command.

Definition at line 889 of file swissknife_check.cc.

Here is the call graph for this function:

Member Data Documentation

bool swissknife::CommandCheck::check_chunks_
private

Definition at line 91 of file swissknife_check.h.

bool swissknife::CommandCheck::is_remote_
private

Definition at line 92 of file swissknife_check.h.

std::string swissknife::CommandCheck::repo_base_path_
private

Definition at line 90 of file swissknife_check.h.

std::string swissknife::CommandCheck::temp_directory_
private

Definition at line 89 of file swissknife_check.h.


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