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

The storage service must handle its own configuration differently to other services as it is unable to read the configuration from the database. More...

#include <plugin_configuration.h>

Public Member Functions

 StoragePluginConfiguration (const std::string &name, StoragePlugin *plugin)
 Constructor for storage service configuration class.
 
const char * getValue (const std::string &key)
 Return a value from the cached configuration category.
 
bool hasValue (const std::string &key)
 Return if a value exsits for the cached configuration category.
 
bool setValue (const std::string &key, const std::string &value)
 Set the value of a configuration item.
 
void updateCategory (const std::string &json)
 Called when the configuration category is updated.
 
void registerCategory (ManagementClient *client)
 
DefaultConfigCategorygetDefaultCategory ()
 Return the default category to register with the core. More...
 
ConfigCategorygetConfiguration ()
 Return the category to register with the core. More...
 

Detailed Description

The storage service must handle its own configuration differently to other services as it is unable to read the configuration from the database.

This class deals with the configuration from the storage plugins, maintaining a cache for the plugin

Member Function Documentation

◆ getConfiguration()

ConfigCategory * StoragePluginConfiguration::getConfiguration ( )

Return the category to register with the core.

This allows the storage configuration to appear in the UI

Returns
ConfigCategory* The default configuration category

◆ getDefaultCategory()

DefaultConfigCategory * StoragePluginConfiguration::getDefaultCategory ( )

Return the default category to register with the core.

This allows the storage configuration to appear in the UI

Returns
DefaultConfigCategory* The default configuration category

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