CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gc_aux.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_GARBAGE_COLLECTION_GC_AUX_H_
6 #define CVMFS_GARBAGE_COLLECTION_GC_AUX_H_
7 
8 #include <string>
9 
11 #include "reflog_sql.h"
12 
33 template<class CatalogTraversalT, class HashFilterT>
35  typedef typename CatalogTraversalT::ObjectFetcherTN ObjectFetcherTN;
36  typedef typename ObjectFetcherTN::ReflogTN ReflogTN;
37  typedef typename
40 
41  public:
42  explicit GarbageCollectorAux(const ConfigurationTN &config);
43 
44  bool CollectOlderThan(uint64_t timestamp,
45  const HashFilterT &preserved_objects);
46 
47  private:
49  bool Sweep(const shash::Any &hash);
50 
52 }; // class GarbageCollectorAux
53 
54 #include "gc_aux_impl.h"
55 
56 #endif // CVMFS_GARBAGE_COLLECTION_GC_AUX_H_
std::string PrintAuxType(SqlReflog::ReferenceType type)
Definition: gc_aux_impl.h:72
GarbageCollectorAux(const ConfigurationTN &config)
Definition: gc_aux_impl.h:16
GarbageCollector< CatalogTraversalT, HashFilterT >::Configuration ConfigurationTN
Definition: gc_aux.h:39
bool Sweep(const shash::Any &hash)
Definition: gc_aux_impl.h:91
CatalogTraversalT::ObjectFetcherTN ObjectFetcherTN
Definition: gc_aux.h:35
ObjectFetcherTN::ReflogTN ReflogTN
Definition: gc_aux.h:36
bool CollectOlderThan(uint64_t timestamp, const HashFilterT &preserved_objects)
Definition: gc_aux_impl.h:25
const ConfigurationTN config_
Definition: gc_aux.h:51