Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This is a base package of Splicer containing a CLI wrapper implemented in splicer.py source file and splicing logic implemented in TM1SpliceExecutor class. The class is described in detail below.

TM1SpliceExecutor (class in TM1SpliceExecutor.py)

The class implements splicing and desplicing logic in two entry point methods that are called from splicer.py when splicing or desplicing is required from the command line.

Initialization

The class is initialized before splicing or desplicing from parser.py and when the init is finished, the instance of TM1SpliceExecutor will have TM1SpliceConfigContainer associated with itself and all configuration files will be already loaded into memory. The configuration data is provided to TM1SpliceExecutor transparently through the TM1SpliceConfigContainer instance (more about the configuration container can be found in Containers (package)

Splicing

Splicing logic is implemented in splice_cube_rules method and contains following steps. First the method will determine TI processes to be run before commencing splicing. The list of processes are configurable and might be added if required to kpi_template.json configuration file to splice_cube_rules object. The list is retrieved from TM1SpliceConfigContainer instance associated with the TM1SpliceExecutor.