 |
Fledge
An open source edge computing platform for industrial users
|
1 #ifndef _STORAGE_SERVICE_H
2 #define _STORAGE_SERVICE_H
13 #include <storage_api.h>
15 #include <configuration.h>
16 #include <storage_plugin.h>
17 #include <plugin_configuration.h>
18 #include <service_handler.h>
20 #define SERVICE_NAME "Fledge Storage"
32 void start(std::string& coreAddress,
unsigned short corePort);
36 bool isRunning() {
return !m_shutdown; };
37 void configChange(
const std::string&,
const std::string&);
38 void configChildCreate(
const std::string&,
const std::string&,
const std::string&){};
39 void configChildDelete(
const std::string& ,
const std::string&){};
43 void setLogLevel(std::string level)
56 bool m_requestRestart;
57 std::string m_logLevel;
The storage service must handle its own configuration differently to other services as it is unable t...
Definition: configuration.h:32
void stop()
Stop the storage service/.
Definition: storage.cpp:464
void restart()
Restart request.
Definition: storage.cpp:572
void shutdown()
Shutdown request.
Definition: storage.cpp:558
~StorageService()
Storage Service destructor.
Definition: storage.cpp:277
string getPluginName()
Return the name of the configured storage service.
Definition: storage.cpp:639
string getReadingPluginName()
Return the name of the configured reading plugin.
Definition: storage.cpp:655
Class that represents a storage plugin.
Definition: storage_plugin.h:34
The Storage API class - this class is responsible for the registration of all API entry points in the...
Definition: storage_api.h:84
StorageService(const string &name)
Constructor for the storage service.
Definition: storage.cpp:218
void start(std::string &coreAddress, unsigned short corePort)
Start the storage service.
Definition: storage.cpp:287
string getPluginManagedStatus()
Return the managed status of the storage plugin.
Definition: storage.cpp:647
void configChange(const std::string &, const std::string &)
Configuration change notification.
Definition: storage.cpp:586
Fledge Logger class used to log to syslog.
Definition: logger.h:42
The StorageService class.
Definition: storage_service.h:28
ServiceHandler abstract class - the interface that services using the management API must provide.
Definition: service_handler.h:20