Fledge
An open source edge computing platform for industrial users
OMFInformation Class Reference

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...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ OMFInformation()

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

Member Function Documentation

◆ saveData()

string OMFInformation::saveData ( )

Return the data to be persisted.

Returns
string The data to persist

◆ send()

uint32_t OMFInformation::send ( const vector< Reading *> &  readings)

Send data to the OMF endpoint.

Parameters
readingsThe block of readings to send
Returns
uint32_t The number of readings sent

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

◆ start()

void OMFInformation::start ( const std::string &  storedData)

The plugin start entry point has been called.

Parameters
storedDataThe data that has been persisted by a previous execution of the plugin

The documentation for this class was generated from the following files: