module documentation
Module implementing the logic behind the cluster operations
This module implements the logic for doing operations in the cluster. There are two kinds of classes defined:
- logical units, which know how to deal with their specific opcode only
- the processor, which dispatches the opcodes to their logical units
Class |
|
Class with lock acquire timeout strategy. |
Class |
|
Base class for OpCode execution callbacks. |
Class |
|
Object which runs OpCodes |
Exception |
|
Exception to report timeouts on acquiring locks. |
Variable | lus |
Undocumented |
Variable | sighup |
Undocumented |
Function | _ |
Calculate timeouts for lock attempts. |
Function | _ |
Check if secret parameters are expected, but missing. |
Function | _ |
Computes the opcode-to-lu dispatch table. |
Function | _ |
Implementation of OpExecCbBase.SubmitManyJobs to raise an exception. |
Function | _ |
If 'names' is a string, make it a single-element list. |
Function | _ |
Computes the LU name for a given OpCode name. |
Function | _ |
Examines opcode result. |
Function | _ |
Copies basic opcode parameters. |
Constant | _LU |
Undocumented |
Constant | _OP |
Undocumented |
If 'names' is a string, make it a single-element list.
Parameters | |
names:list or string or NoneType | Lock names |
Returns | |
a list of strings | if 'names' argument is an iterable, a list of it; if it's a string, make it a one-element list; if locking.ALL_SET , locking.ALL_SET |
Copies basic opcode parameters.
Parameters | |
src:opcodes.OpCode | Source opcode |
defcomment:string | Comment to specify if not already given |
dst:opcodes.OpCode | Destination opcode |