CernVM-FS
2.12.0
|
#include <server_tool.h>
Public Member Functions | |
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 |
Protected Attributes | |
UniquePtr < download::DownloadManager > | download_manager_ |
UniquePtr < signature::SignatureManager > | signature_manager_ |
perf::Statistics | statistics_ |
Static Private Attributes | |
static const unsigned | kDownloadTimeout = 60 |
static const unsigned | kDownloadRetries = 3 |
This file is part of the CernVM File System.
Definition at line 17 of file server_tool.h.
ServerTool::ServerTool | ( | ) |
This file is part of the CernVM File System.
Definition at line 9 of file server_tool.cc.
|
virtual |
manifest::Reflog * ServerTool::CreateEmptyReflog | ( | const std::string & | temp_directory, |
const std::string & | repo_name | ||
) |
Definition at line 168 of file server_tool.cc.
Referenced by swissknife::CommandReconstructReflog::Main().
download::DownloadManager * ServerTool::download_manager | ( | ) | const |
Definition at line 101 of file server_tool.cc.
Referenced by swissknife::CommandCheck::DownloadPiece(), swissknife::CommandCheck::Exists(), swissknife::CommandCheck::FetchPath(), FetchRemoteManifestEnsemble(), swissknife::CommandGc::Main(), swissknife::CommandReconstructReflog::Main(), swissknife::CommandListCatalogs::Main(), swissknife::Ingest::Main(), swissknife::CommandMigrate::Main(), receiver::CommitProcessor::Process(), and SigningTool::Run().
manifest::Reflog * ServerTool::FetchReflog | ( | ObjectFetcherT * | object_fetcher, |
const std::string & | repo_name, | ||
const shash::Any & | reflog_hash | ||
) |
This file is part of the CernVM File System.
Definition at line 11 of file server_tool_impl.h.
Referenced by swissknife::CommandGc::Main(), and SigningTool::Run().
manifest::Manifest * ServerTool::FetchRemoteManifest | ( | const std::string & | repository_url, |
const std::string & | repository_name, | ||
const shash::Any & | base_hash = shash::Any() |
||
) | const |
Definition at line 126 of file server_tool.cc.
Referenced by swissknife::Ingest::Main(), swissknife::CommandCheck::Main(), and receiver::CommitProcessor::Process().
manifest::Failures ServerTool::FetchRemoteManifestEnsemble | ( | const std::string & | repository_url, |
const std::string & | repository_name, | ||
manifest::ManifestEnsemble * | ensemble | ||
) | const |
Definition at line 116 of file server_tool.cc.
Referenced by FetchRemoteManifest().
bool ServerTool::InitDownloadManager | ( | const bool | follow_redirects, |
const std::string & | proxy, | ||
const unsigned | max_pool_handles = 1 |
||
) |
Definition at line 17 of file server_tool.cc.
Referenced by swissknife::CommandGc::Main(), swissknife::CommandReconstructReflog::Main(), swissknife::CommandListCatalogs::Main(), swissknife::Ingest::Main(), swissknife::CommandCheck::Main(), swissknife::CommandMigrate::Main(), receiver::CommitProcessor::Process(), and SigningTool::Run().
bool ServerTool::InitSigningSignatureManager | ( | const std::string & | certificate_path, |
const std::string & | private_key_path, | ||
const std::string & | private_key_password | ||
) |
Definition at line 62 of file server_tool.cc.
Referenced by SigningTool::Run().
bool ServerTool::InitVerifyingSignatureManager | ( | const std::string & | pubkey_path | ) |
Definition at line 44 of file server_tool.cc.
Referenced by swissknife::CommandGc::Main(), swissknife::CommandReconstructReflog::Main(), swissknife::CommandListCatalogs::Main(), swissknife::Ingest::Main(), swissknife::CommandCheck::Main(), swissknife::CommandMigrate::Main(), and receiver::CommitProcessor::Process().
manifest::Manifest * ServerTool::OpenLocalManifest | ( | const std::string | path | ) | const |
Definition at line 111 of file server_tool.cc.
Referenced by swissknife::CommandCheck::Main().
signature::SignatureManager * ServerTool::signature_manager | ( | ) | const |
Definition at line 106 of file server_tool.cc.
Referenced by FetchRemoteManifestEnsemble(), swissknife::CommandGc::Main(), swissknife::CommandReconstructReflog::Main(), swissknife::CommandListCatalogs::Main(), swissknife::CommandMigrate::Main(), and SigningTool::Run().
|
inline |
Definition at line 48 of file server_tool.h.
Referenced by InitDownloadManager(), swissknife::CommandGc::Main(), swissknife::Ingest::Main(), and main().
|
inline |
Definition at line 49 of file server_tool.h.
|
protected |
Definition at line 52 of file server_tool.h.
Referenced by download_manager(), and InitDownloadManager().
|
staticprivate |
Definition at line 58 of file server_tool.h.
Referenced by InitDownloadManager().
|
staticprivate |
Definition at line 57 of file server_tool.h.
Referenced by InitDownloadManager().
|
protected |
Definition at line 53 of file server_tool.h.
Referenced by InitSigningSignatureManager(), InitVerifyingSignatureManager(), signature_manager(), and ~ServerTool().
|
protected |
Definition at line 54 of file server_tool.h.
Referenced by statistics().