Package ganeti :: Package rapi :: Module client_utils :: Class RapiJobPollCb
[hide private]
[frames] | no frames]

Class RapiJobPollCb

source code


Instance Methods [hide private]
 
__init__(self, cl)
Initializes this class.
source code
 
WaitForJobChangeOnce(self, job_id, fields, prev_job_info, prev_log_serial)
Waits for changes on a job.
source code
 
QueryJobs(self, job_ids, fields)
Returns the given fields for the selected job IDs.
source code
Method Details [hide private]

__init__(self, cl)
(Constructor)

source code 

Initializes this class.

Parameters:
  • cl - RAPI client instance
Overrides: cli.JobPollCbBase.__init__

WaitForJobChangeOnce(self, job_id, fields, prev_job_info, prev_log_serial)

source code 

Waits for changes on a job.

Overrides: cli.JobPollCbBase.WaitForJobChangeOnce

QueryJobs(self, job_ids, fields)

source code 

Returns the given fields for the selected job IDs.

Parameters:
  • job_ids (list of numbers) - Job IDs
  • fields (list of strings) - Fields
Overrides: cli.JobPollCbBase.QueryJobs