class documentation
class _OpExecCallbacks(mcpu.OpExecCbBase):
Undocumented
Method | __init__ |
Initializes this class. |
Method |
|
Returns current priority for opcode. |
Method |
|
Append a log entry. |
Method |
|
Mark opcode again as lock-waiting. |
Method |
|
Mark the opcode as running, not lock-waiting. |
Method |
|
Submits jobs for processing. |
Method | _ |
Internal feedback append function, with locks |
Method | _ |
Raises an exception to cancel the job if asked to. |
Instance Variable | _job |
Undocumented |
Instance Variable | _op |
Undocumented |
Instance Variable | _queue |
Undocumented |
Initializes this class.
Parameters | |
queue:JobQueue | Job queue |
job:_QueuedJob | Job object |
op:_QueuedOpCode | OpCode |
overrides
ganeti.mcpu.OpExecCbBase.Feedback
Append a log entry.
Calling conventions: arg[0]: (optional) string, message type (Types.ELogType) arg[1]: data to be interpreted as a message
overrides
ganeti.mcpu.OpExecCbBase.NotifyRetry
Mark opcode again as lock-waiting.
This is called from the mcpu code just after calling PrepareRetry. The opcode will now again acquire locks (more, hopefully).
overrides
ganeti.mcpu.OpExecCbBase.NotifyStart
Mark the opcode as running, not lock-waiting.
This is called from the mcpu code as a notifier function, when the LU is finally about to start the Exec() method. Of course, to have end-user visible results, the opcode must be initially (before calling into Processor.ExecOpCode) set to OP_STATUS_WAITING.