Package ganeti :: Module mcpu :: Class OpExecCbBase
[hide private]
[frames] | no frames]

Class OpExecCbBase

source code


Base class for OpCode execution callbacks.

Instance Methods [hide private]
 
NotifyStart(self)
Called when we are about to execute the LU.
source code
 
NotifyRetry(self)
Called when we are about to reset an LU to retry again.
source code
 
Feedback(self, *args)
Sends feedback from the LU code to the end-user.
source code
 
CurrentPriority(self)
Returns current priority or None.
source code
 
SubmitManyJobs(self, jobs)
Submits jobs for processing.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

NotifyStart(self)

source code 

Called when we are about to execute the LU.

This function is called when we're about to start the lu's Exec() method, that is, after we have acquired all locks.

NotifyRetry(self)

source code 

Called when we are about to reset an LU to retry again.

This function is called after PrepareRetry successfully completed.

SubmitManyJobs(self, jobs)

source code 

Submits jobs for processing.

See jqueue.JobQueue.SubmitManyJobs.