Package ganeti :: Module cli :: Class _LuxiJobPollCb
[hide private]
[frames] | no frames]

Class _LuxiJobPollCb

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, timeout=constants.DEFAULT_WFJC_TIMEOUT)
Waits for changes on a job.
source code
 
QueryJobs(self, job_ids, fields)
Returns the selected fields for the selected job IDs.
source code
 
CancelJob(self, job_id)
Cancels a currently running job.
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.

Overrides: object.__init__

WaitForJobChangeOnce(self, job_id, fields, prev_job_info, prev_log_serial, timeout=constants.DEFAULT_WFJC_TIMEOUT)

source code 

Waits for changes on a job.

Overrides: JobPollCbBase.WaitForJobChangeOnce

QueryJobs(self, job_ids, fields)

source code 

Returns the selected fields for the selected job IDs.

Parameters:
  • job_ids - Job IDs
  • fields - Fields
Overrides: JobPollCbBase.QueryJobs

CancelJob(self, job_id)

source code 

Cancels a currently running job.

Parameters:
  • job_id - The ID of the Job we want to cancel
Overrides: JobPollCbBase.CancelJob