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

#include <server_tool.h>

Inheritance diagram for ServerTool:
Collaboration diagram for ServerTool:

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::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 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
 

Detailed Description

This file is part of the CernVM File System.

Definition at line 17 of file server_tool.h.

Constructor & Destructor Documentation

ServerTool::ServerTool ( )

This file is part of the CernVM File System.

Definition at line 9 of file server_tool.cc.

ServerTool::~ServerTool ( )
virtual

Definition at line 11 of file server_tool.cc.

Here is the call graph for this function:

Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

template<class ObjectFetcherT >
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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

bool ServerTool::InitDownloadManager ( const bool  follow_redirects,
const std::string &  proxy,
const unsigned  max_pool_handles = 1 
)
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().

Here is the call graph for this function:

Here is the caller graph for this function:

bool ServerTool::InitVerifyingSignatureManager ( const std::string &  pubkey_path)
manifest::Manifest * ServerTool::OpenLocalManifest ( const std::string  path) const

Definition at line 111 of file server_tool.cc.

Referenced by swissknife::CommandCheck::Main().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

perf::Statistics* ServerTool::statistics ( )
inline

Definition at line 48 of file server_tool.h.

Referenced by InitDownloadManager(), swissknife::CommandGc::Main(), swissknife::Ingest::Main(), and main().

Here is the caller graph for this function:

const perf::Statistics* ServerTool::statistics ( ) const
inline

Definition at line 49 of file server_tool.h.

Member Data Documentation

UniquePtr<download::DownloadManager> ServerTool::download_manager_
protected

Definition at line 52 of file server_tool.h.

Referenced by download_manager(), and InitDownloadManager().

const unsigned ServerTool::kDownloadRetries = 3
staticprivate

Definition at line 58 of file server_tool.h.

Referenced by InitDownloadManager().

const unsigned ServerTool::kDownloadTimeout = 60
staticprivate

Definition at line 57 of file server_tool.h.

Referenced by InitDownloadManager().

UniquePtr<signature::SignatureManager> ServerTool::signature_manager_
protected
perf::Statistics ServerTool::statistics_
protected

Definition at line 54 of file server_tool.h.

Referenced by statistics().


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