![]() |
Project
|
#include <DataSampling.h>
Public Member Functions | |
| DataSampling ()=delete | |
| Deleted default constructor. This class is stateless. | |
Static Public Member Functions | |
| static void | GenerateInfrastructure (framework::WorkflowSpec &workflow, const std::string &policiesSource, size_t threads=1, const std::string &host="") |
| Generates data sampling infrastructure. | |
| static void | GenerateInfrastructure (framework::WorkflowSpec &workflow, boost::property_tree::ptree const &policies, size_t threads=1, const std::string &host="") |
| Generates data sampling infrastructure. | |
| static void | CustomizeInfrastructure (std::vector< framework::CompletionPolicy > &) |
| Configures dispatcher to consume any data immediately. | |
| static void | CustomizeInfrastructure (std::vector< framework::ChannelConfigurationPolicy > &) |
| Applies blocking/nonblocking data sampling configuration to the workflow. | |
| static std::vector< framework::InputSpec > | InputSpecsForPolicy (const boost::property_tree::ptree &policiesTree, const std::string &policyName) |
| Provides InputSpecs to receive data for given DataSamplingPolicy. Expects the "dataSamplingPolicies" tree. | |
| static std::vector< framework::OutputSpec > | OutputSpecsForPolicy (const boost::property_tree::ptree &policiesTree, const std::string &policyName) |
| Provides OutputSpecs of given DataSamplingPolicy. Expects the "dataSamplingPolicies" tree. | |
| static std::optional< uint16_t > | PortForPolicy (const boost::property_tree::ptree &policiesTree, const std::string &policyName) |
| Provides the port to be used for a proxy of given DataSamplingPolicy. Expects the "dataSamplingPolicies" tree. | |
| static std::vector< std::string > | MachinesForPolicy (const boost::property_tree::ptree &policiesTree, const std::string &policyName) |
| Provides the machines where given DataSamplingPolicy is enabled. Expects the "dataSamplingPolicies" tree. | |
| static std::string | BindLocationForPolicy (const boost::property_tree::ptree &policiesTree, const std::string &policyName) |
| Says if remote part (e.g. QC server) should bind the inter-machine channel, according to the configuration. Expects the "dataSamplingPolicies" tree. | |
A class responsible for providing data from main processing flow to QC tasks.
This class generates message-passing infrastructure to provide desired amount of data to Quality Control tasks or any other clients. Data to be sampled is declared in DataSamplingPolicy'ies configuration file - an example can be found in O2/Framework/TestWorkflows/exampleDataSamplingConfig.json).
In-code usage:
Definition at line 74 of file DataSampling.h.
|
delete |
Deleted default constructor. This class is stateless.
|
static |
Says if remote part (e.g. QC server) should bind the inter-machine channel, according to the configuration. Expects the "dataSamplingPolicies" tree.
Definition at line 182 of file DataSampling.cxx.
|
static |
Applies blocking/nonblocking data sampling configuration to the workflow.
Definition at line 118 of file DataSampling.cxx.
|
static |
Configures dispatcher to consume any data immediately.
Definition at line 112 of file DataSampling.cxx.
|
static |
Generates data sampling infrastructure.
| workflow | DPL workflow with already declared data processors which provide data desired by QC tasks. |
| policiesSource | boost::property_tree::ptree with the configuration |
| threads | Number of dispatcher threads, that will handle the data |
| host | Host name. If the host or a policy machine list are empty, the policy will always be created. |
Definition at line 52 of file DataSampling.cxx.
|
static |
Generates data sampling infrastructure.
| workflow | DPL workflow with already declared data processors which provide data desired by QC tasks. |
| policiesSource | Path to configuration file. |
| threads | Number of dispatcher threads, that will handle the data |
| host | Host name. If the host or a policy machine list are empty, the policy will always be created. |
Definition at line 40 of file DataSampling.cxx.
|
static |
Provides InputSpecs to receive data for given DataSamplingPolicy. Expects the "dataSamplingPolicies" tree.
Definition at line 124 of file DataSampling.cxx.
|
static |
Provides the machines where given DataSamplingPolicy is enabled. Expects the "dataSamplingPolicies" tree.
Definition at line 166 of file DataSampling.cxx.
|
static |
Provides OutputSpecs of given DataSamplingPolicy. Expects the "dataSamplingPolicies" tree.
Definition at line 140 of file DataSampling.cxx.
|
static |
Provides the port to be used for a proxy of given DataSamplingPolicy. Expects the "dataSamplingPolicies" tree.
Definition at line 155 of file DataSampling.cxx.