Observer¶
-
class
xms.core.misc.Observer¶ Mock Observer class for testing.
-
on_begin_operation_string(operation)¶ The operation string.
- Parameters
operation – Name of the operation being monitored.
-
on_end_operation()¶ The end operation event.
-
on_progress_status(percent_complete)¶ Captures the progress of an operation.
- Parameters
percent_complete (float) – The percent complete
-
on_update_message(message)¶ When update message has been sent.
- Parameters
message – The new message
-
time_elapsed_in_seconds(elapsed_seconds)¶ Sets the time elapsed since the operation began.
- Parameters
elapsed_seconds (Float) – The elapsed time since the operation began.
-
time_remaining_in_seconds(remaining_seconds)¶ Sets the time remaining in seconds.
- Parameters
remaining_seconds (Float) – The time remaining for the current operation that the class is observing.
-