16 #ifndef QC_CORE_INFRASTRUCTUREGENERATOR_H 17 #define QC_CORE_INFRASTRUCTUREGENERATOR_H 24 class CompletionPolicy;
26 #include <Framework/WorkflowSpec.h> 27 #include <Framework/DataProcessorSpec.h> 56 static framework::WorkflowSpec generateStandaloneInfrastructure(std::string configurationSource);
65 static void generateStandaloneInfrastructure(framework::WorkflowSpec& workflow, std::string configurationSource);
75 static framework::WorkflowSpec generateLocalInfrastructure(std::string configurationSource, std::string host);
86 static void generateLocalInfrastructure(framework::WorkflowSpec& workflow, std::string configurationSource, std::string host);
95 static o2::framework::WorkflowSpec generateRemoteInfrastructure(std::string configurationSource);
105 static void generateRemoteInfrastructure(framework::WorkflowSpec& workflow, std::string configurationSource);
118 static void customizeInfrastructure(std::vector<framework::CompletionPolicy>& policies);
120 static void printVersion();
125 static void generateDataSamplingPolicyLocalProxy(framework::WorkflowSpec& workflow,
126 const std::string& policyName,
127 const framework::Inputs& inputSpecs,
128 const std::string& localPort);
129 static void generateDataSamplingPolicyRemoteProxy(framework::WorkflowSpec& workflow,
130 const framework::Outputs& outputSpecs,
131 const std::string& localMachine,
132 const std::string& localPort);
133 static void generateLocalTaskLocalProxy(framework::WorkflowSpec& workflow,
135 std::string taskName,
136 std::string remoteHost,
137 std::string remotePort);
138 static void generateLocalTaskRemoteProxy(framework::WorkflowSpec& workflow,
139 std::string taskName,
140 size_t numberOfLocalMachines,
141 std::string remotePort);
142 static void generateMergers(framework::WorkflowSpec& workflow,
143 std::string taskName,
144 size_t numberOfLocalMachines,
145 double cycleDurationSeconds,
146 std::string mergingMode);
147 static vector<framework::OutputSpec> generateCheckRunners(framework::WorkflowSpec& workflow, std::string configurationSource);
148 static void generateAggregator(framework::WorkflowSpec& workflow, std::string configurationSource, vector<framework::OutputSpec>& checkRunnerOutputs);
149 static void generatePostProcessing(framework::WorkflowSpec& workflow, std::string configurationSource);
156 inline framework::WorkflowSpec generateStandaloneInfrastructure(std::string configurationSource)
158 return core::InfrastructureGenerator::generateStandaloneInfrastructure(configurationSource);
161 inline void generateStandaloneInfrastructure(framework::WorkflowSpec& workflow, std::string configurationSource)
163 core::InfrastructureGenerator::generateStandaloneInfrastructure(workflow, configurationSource);
166 inline framework::WorkflowSpec generateLocalInfrastructure(std::string configurationSource, std::string host)
168 return core::InfrastructureGenerator::generateLocalInfrastructure(configurationSource, host);
171 inline void generateLocalInfrastructure(framework::WorkflowSpec& workflow, std::string configurationSource, std::string host)
173 core::InfrastructureGenerator::generateLocalInfrastructure(workflow, configurationSource, host);
176 inline framework::WorkflowSpec generateRemoteInfrastructure(std::string configurationSource)
178 return core::InfrastructureGenerator::generateRemoteInfrastructure(configurationSource);
181 inline void generateRemoteInfrastructure(framework::WorkflowSpec& workflow, std::string configurationSource)
183 core::InfrastructureGenerator::generateRemoteInfrastructure(workflow, configurationSource);
186 inline void customizeInfrastructure(std::vector<framework::CompletionPolicy>& policies)
188 core::InfrastructureGenerator::customizeInfrastructure(policies);
193 #endif //QC_CORE_INFRASTRUCTUREGENERATOR_H Definition: AggregatorRunner.h:27
A factory class which can generate QC topologies given a configuration file.
Definition: InfrastructureGenerator.h:44