hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DRCENodeOptions.hpp
Go to the documentation of this file.
1 
14 #ifndef DRCE_NODE_OPTIONS_HPP
15 #define DRCE_NODE_OPTIONS_HPP
16 
17 #include <string>
18 
19 namespace HCE
20 {
21 namespace drce
22 {
23 //-----------------------------------------------------------------------------
25 {
26 public:
27  DRCENodeOptions(const std::string& nodeName_,
28  const std::string& homeDir_,
29  const std::string& tasksDataDir_,
30  const std::string& tasksStatusDir_,
31  const std::string& nodeHost_="",
32  const std::string& nodePort_="");
33  DRCENodeOptions(const DRCENodeOptions& rhs);
35  virtual ~DRCENodeOptions(void) {}
36 
39 
40  void setNodeName(const std::string& nodeName_) {nodeName=nodeName_;}
41  std::string getNodeName(void) const {return nodeName;}
42 
43  void setHomeDir(const std::string& homeDir_) {homeDir=homeDir_;}
44  std::string getHomeDir(void) const {return homeDir;}
45 
46  void setTasksDataDir(const std::string& tasksDataDir_) {tasksDataDir=tasksDataDir_;}
47  std::string getTasksDataDir(void) const {return tasksDataDir;}
48 
49  void setTasksStatusDir(const std::string& tasksStatusDir_) {tasksStatusDir=tasksStatusDir_;}
50  std::string getTasksStatusDir(void) const {return tasksStatusDir;}
51 
52  void setNodeHost(const std::string& nodeHost_) {nodeHost=nodeHost_;}
53  std::string getNodeHost(void) const {return nodeHost;}
54 
55  void setNodePort(const std::string& nodePort_) {nodePort=nodePort_;}
56  std::string getNodePort(void) const {return nodePort;}
57 
58 protected:
59  std::string nodeName;
60  std::string homeDir;
61  std::string tasksDataDir;
62  std::string tasksStatusDir;
63  std::string nodeHost;
64  std::string nodePort;
65 };
66 //-----------------------------------------------------------------------------
67 //-----------------------------------------------------------------------------
68 } // end namespace drce
69 } // end namespace HCE
70 
71 #endif // DRCE_NODE_OPTIONS_HPP