CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
swissknife::CatalogTraversalBase< ObjectFetcherT >::Parameters Struct Reference

#include <catalog_traversal.h>

Public Member Functions

 Parameters ()
 

Public Attributes

ObjectFetcherT * object_fetcher
 
unsigned int history
 
time_t timestamp
 
bool no_repeat_history
 
bool no_close
 
bool ignore_load_failure
 
bool quiet
 
unsigned int num_threads
 
bool serialize_callbacks
 

Static Public Attributes

static const unsigned int kFullHistory
 
static const unsigned int kNoHistory = 0
 
static const time_t kNoTimestampThreshold = 0
 

Detailed Description

template<class ObjectFetcherT>
struct swissknife::CatalogTraversalBase< ObjectFetcherT >::Parameters

Parameters
repo_urlthe path to the repository to be traversed: -> either absolute path to the local catalogs -> or an URL to a remote repository
repo_namefully qualified repository name (used for remote repository signature check) (optional)
repo_keysa comma separated list of public key file locations to verify the repository manifest file
historydepth of the desired catalog history traversal (default: 0 - only HEAD catalogs are traversed)
timestamptimestamp of history traversal threshold (default: 0 - no threshold, traverse everything)
no_repeat_historykeep track of visited catalogs and don't re-visit them in previous revisions
no_closedo not close catalogs after they were attached (catalogs retain their parent/child pointers)
ignore_load_failuresuppressed an error message if a catalog file could not be loaded (i.e. was sweeped before by a garbage collection run)
quietsilence messages that would go to stderr
tmp_dirpath to the temporary directory to be used (default: /tmp)

ONLY FOR CatalogTraversalParallel

Parameters
num_threadsnumber of threads concurrently traversing the catalog trees; hint: set up based on CPU utilization and optimal number of download threads (default: 8)
serialize_callbacksdo not call multiple catalog callbacks concurrently; ensures safe access to shared variables inside the callback; turn off if the registered callback is thread-safe (default: true)

Definition at line 133 of file catalog_traversal.h.

Constructor & Destructor Documentation

template<class ObjectFetcherT >
swissknife::CatalogTraversalBase< ObjectFetcherT >::Parameters::Parameters ( )
inline

Definition at line 134 of file catalog_traversal.h.

Member Data Documentation

template<class ObjectFetcherT >
unsigned int swissknife::CatalogTraversalBase< ObjectFetcherT >::Parameters::history

Definition at line 151 of file catalog_traversal.h.

template<class ObjectFetcherT >
bool swissknife::CatalogTraversalBase< ObjectFetcherT >::Parameters::ignore_load_failure

Definition at line 155 of file catalog_traversal.h.

template<class ObjectFetcherT >
const unsigned int swissknife::CatalogTraversalBase< ObjectFetcherT >::Parameters::kFullHistory
static
Initial value:
=
std::numeric_limits<unsigned int>::max()

Definition at line 145 of file catalog_traversal.h.

template<class ObjectFetcherT >
bool swissknife::CatalogTraversalBase< ObjectFetcherT >::Parameters::no_close

Definition at line 154 of file catalog_traversal.h.

Referenced by swissknife::CommandMigrate::LoadCatalogs().

template<class ObjectFetcherT >
bool swissknife::CatalogTraversalBase< ObjectFetcherT >::Parameters::no_repeat_history

Definition at line 153 of file catalog_traversal.h.

template<class ObjectFetcherT >
unsigned int swissknife::CatalogTraversalBase< ObjectFetcherT >::Parameters::num_threads

Definition at line 158 of file catalog_traversal.h.

template<class ObjectFetcherT >
ObjectFetcherT* swissknife::CatalogTraversalBase< ObjectFetcherT >::Parameters::object_fetcher
template<class ObjectFetcherT >
bool swissknife::CatalogTraversalBase< ObjectFetcherT >::Parameters::quiet

Definition at line 156 of file catalog_traversal.h.

template<class ObjectFetcherT >
bool swissknife::CatalogTraversalBase< ObjectFetcherT >::Parameters::serialize_callbacks

Definition at line 159 of file catalog_traversal.h.

template<class ObjectFetcherT >
time_t swissknife::CatalogTraversalBase< ObjectFetcherT >::Parameters::timestamp

Definition at line 152 of file catalog_traversal.h.


The documentation for this struct was generated from the following file: