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

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, cl)
(Constructor)

source code 

Initializes this class.

Parameters:
  • cl - RAPI client instance
Overrides: object.__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