| Trees | Indices | Help |
|
|---|
|
|
A class to read and write the qbwrk.conf file on the supervisor; this file contains blocks
herein referred to as "stanzas" for each template or host definition.
An example qbwrk.conf that has 3 stanzas looks like:
[default]
worker_cpus = 0
[test]:
worker_description = 'this is a test host'
[some-host-name] : test
worker_resources = host.foo=4
worker_path_map = {
"/Users/sam" = "S:"
"/Users/test" = "T:"
}
@ivar cfg: a dict of dicts to hold all the stanzas
The top-level key is the stanza name, the string that appears between the square brackets.
For each stanza dict, there will be a key for each parameter in the stanza, as well as the
following reserved-word keys:
- inherits: the list of templates that occurs after the ":" in the stanza definition
line
- index: the zero-based index which indicates the ordering of the stanzas in the cfgFile
Any of the *_map type multi-line hash-like values are stored as lists of tuples, since the
values are always C{src = target}
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
RGX_STANZA_DEF = re.compile(r'^\[
|
|||
RGX_BLANK_LINE = re.compile(r'^\s
|
|||
RGX_PARAM = re.compile(r'^
|
|||
RGX_MAPPING_PARAM = re.compile(r'^
|
|||
RGX_PATH_MAPPING_DEF = re.compile(r'^\s
|
|||
RGX_DRIVE_MAPPING_DEF = re.compile(r'^\s
|
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see help(type(x)) for signature
|
|
|
|||
RGX_STANZA_DEF
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Apr 17 10:45:27 2017 | http://epydoc.sourceforge.net |