Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef REDISRECEIVERCONFIGURATOR_H_
#define REDISRECEIVERCONFIGURATOR_H_
#include <Base_Configurator.h>
#include <Redis_Receiver.h>
class RedisReceiverConfigurator : public BaseConfigurator{
public:
RedisReceiverConfigurator(int argc, char **argv);
RedisReceiverConfigurator();
void setRedisIP(std::string val){this->params["redisIP"] = val;}
void setRedisPort(int val){this->params["redisPort"] = std::to_string(val);}
void setRedisKey(std::string val){this->params["redisKey"] = val;}
std::map<std::string,std::string> getParams(){return this->params;}
std::string getRedisIP(){return this->params["redisIP"];}
int getRedisPort(){return std::stoi(this->params["redisPort"]);}
std::string getRedisKey(){return this->params["redisKey"];}
BaseProtocol * createReceiver();
RedisReceiver * createRedisReceiver();
void createRedisReceiver(RedisReceiver &);
void printConfiguration(){
std::string confStr = "Redis Receiver Configuration:\n" + this->toString();
std::cout << confStr << std::endl;
}
};
#endif