@@ -68,6 +68,26 @@ class InfrastructureGenerator
6868 // / \param configurationTree - full QC config ptree
6969 static void generateStandaloneInfrastructure (framework::WorkflowSpec& workflow, const boost::property_tree::ptree& configurationTree);
7070
71+ // / \brief Generates a full QC chain infrastructure.
72+ // /
73+ // / Generates a full QC infrastructure from a configuration file. This function is aimed to use for standalone setups
74+ // / and local development. It will create both local and remote QC tasks, and CheckRunners running associated Checks,
75+ // / as well as Mergers between local QC tasks and Checks.
76+ // /
77+ // / \param configurationTree - full path to configuration file, preceded with the backend (e.g. "json://")
78+ // / \return generated standalone QC workflow
79+ static framework::WorkflowSpec generateFullChainInfrastructure (const boost::property_tree::ptree& configurationTree);
80+
81+ // / \brief Generates a full QC chain infrastructure.
82+ // /
83+ // / Generates a full QC infrastructure from a configuration file. This function is aimed to use for standalone setups
84+ // / and local development. It will create both local and remote QC tasks, and CheckRunners running associated Checks,
85+ // / as well as Mergers between local QC tasks and Checks.
86+ // /
87+ // / \param workflow - existing workflow where QC infrastructure should be placed
88+ // / \param configurationTree - full QC config ptree
89+ static void generateFullChainInfrastructure (framework::WorkflowSpec& workflow, const boost::property_tree::ptree& configurationTree);
90+
7191 // / \brief Generates the local part of the QC infrastructure for a specified host.
7292 // /
7393 // / Generates the local part of the QC infrastructure for a specified host - taskRunners which are declared in the
@@ -190,15 +210,12 @@ class InfrastructureGenerator
190210 static void generateLocalTaskRemoteProxy (framework::WorkflowSpec& workflow,
191211 const TaskSpec& taskSpec,
192212 size_t numberOfLocalMachines);
193- static void generateMergers (framework::WorkflowSpec& workflow,
194- const std::string& taskName,
213+ static void generateMergers (framework::WorkflowSpec& workflow, const std::string& taskName,
195214 size_t numberOfLocalMachines,
196215 std::vector<std::pair<size_t , size_t >> cycleDurationSeconds,
197- const std::string& mergingMode,
198- size_t resetAfterCycles,
199- std::string monitoringUrl,
200- const std::string& detectorName,
201- std::vector<size_t > mergersPerLayer);
216+ const std::string& mergingMode, size_t resetAfterCycles,
217+ std::string monitoringUrl, const std::string& detectorName,
218+ std::vector<size_t > mergersPerLayer, bool enableMovingWindows);
202219 static void generateCheckRunners (framework::WorkflowSpec& workflow, const InfrastructureSpec& infrastructureSpec);
203220 static void generateAggregator (framework::WorkflowSpec& workflow, const InfrastructureSpec& infrastructureSpec);
204221 static void generatePostProcessing (framework::WorkflowSpec& workflow, const InfrastructureSpec& infrastructureSpec);
@@ -218,6 +235,16 @@ inline void generateStandaloneInfrastructure(framework::WorkflowSpec& workflow,
218235 core::InfrastructureGenerator::generateStandaloneInfrastructure (workflow, configurationTree);
219236}
220237
238+ inline framework::WorkflowSpec generateFullChainInfrastructure (const boost::property_tree::ptree& configurationTree)
239+ {
240+ return core::InfrastructureGenerator::generateFullChainInfrastructure (configurationTree);
241+ }
242+
243+ inline void generateFullChainInfrastructure (framework::WorkflowSpec& workflow, const boost::property_tree::ptree& configurationTree)
244+ {
245+ core::InfrastructureGenerator::generateFullChainInfrastructure (workflow, configurationTree);
246+ }
247+
221248inline framework::WorkflowSpec generateLocalInfrastructure (const boost::property_tree::ptree& configurationTree, std::string host)
222249{
223250 return core::InfrastructureGenerator::generateLocalInfrastructure (configurationTree, host);
0 commit comments