![]() |
Fledge
An open source edge computing platform for industrial users
|
A class that holds the configuration information for the OMF plugin. More...
#include <omfinfo.h>
Public Member Functions | |
OMFInformation (ConfigCategory *configData) | |
Constructor for the OMFInformation class. More... | |
~OMFInformation () | |
Destructor for the OMFInformation class. | |
void | start (const std::string &storedData) |
The plugin start entry point has been called. More... | |
uint32_t | send (const vector< Reading *> &readings) |
Send data to the OMF endpoint. More... | |
std::string | saveData () |
Return the data to be persisted. More... | |
A class that holds the configuration information for the OMF plugin.
Note this is the first stage of refactoring the OMF plugins and represents the CONNECTOR_INFO structure of original plugin as a class
OMFInformation::OMFInformation | ( | ConfigCategory * | configData | ) |
Constructor for the OMFInformation class.
Extract host, port, path from URL
Add static data Split the string up into each pair
string OMFInformation::saveData | ( | ) |
Return the data to be persisted.
uint32_t OMFInformation::send | ( | const vector< Reading *> & | readings | ) |
Send data to the OMF endpoint.
readings | The block of readings to send |
Select the transport library based on the authentication method and transport encryption requirements.
LibcurlHttps is used to integrate Kerberos as the SimpleHttp does not support it the Libcurl integration implements only HTTPS not HTTP currently. We use SimpleHttp or SimpleHttps, as appropriate for the URL given, if not using Kerberos
The handler is allocated using "Hostname : port", connect_timeout and request_timeout. Default is no timeout
void OMFInformation::start | ( | const std::string & | storedData | ) |
The plugin start entry point has been called.
storedData | The data that has been persisted by a previous execution of the plugin |