5 #ifndef CVMFS_STATISTICS_DATABASE_H_
6 #define CVMFS_STATISTICS_DATABASE_H_
28 bool StoreEntry(
const std::string &insert_statement);
35 bool Prune(uint32_t days);
70 const std::string &start_time,
79 const std::string &start_time,
91 std::string local_path =
"");
100 std::string local_path =
"");
117 static void GetDBParams(
const std::string &repo_name,
119 uint32_t *days_to_keep);
134 #endif // CVMFS_STATISTICS_DATABASE_H_
StatisticsDatabase(const std::string &filename, const OpenMode open_mode)
const std::string & filename() const
bool UploadStatistics(upload::Spooler *spooler, std::string local_path="")
bool StoreGCStatistics(const perf::Statistics *statistics, const std::string &start_time, const bool success)
static unsigned int instances
bool CreateEmptyDatabase()
unsigned int live_upgrade_calls
bool Prune(uint32_t days)
upload::Spooler * spooler
bool LiveSchemaUpgradeIfNecessary()
static bool compacting_fails
static const float kLatestCompatibleSchema
unsigned int create_empty_db_calls
static float kLatestSchema
unsigned int check_compatibility_calls
static unsigned kLatestSchemaRevision
static StatisticsDatabase * OpenStandardDB(const std::string repo_name)
static bool GcExtendedStats(const std::string &repo_name)
bool StoreEntry(const std::string &insert_statement)
bool StorePublishStatistics(const perf::Statistics *statistics, const std::string &start_time, const bool success)
static const uint32_t kDefaultDaysToKeep
unsigned int compact_calls
bool CheckSchemaCompatibility()
static void GetDBParams(const std::string &repo_name, std::string *path, uint32_t *days_to_keep)
bool CompactDatabase() const