ConfigMigrationRunner
Orchestrates an ordered sequence of ConfigMigrationStep instances.
Steps are appended with addStep() and executed in insertion order by run(). The runner processes each step through its detect, precheck, migrate, and postcheck lifecycle hooks. Execution stops at the first hook that returns false.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
ConfigMigrationRunner | Constructs an empty runner with no registered steps. | |
bool | addStep | Appends a step to the end of the ordered pipeline. |
bool | run | Executes all registered steps in insertion order. |
ConfigMigrationRunner
Section titled “ConfigMigrationRunner”Constructs an empty runner with no registered steps.
addStep
Section titled “addStep”Appends a step to the end of the ordered pipeline.
Duplicate detection is pointer-based: the same raw pointer is never added twice.
Returns
Section titled “Returns”true if the step was appended; false if it was already present and ignored.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
newStep | ConfigMigrationStep* | Pointer to the step to append. The runner does not take ownership. |
Executes all registered steps in insertion order.
For each step the runner calls detect(), precheck(), migrate(), and postcheck() in sequence. A false return from detect() skips the remaining hooks for that step without failing the pipeline. A false return from any other hook stops the pipeline and returns false.
Returns
Section titled “Returns”true if every step completed successfully; false if the pipeline was aborted by a failed hook.