CernVM-FS
2.12.0
|
#include <object_fetcher.h>
Public Types | |
typedef BaseTN::Failures | Failures |
Public Types inherited from AbstractObjectFetcher< LocalObjectFetcher< CatalogT, HistoryT, ReflogT > > | |
typedef object_fetcher_traits < LocalObjectFetcher< CatalogT, HistoryT, ReflogT > >::CatalogTN | CatalogTN |
typedef object_fetcher_traits < LocalObjectFetcher< CatalogT, HistoryT, ReflogT > >::HistoryTN | HistoryTN |
typedef object_fetcher_traits < LocalObjectFetcher< CatalogT, HistoryT, ReflogT > >::ReflogTN | ReflogTN |
typedef ObjectFetcherFailures::Failures | Failures |
Public Types inherited from ObjectFetcherFailures | |
enum | Failures { kFailOk, kFailNotFound, kFailLocalIO, kFailNetwork, kFailDecompression, kFailManifestNameMismatch, kFailManifestSignatureMismatch, kFailBadData, kFailUnknown, kFailNumEntries } |
Public Member Functions | |
LocalObjectFetcher (const std::string &base_path, const std::string &temp_dir) | |
Failures | FetchManifest (manifest::Manifest **manifest) |
std::string | GetUrl (const shash::Any &hash) const |
Failures | Fetch (const shash::Any &object_hash, std::string *file_path) |
Failures | Fetch (const std::string &relative_path, const bool decompress, const bool, std::string *file_path) |
Public Member Functions inherited from AbstractObjectFetcher< LocalObjectFetcher< CatalogT, HistoryT, ReflogT > > | |
Failures | FetchManifest (manifest::Manifest **manifest) |
Failures | FetchManifest (UniquePtr< manifest::Manifest > *manifest) |
Failures | FetchHistory (HistoryTN **history, const shash::Any &history_hash=shash::Any()) |
Failures | FetchHistory (UniquePtr< HistoryTN > *history, const shash::Any &history_hash=shash::Any()) |
Failures | FetchCatalog (const shash::Any &catalog_hash, const std::string &catalog_path, CatalogTN **catalog, const bool is_nested=false, CatalogTN *parent=NULL) |
Failures | FetchCatalog (const shash::Any &catalog_hash, const std::string &catalog_path, UniquePtr< CatalogTN > *catalog, const bool is_nested=false, CatalogTN *parent=NULL) |
Failures | FetchReflog (const shash::Any &reflog_hash, ReflogTN **reflog) |
Failures | FetchReflog (const shash::Any &reflog_hash, UniquePtr< ReflogTN > *reflog) |
std::string | GetUrl (const shash::Any &hash) const |
bool | HasHistory () |
const std::string & | temporary_directory () const |
Protected Types | |
typedef LocalObjectFetcher < CatalogT, HistoryT, ReflogT > | ThisTN |
typedef AbstractObjectFetcher < ThisTN > | BaseTN |
Protected Member Functions | |
std::string | BuildPath (const std::string &relative_path) const |
std::string | BuildRelativePath (const shash::Any &hash) const |
Protected Member Functions inherited from AbstractObjectFetcher< LocalObjectFetcher< CatalogT, HistoryT, ReflogT > > | |
AbstractObjectFetcher (const std::string &temp_dir) | |
Failures | Fetch (const shash::Any &object_hash, std::string *file_path) |
Failures | Fetch (const std::string &relative_path, const bool decompress, const bool nocache, std::string *file_path) |
shash::Any | GetHistoryHash () |
Private Attributes | |
const std::string | base_path_ |
Additional Inherited Members | |
Static Public Attributes inherited from AbstractObjectFetcher< LocalObjectFetcher< CatalogT, HistoryT, ReflogT > > | |
static const std::string | kManifestFilename |
static const std::string | kReflogFilename |
This is an AbstractObjectFetcher<> accessing locally stored repository files. Note that this implementation does not take care of any repository signature verification.
Definition at line 329 of file object_fetcher.h.
|
protected |
Definition at line 334 of file object_fetcher.h.
typedef BaseTN::Failures LocalObjectFetcher< CatalogT, HistoryT, ReflogT >::Failures |
Definition at line 337 of file object_fetcher.h.
|
protected |
Definition at line 333 of file object_fetcher.h.
|
inline |
LocalObjectFetcher can reside on the stack or the heap.
base_path | the path to the repository's backend storage |
temp_dir | location to store decompressed tmp data |
Definition at line 346 of file object_fetcher.h.
|
inlineprotected |
Definition at line 424 of file object_fetcher.h.
Referenced by LocalObjectFetcher< CatalogT, HistoryT, ReflogT >::Fetch(), LocalObjectFetcher< CatalogT, HistoryT, ReflogT >::FetchManifest(), and LocalObjectFetcher< CatalogT, HistoryT, ReflogT >::GetUrl().
|
inlineprotected |
Definition at line 428 of file object_fetcher.h.
Referenced by LocalObjectFetcher< CatalogT, HistoryT, ReflogT >::Fetch(), and LocalObjectFetcher< CatalogT, HistoryT, ReflogT >::GetUrl().
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 433 of file object_fetcher.h.
Referenced by LocalObjectFetcher< CatalogT, HistoryT, ReflogT >::BuildPath().