hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DataNodeOptions.hpp
Go to the documentation of this file.
1 
14 #ifndef DATA_NODE_OPTIONS_HPP
15 #define DATA_NODE_OPTIONS_HPP
16 
17 #include "Handler.hpp"
18 #include "HandlerProperties.hpp"
19 
20 namespace HCE
21 {
22 namespace handlers
23 {
24 //-----------------------------------------------------------------------------
26 {
27 public:
28  DataNodeOptions(HandlerProperties& handlerProperties);
29  virtual ~DataNodeOptions(void) {};
30 
31  void initNode(const std::string& iniFile, LoggerStream& logger);
32 
33  void setHeartbeatDelay(unsigned int heartbeatDelay);
34  unsigned int getHeartbeatDelay(void);
35 
36  void setHeartbeatTimeout(unsigned int heartbeatTimeout);
37  unsigned int getHeartbeatTimeout(void);
38 
39  void setHeartbeatMode(unsigned int heartbeatMode);
40  unsigned int getHeartbeatMode(void);
41 
42 private:
43  HandlerProperties& properties;
44 };
45 //-----------------------------------------------------------------------------
46 //-----------------------------------------------------------------------------
47 } // end namespace drce
48 } // end namespace HCE
49 
50 #endif // DATA_NODE_OPTIONS_HPP