| rvm
    1.11
    | 
Hold configuration data for a single job. More...
#include <rconfig.h>

| Public Types | |
| enum | rsync_connection_type { connection_remote, connection_local, connection_server, connection_ssh_local } | 
| enum | rsync_behavior_type { behavior_ok, behavior_fail, behavior_retry, behavior_retry_without_hardlinks } | 
| typedef std::vector< std::string > | excludes_type | 
| typedef std::vector< std::string > | includes_type | 
| typedef std::vector< std::string > | paths_type | 
| Public Member Functions | |
| job () | |
| C'tor.  More... | |
| job (const job &a_job) | |
| C'tor.  More... | |
| void | clear (void) | 
| Clear values.  More... | |
| void | assign (const job &a_job) | 
| Assign values from another job instance.  More... | |
| job & | operator= (const job &a_job) | 
| Assignment.  More... | |
| const std::string | generate_archive_path (const std::string &a_path) const | 
| Generate the archive-path subdirectory for this job.  More... | |
| const std::string | generate_source_path (const std::string &a_path) const | 
| Generate the source path to be passed to rsync on the command line.  More... | |
| const std::string | generate_job_id (void) const | 
| Generate a unique ID string for this job.  More... | |
| const std::vector< std::string > | generate_rsync_options_vector (void) const | 
| Generate rsync command line options.  More... | |
| const std::vector< std::string > | generate_ssh_options_vector (void) const | 
| Generate ssh command line options.  More... | |
| const std::string | common_pathname (void) const | 
| Find the common pathname among all job paths (may be an empty string)  More... | |
| void | check (void) | 
| Perform sanity checks for the configuration settings of this job.  More... | |
| Public Attributes | |
| std::string | default_config_path | 
| uint16 | default_config_line | 
| std::string | config_path | 
| uint16 | config_line | 
| class archive_path | archive_path | 
| excludes_type | excludes | 
| includes_type | includes | 
| std::string | groupname | 
| std::string | hostname | 
| std::string | jobname | 
| paths_type | paths | 
| class rsync_behavior | rsync_behavior | 
| rsync_connection_type | rsync_connection | 
| bool | rsync_hardlink | 
| bool | rsync_multi_hardlink | 
| uint16 | rsync_multi_hardlink_max | 
| std::string | rsync_options | 
| std::string | ssh_options | 
| std::string | rsync_remote_user | 
| std::string | rsync_remote_path | 
| std::string | rsync_remote_module | 
| uint16 | rsync_remote_port | 
| uint16 | rsync_retry_count | 
| uint16 | rsync_retry_delay | 
| uint16 | rsync_timeout | 
| Friends | |
| class | parser | 
| typedef std::vector<std::string> job::excludes_type | 
| typedef std::vector<std::string> job::includes_type | 
| typedef std::vector<std::string> job::paths_type | 
| job::job | ( | ) | 
C'tor.
Definition at line 557 of file rconfig.cc.
References clear().

| job::job | ( | const job & | a_job | ) | 
C'tor.
Definition at line 563 of file rconfig.cc.
References assign(), and clear().

| void job::assign | ( | const job & | a_job | ) | 
Assign values from another job instance.
Definition at line 600 of file rconfig.cc.
References archive_path, rsync_behavior::clear(), clear(), config_line, config_path, default_config_line, default_config_path, excludes, groupname, hostname, includes, jobname, paths, rsync_behavior, rsync_connection, rsync_hardlink, rsync_multi_hardlink, rsync_multi_hardlink_max, rsync_options, rsync_remote_module, rsync_remote_path, rsync_remote_port, rsync_remote_user, rsync_retry_count, rsync_retry_delay, rsync_timeout, and ssh_options.
Referenced by job(), and operator=().

| void job::check | ( | void | ) | 
Perform sanity checks for the configuration settings of this job.
Definition at line 1016 of file rconfig.cc.
References config, connection_remote, connection_server, connection_ssh_local, ERROR, ERROR_INSTANCE, excludes, generate_archive_path(), hostname, includes, configuration_manager::jobs(), paths, error::push_back(), rsync_connection, rsync_remote_module, and TRY_nomem.
Referenced by global_parser::parse_job(), configuration_manager::read_job(), and global_parser::read_job().

| void job::clear | ( | void | ) | 
Clear values.
Definition at line 570 of file rconfig.cc.
References config_line, config_path, connection_remote, default_config_line, default_config_path, excludes, groupname, hostname, includes, jobname, paths, rsync_behavior::reset(), rsync_connection, rsync_hardlink, rsync_multi_hardlink, rsync_multi_hardlink_max, rsync_options, rsync_remote_module, rsync_remote_path, rsync_remote_port, rsync_remote_user, rsync_retry_count, rsync_retry_delay, rsync_timeout, and ssh_options.
Referenced by assign(), configuration_manager::clear(), job(), and global_parser::parse_default().

| const std::string job::common_pathname | ( | void | ) | const | 
Find the common pathname among all job paths (may be an empty string)
Definition at line 764 of file rconfig.cc.
References paths, same(), and TRY_nomem.
Referenced by generate_job_id().

| const std::string job::generate_archive_path | ( | const std::string & | a_path | ) | const | 
Generate the archive-path subdirectory for this job.
Definition at line 641 of file rconfig.cc.
References ERROR, archive_path_element::groupname, groupname, archive_path_element::hostname, hostname, INTERNAL_ERROR, archive_path_element::jobname, jobname, archive_path_element::literal, archive_path_element::pathname, archive_path_element::permutation, permute_path(), reform_path(), and TRY_nomem.
Referenced by check(), job_archiver::mf_do_chores(), and job_archiver::start().

| const std::string job::generate_job_id | ( | void | ) | const | 
Generate a unique ID string for this job.
Definition at line 800 of file rconfig.cc.
References common_pathname(), ERROR, archive_path_element::groupname, groupname, archive_path_element::hostname, hostname, INTERNAL_ERROR, archive_path_element::jobname, jobname, archive_path_element::literal, archive_path_element::pathname, archive_path_element::permutation, permute_path(), reform_path(), and TRY_nomem.
Referenced by job_archiver::id(), and job_archiver::start().

| const std::vector< std::string > job::generate_rsync_options_vector | ( | void | ) | const | 
Generate rsync command line options.
Definition at line 872 of file rconfig.cc.
References rsync_options.
Referenced by job_archiver::mf_do_chores().
| const std::string job::generate_source_path | ( | const std::string & | a_path | ) | const | 
Generate the source path to be passed to rsync on the command line.
Definition at line 728 of file rconfig.cc.
References connection_remote, connection_server, hostname, rsync_connection, rsync_remote_module, rsync_remote_port, rsync_remote_user, and TRY_nomem.
Referenced by job_archiver::mf_do_chores().
| const std::vector< std::string > job::generate_ssh_options_vector | ( | void | ) | const | 
Generate ssh command line options.
Definition at line 944 of file rconfig.cc.
References ssh_options.
Referenced by job_archiver::mf_do_chores().
Assignment.
Definition at line 633 of file rconfig.cc.
References assign().

| class archive_path job::archive_path | 
Definition at line 167 of file rconfig.h.
Referenced by assign(), job_parser::parse_clear(), and test().
| uint16 job::config_line | 
Definition at line 166 of file rconfig.h.
Referenced by assign(), clear(), global_parser::parse_job(), and global_parser::read_job().
| std::string job::config_path | 
Definition at line 165 of file rconfig.h.
Referenced by assign(), clear(), global_parser::parse_job(), and global_parser::read_job().
| uint16 job::default_config_line | 
Definition at line 164 of file rconfig.h.
Referenced by assign(), clear(), and global_parser::parse_default().
| std::string job::default_config_path | 
Definition at line 163 of file rconfig.h.
Referenced by assign(), clear(), and global_parser::parse_default().
| excludes_type job::excludes | 
Definition at line 168 of file rconfig.h.
Referenced by assign(), check(), clear(), job_archiver::mf_do_chores(), job_parser::parse_clear(), and test().
| std::string job::groupname | 
Definition at line 170 of file rconfig.h.
Referenced by assign(), clear(), generate_archive_path(), generate_job_id(), job_parser::parse_clear(), and test().
| std::string job::hostname | 
Definition at line 171 of file rconfig.h.
Referenced by assign(), check(), clear(), generate_archive_path(), generate_job_id(), generate_source_path(), job_archiver::mf_do_chores(), job_parser::parse_clear(), and test().
| includes_type job::includes | 
Definition at line 169 of file rconfig.h.
Referenced by assign(), check(), clear(), job_archiver::mf_do_chores(), and job_parser::parse_clear().
| std::string job::jobname | 
Definition at line 172 of file rconfig.h.
Referenced by assign(), clear(), generate_archive_path(), generate_job_id(), and job_parser::parse_clear().
| paths_type job::paths | 
Definition at line 173 of file rconfig.h.
Referenced by assign(), check(), clear(), common_pathname(), job_archiver::mf_do_chores(), job_parser::parse_clear(), job_archiver::start(), and test().
| class rsync_behavior job::rsync_behavior | 
Definition at line 174 of file rconfig.h.
Referenced by assign(), job_archiver::mf_do_chores(), job_parser::parse_clear(), and test().
| rsync_connection_type job::rsync_connection | 
Definition at line 175 of file rconfig.h.
Referenced by assign(), check(), clear(), generate_source_path(), job_archiver::mf_do_chores(), and test().
| bool job::rsync_hardlink | 
| bool job::rsync_multi_hardlink | 
Definition at line 177 of file rconfig.h.
Referenced by assign(), clear(), and job_archiver::mf_do_chores().
| uint16 job::rsync_multi_hardlink_max | 
Definition at line 178 of file rconfig.h.
Referenced by assign(), clear(), and job_archiver::mf_do_chores().
| std::string job::rsync_options | 
Definition at line 179 of file rconfig.h.
Referenced by assign(), clear(), generate_rsync_options_vector(), job_parser::parse_clear(), and test().
| std::string job::rsync_remote_module | 
Definition at line 183 of file rconfig.h.
Referenced by assign(), check(), clear(), generate_source_path(), and job_parser::parse_clear().
| std::string job::rsync_remote_path | 
Definition at line 182 of file rconfig.h.
Referenced by assign(), clear(), job_archiver::mf_do_chores(), and job_parser::parse_clear().
| uint16 job::rsync_remote_port | 
Definition at line 184 of file rconfig.h.
Referenced by assign(), clear(), generate_source_path(), job_parser::parse_clear(), and test().
| std::string job::rsync_remote_user | 
Definition at line 181 of file rconfig.h.
Referenced by assign(), clear(), generate_source_path(), job_archiver::mf_do_chores(), job_parser::parse_clear(), and test().
| uint16 job::rsync_retry_count | 
Definition at line 185 of file rconfig.h.
Referenced by assign(), clear(), and job_archiver::mf_do_chores().
| uint16 job::rsync_retry_delay | 
Definition at line 186 of file rconfig.h.
Referenced by assign(), clear(), and job_archiver::mf_do_chores().
| uint16 job::rsync_timeout | 
Definition at line 187 of file rconfig.h.
Referenced by assign(), clear(), and job_archiver::mf_do_chores().
| std::string job::ssh_options | 
Definition at line 180 of file rconfig.h.
Referenced by assign(), clear(), generate_ssh_options_vector(), and job_parser::parse_clear().
 1.8.6
 1.8.6