neuray API Programmer's Manual

mi::bridge::IClient_job_progress Class Reference

[Bridge client]

Description

Provides detailed information about the progress of a Bridge job.

Public Member Functions

virtual Size get_cache_miss_bytes() const =0
Returns the total amount of bytes to upload for all cache misses. More...
virtual Size get_cache_miss_count() const =0
Returns the total number of cache misses for which data needs to be uploaded. More...
virtual const char* get_currently_uploaded_element_name() const =0
Returns the name of the currently uploaded element or NULL if no element is currently being uploaded.
virtual Size get_currently_uploaded_element_size() const =0
Returns the size in bytes of the currently uploaded element or 0 if no element is currently being uploaded.
virtual Size get_currently_uploaded_element_uploaded_bytes() const =0
Returns the number of bytes uploaded for the currently uploaded element or 0 if no element is currently being uploaded.
virtual Size get_pending_cache_status_count() const =0
Returns the number of cache status requests that the server has not yet replied to. More...
virtual Size get_pending_data_serialization_count() const =0
Returns the number of elements that have been queued up for serialization. More...
virtual Size get_pending_hash_calculation_count() const =0
Returns the number of elements for which hashes needs to be calculated. More...
virtual Client_job_state get_state() const =0
Returns the state of the job. More...
virtual Size get_updated_element_count() const =0
Returns the number of elements that need to be updated before executing this job. More...
virtual Size get_uploaded_cache_miss_bytes() const =0
Returns the number of bytes that has been uploaded for the cache misses so far. More...
virtual Size get_uploaded_cache_miss_count() const =0
Returns the number of cache misses for which data has been uploaded so far. More...

Member Functions

virtual Size mi::​bridge::​IClient_job_progress::get_cache_miss_bytes() const [pure virtual]

Returns the total amount of bytes to upload for all cache misses. The final value is known in the state CLIENT_JOB_UPLOADING and later.

virtual Size mi::​bridge::​IClient_job_progress::get_cache_miss_count() const [pure virtual]

Returns the total number of cache misses for which data needs to be uploaded. The final value is known in the state CLIENT_JOB_UPLOADING and later.

virtual const char* mi::​bridge::​IClient_job_progress::get_currently_uploaded_element_name() const [pure virtual]

Returns the name of the currently uploaded element or NULL if no element is currently being uploaded.

virtual Size mi::​bridge::​IClient_job_progress::get_currently_uploaded_element_size() const [pure virtual]

Returns the size in bytes of the currently uploaded element or 0 if no element is currently being uploaded.

virtual Size mi::​bridge::​IClient_job_progress::get_currently_uploaded_element_uploaded_bytes() const [pure virtual]

Returns the number of bytes uploaded for the currently uploaded element or 0 if no element is currently being uploaded.

virtual Size mi::​bridge::​IClient_job_progress::get_pending_cache_status_count() const [pure virtual]

Returns the number of cache status requests that the server has not yet replied to. Can be larger than 0 in states up to and including CLIENT_JOB_QUERYING_CACHE_STATUS and is 0 in all the other states.

virtual Size mi::​bridge::​IClient_job_progress::get_pending_data_serialization_count() const [pure virtual]

Returns the number of elements that have been queued up for serialization. The data needs to be serialized before it can be sent.

Can be larger than 0 in states up to and including CLIENT_JOB_UPLOADING and is 0 in all later states.

virtual Size mi::​bridge::​IClient_job_progress::get_pending_hash_calculation_count() const [pure virtual]

Returns the number of elements for which hashes needs to be calculated. Can be larger than 0 in states up to and including CLIENT_JOB_PREPARING and is 0 in all the other states.

virtual Client_job_state mi::​bridge::​IClient_job_progress::get_state() const [pure virtual]

Returns the state of the job. See Client_job_state.

virtual Size mi::​bridge::​IClient_job_progress::get_updated_element_count() const [pure virtual]

Returns the number of elements that need to be updated before executing this job. In state CLIENT_JOB_DETECTING_CHANGES this is the number of elements for which changes have been detected so far. In all other states it is the final number of elements that needs to be updated.

virtual Size mi::​bridge::​IClient_job_progress::get_uploaded_cache_miss_bytes() const [pure virtual]

Returns the number of bytes that has been uploaded for the cache misses so far. Will be equal to get_cache_miss_bytes() in states CLIENT_JOB_PENDING and later.

virtual Size mi::​bridge::​IClient_job_progress::get_uploaded_cache_miss_count() const [pure virtual]

Returns the number of cache misses for which data has been uploaded so far. Will be equal to get_cache_miss_count() in states CLIENT_JOB_PENDING and later.