the location of the database - file
Returns: | the filepath, where to find the database |
---|---|
Return type: | string |
method will return a dictionary which holds the host and the port of the pipeLionServer.
Returns: | host and port of the pipeLionServer |
---|---|
Return type: | dict |
method will return the path to the project-server depending on the current platform
Returns: | projectServer |
---|---|
Return type: | string |
method defines files, which should be searched in order to extend the config of the pipeLion.
Parameters: | project (Project) – is a project-object, which will enable this method to get a custom config of the project |
---|---|
Returns: | a list of file-paths |
Return type: | list of strings |
This class handles the ids which are needed by pipeLion. It is a singleton class and can therefore only have one instance at a time.
In this class all Ids, are stored. To avoid conflicts with older instances Id’s can also be stored on disk and reloaded into an object of this class.
The pipelion Ids consist out of four parts:
1st: request-time in seconds from the Epoch 2nd: name of the project from which the request comes from 3rd: name of the node-type the request comes from 4th: index to avoid double ids
- eg:
- (1234567889, ‘testProject’, ‘nodeType’, 0) (1234567889, ‘testProject’, ‘nodeType’, 1) (1234567890, ‘testProject’, ‘nodeType’, 0) (1234567890, ‘testProject’, ‘nodeType2’, 0)
for printouts the id should be shown as a dotNotation:
eg: ‘1234567889.testProject.nodeType2.0’
Note: This is one of the core-classes and must not break at any time. please make sure that mandatory functions still work, by running the unittest module for this class.
Method will add a given id to the global list. In case the given Id already exists it will raise an error
Method will convert the dotNotation-string to an id-tuple and then add this to the global list
return a certain range of ids in the id-list helps if you don’t want to print out the whole list but only 10 entries
This parser class will parse a given number of files and will create a dictionary holding all confing information
as a plus multipple ConfigParser objects can be merged together.
method allows to add config files after the constructor has been parsed
Parameters: | files (list of strings) – a list of filepaths |
---|
method to merge to configs. The parent config will be extended by the childConfig.
Parameters: |
|
---|---|
Returns: | the extended parentConfig |
Return type: | ConfigParser |