1 #ifndef _PURGE_SYSTEM_H 2 #define _PURGE_SYSTEM_H 16 #define TO_STRING(...) DEFER(TO_STRING_)(__VA_ARGS__) 18 #define TO_STRING_(...) #__VA_ARGS__ 19 #define QUOTE(...) TO_STRING(__VA_ARGS__) 21 #define LOG_NAME "purge_system" 22 #define CONFIG_CATEGORY_DESCRIPTION "Configuration of the Purge System" 23 #define CONFIG_CATEGORY_DISPLAY_NAME "Purge System" 26 #define UTILITIES_CATEGORY "Utilities" 40 unsigned long m_retainStatsHistory;
41 unsigned long m_retainAuditLog;
42 unsigned long m_retainTaskHistory;
45 void raiseError(
const char *reason, ...);
46 void purgeExecution();
47 void purgeTable(
const std::string& tableName,
const std::string& fieldName,
unsigned long retentionDays);
48 void historicizeData(
unsigned long retentionDays);
49 ResultSet *extractData(
const std::string& tableName,
const std::string& fieldName,
unsigned long retentionDays);
50 void storeData(
const std::string& tableDest,
ResultSet *data);
51 void processEnd()
const;
Fledge Logger class used to log to syslog.
Definition: logger.h:26
PurgeSystem(int argc, char **argv)
Constructor for Purge system.
Definition: purge_system.cpp:75
Definition: config_category.h:56
Fledge process base class.
Definition: process.h:21
Result set.
Definition: resultset.h:32
void run()
PurgeSystem run method, called by the base class to start the process and do the actual work...
Definition: purge_system.cpp:102
Client for accessing the storage service.
Definition: storage_client.h:43
Definition: purge_system.h:29