#include <archiver.h>
Public Member Functions | |
archive_manager () | |
C'tor. | |
void | clear (void) |
Clear the archive manager and clear the job list. | |
void | init (void) |
Initialize the archive manager. | |
const bool | initialized (void) const |
Return the initialized status of the archive manager. | |
void | archive (void) |
Archive jobs. | |
const std::string | archive_path (void) const |
Return an absolute path to the finished archive directory. | |
const std::string | working_archive_path (void) const |
Return the absolute path to the unfinished working archive directory. | |
Private Member Functions | |
void | mf_log_status (void) |
Give a status report. | |
Private Attributes | |
std::vector< job_archiver * > | m_jobs |
bool | m_initialized |
Definition at line 96 of file archiver.h.
|
C'tor.
Definition at line 941 of file archiver.cc. References archiver, clear(), and INTERNAL_ERROR. |
Here is the call graph for this function:
|
Archive jobs. Create an archive directory. Generate a to-do list of job archiver objects. Process the job archiver objects:
Definition at line 1109 of file archiver.cc. References vault_report::add_report(), jobs_report::add_report(), archive_path(), estring::clear(), config, timer::duration(), err_nomem, err_unknown, exists(), initialized(), INTERNAL_ERROR, report_manager::jobs(), configuration_manager::jobs(), logger, m_jobs, mf_log_status(), mk_dir(), vault_manager::overflow(), vault_manager::prepare(), rename_file(), reporter, configuration_manager::rsync_parallel(), timer::start(), timer::stop(), TRY, TRY_nomem, vault_manager::vault(), report_manager::vault(), vaulter, working_archive_path(), and log_manager::write(). Referenced by main(), and test_rvm(). |
Here is the call graph for this function:
|
Return an absolute path to the finished archive directory.
Definition at line 1358 of file archiver.cc. References config, initialized(), INTERNAL_ERROR, timestamp::str(), configuration_manager::timestamp(), vault_manager::vault(), and vaulter. Referenced by archive(), and working_archive_path(). |
Here is the call graph for this function:
|
Clear the archive manager and clear the job list.
Definition at line 950 of file archiver.cc. References m_initialized, and m_jobs. Referenced by archive_manager(), and test_rvm(). |
|
Initialize the archive manager. Log the archive timestamp, select and prepare a vault. Definition at line 961 of file archiver.cc. References vault_report::add_report(), config, timer::duration(), logger, m_initialized, vault_manager::prepare(), reporter, vault_manager::select(), timer::start(), timer::stop(), timestamp::str(), configuration_manager::timestamp(), report_manager::vault(), vault_manager::vault(), vaulter, and log_manager::write(). Referenced by main(), and test_rvm(). |
Here is the call graph for this function:
|
Return the initialized status of the archive manager.
Definition at line 1000 of file archiver.cc. References m_initialized. Referenced by archive(), archive_path(), and working_archive_path(). |
|
Give a status report. After so many minutes of inactivity write a report to the log file of our current status of affairs. Definition at line 1011 of file archiver.cc. References timer::duration_mins(), timer::is_started(), logger, m_jobs, timer::start(), timer::stop(), and log_manager::write(). Referenced by archive(). |
Here is the call graph for this function:
|
Return the absolute path to the unfinished working archive directory.
Definition at line 1373 of file archiver.cc. References archive_path(), initialized(), and INTERNAL_ERROR. Referenced by archive(), and job_archiver::mf_do_chores(). |
Here is the call graph for this function:
|
Definition at line 111 of file archiver.h. Referenced by clear(), init(), and initialized(). |
|
Definition at line 110 of file archiver.h. Referenced by archive(), clear(), and mf_log_status(). |