module documentation
OpCodes base module
This module implements part of the data structures which define the cluster operations - the so-called opcodes.
Every operation which modifies the cluster state is expressed via opcodes.
Class |
|
A simple serializable object. |
Function |
|
Builds check for job dependencies (DEPEND_ATTR ). |
Function |
|
Convert an opcode class name to a source string for the reason trail |
Constant | COMMENT |
Undocumented |
Constant | DEPEND |
Undocumented |
Constant | SUMMARY |
Undocumented |
Variable |
|
Undocumented |
Class | _ |
Meta class for opcode definitions. |
Function | _ |
Split an opcode class name into its components |
Function | _ |
Convert an opcode class name to an OP_ID. |
Constant | _OPID |
Undocumented |
Builds check for job dependencies (DEPEND_ATTR
).
Parameters | |
relative:bool | Whether to accept relative job IDs (negative) |
Returns | |
callable | Undocumented |
Convert an opcode class name to a source string for the reason trail
Parameters | |
name:string | the class name, as OpXxxYyy |
prefix:string | the prefix that will be prepended to the opcode name |
Returns | |
string | the name in the OP_XXXX_YYYY format |
Split an opcode class name into its components
Parameters | |
name:string | the class name, as OpXxxYyy |
Returns | |
array of strings | the components of the name |