19 const std::string& a_message,
30 const std::string& a_message,
34 const std::string& a_message,
35 const uint64 a_total_blocks,
36 const uint64 a_free_blocks,
37 const uint64 a_total_inodes,
38 const uint64 a_free_inodes
41 const std::string& a_message,
42 const std::string& a_time,
43 const uint64 a_total_blocks,
44 const uint64 a_free_blocks,
45 const uint64 a_total_inodes,
46 const uint64 a_free_inodes
49 const std::string&
time(
void)
const;
50 const std::string&
message(
void)
const;
92 const std::string a_source,
94 const uint16 a_exit_code,
95 const uint16 a_signal_num,
97 const std::string a_error_message
105 const std::string a_source,
107 const uint16 a_exit_code,
108 const uint16 a_signal_num,
110 const std::string a_error_message
113 const bool status(
void)
const;
114 void source(
const std::string& a_class);
115 const std::string&
source(
void)
const;
123 void error_msg(
const std::string& a_class);
124 const std::string&
error_msg(
void)
const;
150 const std::string a_source,
151 const timer& a_timer,
152 const int a_exit_code,
153 const int a_signal_num,
155 const std::string& a_error_msg
160 bool is_report(
const std::string& a_str);
173 const std::vector<job_path_report>&
reports(
void)
const;
175 void id(
const std::string& a_str);
176 const std::string&
id(
void)
const;
178 const bool status(
void)
const;
195 const std::vector<single_job_report>&
reports(
void)
const;
single_job_report()
C'tor.
Retrieve information about a filesystem.
job_path_report parse(const std::string &a_str)
Parse a received report from a child process and return a job_path_report.
Vault selection and usage report.
void clear(void)
Clear all values.
Basic types definitions and templates.
const uint64 free_inodes(void) const
Return the number of free inodes in the vault.
const std::string & error_msg(void) const
Return the error message.
void write_report(std::ostream &a_out)
Format job reports and output to the given stream.
void add_report(const single_job_report &a_class)
Add a job report to the list.
report_manager reporter
The global report manager.
Submit or parse a job path report.
std::vector< vault_stats_report > m_reports
job_path_report & operator=(const job_path_report &a_class)
Assignment operator.
void format_synopsis(table &a_table)
Generate a synopsis report.
vault_stats_report()
C'tor.
void write_rsync_err(const std::string &a_str)
Write a report line for output from rsync to parent on child's std::cerr.
void mf_write_synopsis(std::ostream &a_out)
const rsync_behavior::value_type behavior(void) const
void write_report(std::ostream &a_out)
Write report to the given stream.
const std::vector< single_job_report > & reports(void) const
Return a const vector of all job reports.
const uint64 total_blocks(void) const
Return the total number of blocks in the vault.
const std::vector< job_path_report > & reports(void) const
Return a const vector of all path reports.
void write_report(std::ostream &a_out)
Format and print the vault report to the given stream.
void set_total_time(const timer &a_class)
Report the overall RVM time.
rsync_behavior::value_type m_behavior
const bool status(void) const
Return true if rsync succeeded archiving this path.
void clear(void)
Clear all values.
void clear(void)
Clear all values.
jobs_report & jobs(void)
Return the jobs reporter object.
void file_report(void)
Save report to a file.
const std::string & message(void) const
Return the message.
~vault_stats_report()
D'tor.
vault_stats_report & operator=(const vault_stats_report &a_class)
Assignment operator.
void add_report(const job_path_report &a_class)
Add a path report for this job.
const std::string & source(void) const
Return a string of the path archived.
void clear(void)
Clear all values.
void assign(const vault_stats_report &a_class)
Assignment.
~single_job_report()
D'tor.
const std::string & time(void) const
Return a string timestamp.
Job report for an rsync run on a single path.
const std::string & id(void) const
Return the descriptive id for this job report.
void format_synopsis(table &a_table)
Generate a synopsis report.
static const char * tags[]
Report type tags.
std::vector< job_path_report > m_reports
vault_report & vault(void)
Return the vault reporter object.
void write_report(const std::string a_source, const timer &a_timer, const int a_exit_code, const int a_signal_num, const rsync_behavior::value_type &a_behavior, const std::string &a_error_msg)
Generate and submit a report to the parent process on child's std::cout.
void print_report(void)
Print report to standard output.
void format_synopsis(table &a_table)
Generate a synopsis report.
void clear(void)
Clear all values.
const uint64 total_inodes(void) const
Return the total number of inodes in the vault.
void assign(const job_path_report &a_class)
Assignment.
void add_report(const vault_stats_report &a_class)
Add a vault report to the list.
const timer & time(void) const
Return the timer object for this report.
const int signal_num(void) const
Return rsync's signal number.
std::vector< single_job_report > m_jobs
void mf_write_header(std::ostream &a_out)
void clear(void)
Clear all values.
bool is_report(const std::string &a_str)
Return true if the given string looks like a valid report.
const uint64 free_blocks(void) const
Return the number of free blocks in the vault.
void init(void)
Initialize.
void write_rsync_out(const std::string &a_str)
Write a report line for output from rsync to parent on child's std::cout.
const bool initialized(void) const
Return whether or not this object has been inintialized.
const bool status(void) const
If all path reports say that rsync was successful, then return true, else return false.
const int exit_code(void) const
Return rsync's exit code.