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

#include <swissknife_filestats.h>

Inheritance diagram for swissknife::CommandFileStats:
Collaboration diagram for swissknife::CommandFileStats:

Public Member Functions

 ~CommandFileStats ()
 
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)
 
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

template<class ObjectFetcherT >
bool Run (ObjectFetcherT *object_fetcher)
 
void CatalogCallback (const CatalogTraversalData< catalog::Catalog > &data)
 
void ProcessCatalog (string db_path)
 

Static Protected Member Functions

static void * MainProcessing (void *data)
 

Protected Attributes

string db_path_
 
string tmp_db_path_
 
FileStatsDatabasedb_
 
pthread_t thread_processing_
 
atomic_int32 num_downloaded_
 
atomic_int32 finished_
 
- Protected Attributes inherited from ServerTool
UniquePtr
< download::DownloadManager
download_manager_
 
UniquePtr
< signature::SignatureManager
signature_manager_
 
perf::Statistics statistics_
 

Additional Inherited Members

- Static Public Attributes inherited from swissknife::Command
static const char kGenericParam = '+'
 
static const char kGenericParamSeparator = ','
 

Detailed Description

Definition at line 57 of file swissknife_filestats.h.

Constructor & Destructor Documentation

swissknife::CommandFileStats::~CommandFileStats ( )
inline

Definition at line 59 of file swissknife_filestats.h.

Member Function Documentation

void swissknife::CommandFileStats::CatalogCallback ( const CatalogTraversalData< catalog::Catalog > &  data)
protected

Definition at line 105 of file swissknife_filestats.cc.

Here is the call graph for this function:

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

Implements swissknife::Command.

Definition at line 61 of file swissknife_filestats.h.

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

Implements swissknife::Command.

Definition at line 60 of file swissknife_filestats.h.

ParameterList swissknife::CommandFileStats::GetParams ( ) const
virtual

Implements swissknife::Command.

Definition at line 18 of file swissknife_filestats.cc.

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

Implements swissknife::Command.

Definition at line 31 of file swissknife_filestats.cc.

Here is the call graph for this function:

void * swissknife::CommandFileStats::MainProcessing ( void *  data)
staticprotected

Definition at line 113 of file swissknife_filestats.cc.

Here is the call graph for this function:

void swissknife::CommandFileStats::ProcessCatalog ( string  db_path)
protected

Definition at line 138 of file swissknife_filestats.cc.

Referenced by MainProcessing().

Here is the call graph for this function:

Here is the caller graph for this function:

template<class ObjectFetcherT >
bool swissknife::CommandFileStats::Run ( ObjectFetcherT *  object_fetcher)
protected

Definition at line 77 of file swissknife_filestats.cc.

Here is the call graph for this function:

Member Data Documentation

FileStatsDatabase* swissknife::CommandFileStats::db_
protected

Definition at line 70 of file swissknife_filestats.h.

Referenced by MainProcessing().

string swissknife::CommandFileStats::db_path_
protected

Definition at line 68 of file swissknife_filestats.h.

atomic_int32 swissknife::CommandFileStats::finished_
protected

Definition at line 74 of file swissknife_filestats.h.

Referenced by MainProcessing().

atomic_int32 swissknife::CommandFileStats::num_downloaded_
protected

Definition at line 73 of file swissknife_filestats.h.

Referenced by MainProcessing().

pthread_t swissknife::CommandFileStats::thread_processing_
protected

Definition at line 72 of file swissknife_filestats.h.

string swissknife::CommandFileStats::tmp_db_path_
protected

Definition at line 69 of file swissknife_filestats.h.

Referenced by MainProcessing().


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