#ifndef DB_PLUGIN_H
|
#define DB_PLUGIN_H
|
|
#include "PluginInterface.h"
|
#include "IPC.h"
|
#include <iostream>
|
#include <glog/logging.h>
|
#include "RocksDBWrapper.h"
|
|
|
class DataBasePlugin : public IPlugin
|
{
|
private:
|
IPC *ipc;
|
|
public:
|
DataBasePlugin(IPC *ipc);
|
void handleMessage(const Command &cmd) override;
|
void updateConfig(const nlohmann::json &config) override;
|
const std::string getPluginName() override;
|
const std::string plugin_name = "RocksDB";
|
};
|
|
#endif // DB_PLUGIN_H
|