Public Member Functions | |
| RsyncTask () | |
| override void | prepare () |
| Gee.ArrayList< FileItem > | parse_log (string log_file_path) |
| override void | parse_stdout_line (string out_line) |
| override void | parse_stderr_line (string err_line) |
| bool | update_progress_parse_console_output (string line) |
| Public Member Functions inherited from AsyncTask | |
| signal void | stdout_line_read (string line) |
| signal void | stderr_line_read (string line) |
| signal void | task_complete () |
| void | write_stdin (string line) |
| virtual void | execute () |
| bool | is_running () |
| void | stop (AppStatus status_to_update=AppStatus.CANCELLED) |
| void | pause (AppStatus status_to_update=AppStatus.PAUSED) |
| void | resume (AppStatus status_to_update=AppStatus.RUNNING) |
| void | print_app_status () |
Public Attributes | |
| bool | delete_extra = true |
| bool | delete_after = false |
| bool | delete_excluded = false |
| bool | relative = false |
| string | rsync_log_file = "" |
| string | exclude_from_file = "" |
| string | link_from_path = "" |
| string | source_path = "" |
| string | dest_path = "" |
| bool | verbose = true |
| bool | io_nice = true |
| bool | dry_run = false |
| GLib.Queue< string > | status_lines |
| int64 | status_line_count = 0 |
| int64 | total_size = 0 |
| int64 | count_created |
| int64 | count_deleted |
| int64 | count_modified |
| int64 | count_checksum |
| int64 | count_size |
| int64 | count_timestamp |
| int64 | count_permissions |
| int64 | count_owner |
| int64 | count_group |
| int64 | count_unchanged |
| StringBuilder | log |
| Public Attributes inherited from AsyncTask | |
| AppStatus | status = AppStatus.NOT_STARTED |
| GLib.Mutex | status_line_mutex |
| int | exit_code = 0 |
| GLib.Timer | timer |
| double | progress = 0.0 |
| double | percent = 0.0 |
| int64 | prg_count = 0 |
| int64 | prg_count_total = 0 |
Protected Member Functions | |
| override string | build_script () |
| override void | finish_task () |
| Protected Member Functions inherited from AsyncTask | |
| AsyncTask () | |
| string | build_script () |
| virtual bool | begin () |
| void | parse_stdout_line (string out_line) |
| void | parse_stderr_line (string err_line) |
| int | read_exit_code () |
Private Types | |
| enum | RegexType { Status , Created , LogCreated , Deleted , LogDeleted , Modified , LogModified , Unchanged , LogUnchanged , TotalSize , Count } |
Private Member Functions | |
| void | init_regular_expressions () |
Private Attributes | |
| Regex[] | regex_list = null |
Additional Inherited Members | |
| Protected Attributes inherited from AsyncTask | |
| DataOutputStream | dos_log = null |
| Pid | child_pid = 0 |
| string | script_file = "" |
| string | working_dir = "" |
| Properties inherited from AsyncTask | |
| string | status_line [get, set] |
| double | elapsed [get] |
| string | stat_time_elapsed [get] |
| string??? | stat_time_remaining [get] |
Definition at line 31 of file RsyncTask.vala.
|
private |
| Enumerator | |
|---|---|
| Status | |
| Created | |
| LogCreated | |
| Deleted | |
| LogDeleted | |
| Modified | |
| LogModified | |
| Unchanged | |
| LogUnchanged | |
| TotalSize | |
| Count | |
Definition at line 33 of file RsyncTask.vala.
|
inline |
Definition at line 84 of file RsyncTask.vala.
References init_regular_expressions(), and status_lines.
Referenced by Main.create_snapshot_with_rsync(), Main.estimate_system_size(), Main.Main(), Snapshot.parse_log_file(), RsyncLogBox.parse_log_file_thread(), Main.restore_other_console(), and Main.restore_other_gui().
|
inlineprotected |
Definition at line 185 of file RsyncTask.vala.
References delete_after, delete_excluded, delete_extra, dest_path, dry_run, TeeJee.FileSystem.escape_single_quote(), exclude_from_file, io_nice, link_from_path, TeeJee.FileSystem.remove_trailing_slash(), rsync_log_file, source_path, and verbose.
|
inlineprotectedvirtual |
Reimplemented from AsyncTask.
Definition at line 526 of file RsyncTask.vala.
References TeeJee.FileSystem.file_write(), log, and rsync_log_file.
|
inlineprivate |
Definition at line 89 of file RsyncTask.vala.
References Error, TeeJee.Logging.log_error(), and regex_list.
Referenced by RsyncTask().
|
inline |
Definition at line 267 of file RsyncTask.vala.
References _, Error, TeeJee.FileSystem.file_exists(), TeeJee.FileSystem.file_gzip(), TeeJee.FileSystem.file_line_count(), TeeJee.FileSystem.file_parent(), FileItem.from_disk_path_with_basic_info(), TeeJee.Logging.log_debug(), TeeJee.Logging.log_error(), TeeJee.Logging.log_msg(), TeeJee.FileSystem.path_combine(), AsyncTask.prg_count, AsyncTask.prg_count_total, and regex_list.
Referenced by RsyncLogBox.parse_log_file_thread().
|
inline |
Definition at line 437 of file RsyncTask.vala.
References AsyncTask.err_line, and update_progress_parse_console_output().
|
inline |
Definition at line 433 of file RsyncTask.vala.
References AsyncTask.out_line, and update_progress_parse_console_output().
|
inlinevirtual |
Reimplemented from AsyncTask.
Definition at line 164 of file RsyncTask.vala.
References count_checksum, count_created, count_deleted, count_group, count_modified, count_owner, count_permissions, count_size, count_timestamp, count_unchanged, log, status_line_count, and total_size.
|
inline |
Definition at line 441 of file RsyncTask.vala.
References count_checksum, count_created, count_deleted, count_group, count_modified, count_owner, count_permissions, count_size, count_timestamp, count_unchanged, log, AsyncTask.prg_count, AsyncTask.prg_count_total, AsyncTask.progress, regex_list, AsyncTask.status_line, status_line_count, and total_size.
Referenced by parse_stderr_line(), and parse_stdout_line().
| int64 RsyncTask.count_checksum |
Definition at line 74 of file RsyncTask.vala.
Referenced by prepare(), RestoreBox.restore(), BackupBox.take_snapshot(), and update_progress_parse_console_output().
| int64 RsyncTask.count_created |
Definition at line 71 of file RsyncTask.vala.
Referenced by Main.estimate_system_size(), prepare(), RestoreBox.restore(), BackupBox.take_snapshot(), and update_progress_parse_console_output().
| int64 RsyncTask.count_deleted |
Definition at line 72 of file RsyncTask.vala.
Referenced by prepare(), RestoreBox.restore(), BackupBox.take_snapshot(), and update_progress_parse_console_output().
| int64 RsyncTask.count_group |
Definition at line 79 of file RsyncTask.vala.
Referenced by prepare(), RestoreBox.restore(), BackupBox.take_snapshot(), and update_progress_parse_console_output().
| int64 RsyncTask.count_modified |
Definition at line 73 of file RsyncTask.vala.
Referenced by prepare(), RestoreBox.restore(), BackupBox.take_snapshot(), and update_progress_parse_console_output().
| int64 RsyncTask.count_owner |
Definition at line 78 of file RsyncTask.vala.
Referenced by prepare(), RestoreBox.restore(), BackupBox.take_snapshot(), and update_progress_parse_console_output().
| int64 RsyncTask.count_permissions |
Definition at line 77 of file RsyncTask.vala.
Referenced by prepare(), RestoreBox.restore(), BackupBox.take_snapshot(), and update_progress_parse_console_output().
| int64 RsyncTask.count_size |
Definition at line 75 of file RsyncTask.vala.
Referenced by prepare(), RestoreBox.restore(), BackupBox.take_snapshot(), and update_progress_parse_console_output().
| int64 RsyncTask.count_timestamp |
Definition at line 76 of file RsyncTask.vala.
Referenced by prepare(), RestoreBox.restore(), BackupBox.take_snapshot(), and update_progress_parse_console_output().
| int64 RsyncTask.count_unchanged |
Definition at line 80 of file RsyncTask.vala.
Referenced by prepare(), RestoreBox.restore(), BackupBox.take_snapshot(), and update_progress_parse_console_output().
| bool RsyncTask.delete_after = false |
Definition at line 50 of file RsyncTask.vala.
Referenced by build_script().
| bool RsyncTask.delete_excluded = false |
Definition at line 51 of file RsyncTask.vala.
Referenced by build_script().
| bool RsyncTask.delete_extra = true |
Definition at line 49 of file RsyncTask.vala.
Referenced by build_script().
| string RsyncTask.dest_path = "" |
Definition at line 58 of file RsyncTask.vala.
Referenced by build_script().
| bool RsyncTask.dry_run = false |
Definition at line 61 of file RsyncTask.vala.
Referenced by build_script().
| string RsyncTask.exclude_from_file = "" |
Definition at line 55 of file RsyncTask.vala.
Referenced by build_script().
| bool RsyncTask.io_nice = true |
Definition at line 60 of file RsyncTask.vala.
Referenced by build_script().
| string RsyncTask.link_from_path = "" |
Definition at line 56 of file RsyncTask.vala.
Referenced by build_script().
| StringBuilder RsyncTask.log |
Definition at line 82 of file RsyncTask.vala.
Referenced by finish_task(), prepare(), and update_progress_parse_console_output().
|
private |
Definition at line 64 of file RsyncTask.vala.
Referenced by init_regular_expressions(), parse_log(), and update_progress_parse_console_output().
| bool RsyncTask.relative = false |
Definition at line 52 of file RsyncTask.vala.
| string RsyncTask.rsync_log_file = "" |
Definition at line 54 of file RsyncTask.vala.
Referenced by build_script(), and finish_task().
| string RsyncTask.source_path = "" |
Definition at line 57 of file RsyncTask.vala.
Referenced by build_script().
| int64 RsyncTask.status_line_count = 0 |
Definition at line 68 of file RsyncTask.vala.
Referenced by prepare(), and update_progress_parse_console_output().
| GLib.Queue<string> RsyncTask.status_lines |
Definition at line 67 of file RsyncTask.vala.
Referenced by RsyncTask().
| int64 RsyncTask.total_size = 0 |
Definition at line 69 of file RsyncTask.vala.
Referenced by Main.create_snapshot_with_rsync(), Main.estimate_system_size(), prepare(), and update_progress_parse_console_output().
| bool RsyncTask.verbose = true |
Definition at line 59 of file RsyncTask.vala.
Referenced by build_script().