#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 954 of file archiver.cc. References archiver, clear(), and INTERNAL_ERROR. Here is the call graph for this function: |
|
|
Return an absolute path to the finished archive directory.
Definition at line 1380 of file archiver.cc. References config, initialized(), INTERNAL_ERROR, 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 963 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 974 of file archiver.cc. References config, timer::duration(), logger, m_initialized, vault_manager::prepare(), reporter, vault_manager::select(), timer::start(), timer::stop(), 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 1013 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 1024 of file archiver.cc. References timer::duration_mins(), timer::is_started(), logger, m_jobs, vault_manager::overflow(), timer::start(), job_archiver::status_completed, job_archiver::status_done, job_archiver::status_error, job_archiver::status_fatal_error, job_archiver::status_pending, job_archiver::status_processing, job_archiver::status_retry_later, timer::stop(), vaulter, 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 1395 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(). |