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

Public Member Functions

 DataSender (NorthPlugin *plugin, DataLoad *loader, NorthService *north)
 Constructor for the data sending class.
 
 ~DataSender ()
 Destructor for the data sender class.
 
void sendThread ()
 The sending thread entry point.
 
void updatePlugin (NorthPlugin *plugin)
 
void pause ()
 Cause the data sender process to pause sending data until a corresponding release call is made. More...
 
void release ()
 Release the paused data sender thread. More...
 
void setPerfMonitor (PerformanceMonitor *perfMonitor)
 
bool isRunning ()
 
void flushStatistics ()
 Flush statistics to storage service.
 
bool isDryRun ()
 Check status of dryrun flag. More...
 

Member Function Documentation

◆ isDryRun()

bool DataSender::isDryRun ( )

Check status of dryrun flag.

Returns
True dryrun flag is true

◆ pause()

void DataSender::pause ( )

Cause the data sender process to pause sending data until a corresponding release call is made.

This call does not block until release is called, but does block until the current send completes.

Called by external classes that want to prevent interaction with the north plugin.

◆ release()

void DataSender::release ( )

Release the paused data sender thread.

Called by external classes that want to release interaction with thew north plugin.


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