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

#include <swissknife_graft.h>

Inheritance diagram for swissknife::CommandGraft:
Collaboration diagram for swissknife::CommandGraft:

Public Member Functions

 ~CommandGraft ()
 
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 unsigned max_pool_handles=1, const bool use_system_proxy=true)
 
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
 

Static Public Attributes

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

Private Member Functions

int Publish (const std::string &input_file, const std::string &output_file, bool output_file_is_dir, bool input_file_is_stdin)
 
int Recurse (const std::string &input_file, const std::string &output_file)
 
void FileCallback (const std::string &relative_path, const std::string &file_name)
 
bool DirCallback (const std::string &relative_path, const std::string &dir_name)
 
bool ChecksumFdWithChunks (int fd, zlib::Compressor *compressor, uint64_t *file_size, shash::Any *file_hash, std::vector< uint64_t > *chunk_offsets, std::vector< shash::Any > *chunk_checksums)
 

Private Attributes

std::string output_file_
 
std::string input_file_
 
bool verbose_
 
zlib::Algorithms compression_alg_
 
shash::Algorithms hash_alg_
 
uint64_t chunk_size_
 
bool generate_bulk_hash_
 

Additional Inherited Members

- Protected Attributes inherited from ServerTool
UniquePtr
< download::DownloadManager
download_manager_
 
UniquePtr
< signature::SignatureManager
signature_manager_
 
perf::Statistics statistics_
 

Detailed Description

Definition at line 21 of file swissknife_graft.h.

Constructor & Destructor Documentation

swissknife::CommandGraft::~CommandGraft ( )
inline

Definition at line 25 of file swissknife_graft.h.

Member Function Documentation

bool swissknife::CommandGraft::ChecksumFdWithChunks ( int  fd,
zlib::Compressor compressor,
uint64_t *  file_size,
shash::Any file_hash,
std::vector< uint64_t > *  chunk_offsets,
std::vector< shash::Any > *  chunk_checksums 
)
private

This file is part of the CernVM File System.

Process a set of input files and create appropriate graft files.

Definition at line 21 of file swissknife_graft.cc.

Here is the call graph for this function:

bool swissknife::CommandGraft::DirCallback ( const std::string &  relative_path,
const std::string &  dir_name 
)
private

Definition at line 126 of file swissknife_graft.cc.

Referenced by Recurse().

Here is the call graph for this function:

Here is the caller graph for this function:

void swissknife::CommandGraft::FileCallback ( const std::string &  relative_path,
const std::string &  file_name 
)
private

Definition at line 144 of file swissknife_graft.cc.

Referenced by Recurse().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements swissknife::Command.

Definition at line 27 of file swissknife_graft.h.

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

Implements swissknife::Command.

Definition at line 26 of file swissknife_graft.h.

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

Implements swissknife::Command.

Definition at line 30 of file swissknife_graft.h.

Here is the call graph for this function:

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

Implements swissknife::Command.

Definition at line 158 of file swissknife_graft.cc.

Here is the call graph for this function:

int swissknife::CommandGraft::Publish ( const std::string &  input_file,
const std::string &  output_file,
bool  output_file_is_dir,
bool  input_file_is_stdin 
)
private

Definition at line 217 of file swissknife_graft.cc.

Here is the call graph for this function:

int swissknife::CommandGraft::Recurse ( const std::string &  input_file,
const std::string &  output_file 
)
private

Definition at line 336 of file swissknife_graft.cc.

Here is the call graph for this function:

Member Data Documentation

uint64_t swissknife::CommandGraft::chunk_size_
private

Definition at line 69 of file swissknife_graft.h.

Referenced by ChecksumFdWithChunks().

zlib::Algorithms swissknife::CommandGraft::compression_alg_
private

Definition at line 67 of file swissknife_graft.h.

bool swissknife::CommandGraft::generate_bulk_hash_
private

Definition at line 70 of file swissknife_graft.h.

Referenced by ChecksumFdWithChunks().

shash::Algorithms swissknife::CommandGraft::hash_alg_
private

Definition at line 68 of file swissknife_graft.h.

Referenced by ChecksumFdWithChunks().

std::string swissknife::CommandGraft::input_file_
private

Definition at line 65 of file swissknife_graft.h.

const unsigned swissknife::CommandGraft::kDefaultChunkSize = 24
static

Definition at line 23 of file swissknife_graft.h.

Referenced by GetParams().

std::string swissknife::CommandGraft::output_file_
private

Definition at line 64 of file swissknife_graft.h.

bool swissknife::CommandGraft::verbose_
private

Definition at line 66 of file swissknife_graft.h.


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