21 const std::string&
exit(
const int a_int)
const;
22 const std::string&
signal(
const int a_int)
const;
49 const std::string
prefix(
void);
50 const std::string
id(
void);
80 uint64& a_files_total,
81 uint64& a_files_xferd,
84 bool& a_overflow_detected
88 uint64& a_files_total,
89 uint64& a_files_xferd,
std::string m_unknown_exit
Archive the paths associated with a single job.
An extended string class.
void clear(void)
Clear the job archiver and return it to it's initial state.
single_job_report report(void) const
Return the job report for this job.
Hold configuration data for a single job.
const std::string prefix(void)
Generate a job prefix string.
void clear(void)
Clear the archive manager and clear the job list.
void mf_log_status(void)
Give a status report.
void process(void)
Parent processor for a job.
void mf_process_child_io(bool a_finalize)
Process I/O from the child.
void mf_parse_report(const std::string &a_str)
archive_manager archiver
The global archive manager.
std::map< int, std::string > m_exit_str
void start(void)
Begin processing.
const std::string & exit(const int a_int) const
Get a verbose string for an exit code.
void end(void)
End any processes handling this job.
void mf_trim_string(std::string &a_str)
Trim off all non-digit leading and trailing characters from a string.
std::vector< job_archiver * > m_jobs
void mf_do_chores(void)
Child processor for a job.
void mf_process_rsync_io(execute &a_exec, uint16 a_timeout, uint64 &a_files_total, uint64 &a_files_xferd, uint64 &a_size_total, uint64 &a_size_xferd, bool &a_overflow_detected)
Process I/O from rsync.
std::map< int, std::string > m_signal_str
archiving_status m_status
const std::string & signal(const int a_int) const
Get a verbose string for a signal number.
void mf_process_report(const std::string &a_str)
Job report for an rsync run on a single path.
class rstat rsync_estat_str
Map exit codes and signal numbers to verbose strings.
Fork a child process or execute an external program.
void init(void)
Initialize the archive manager.
job_archiver(const job *a_job)
C'tor.
bool m_rsync_timeout_flag
const archiving_status status(void)
Return the processing status of this job archiver.
Create (or update an existing) archive in the selected vault.
void mf_parse_rsync_io(std::string a_str, uint64 &a_files_total, uint64 &a_files_xferd, uint64 &a_size_total, uint64 &a_size_xferd)
Parse I/O from rsync.
void archive(void)
Archive jobs.
const std::string working_archive_path(void) const
Return the absolute path to the unfinished working archive directory.
const bool initialized(void) const
Return the initialized status of the archive manager.
std::string m_unknown_signal
const std::string id(void)
Generate a job id string.
const std::string archive_path(void) const
Return an absolute path to the finished archive directory.