hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DRCESessionOptions.hpp
Go to the documentation of this file.
1 
14 #ifndef DRCE_SESSION_OPTIONS_HPP
15 #define DRCE_SESSION_OPTIONS_HPP
16 
17 #include <iostream>
18 #include <vector>
19 
20 namespace HCE
21 {
22 namespace drce
23 {
24 //-----------------------------------------------------------------------------
26 {
27  enum class SessionType
28  {
29  stHostShell=0,
30  stSsh=1
31  };
32 
33  enum class ThreadMode
34  {
35  tmSync=1,
36  tmAsync=2
37  };
38 
39  enum class CleanupFlag
40  {
41  cfNotDelete=0,
42  cfDelete=1
43  };
44 
45  SessionOptions(void);
46  SessionOptions(const SessionOptions& rhs);
48 
51 
52  void clear(void);
53 
55  unsigned int port;
56  std::string userName;
57  std::string userPassword;
58  std::string shellName;
59  std::vector<std::pair<std::string, std::string> > environments;
60  std::string homeDir;
61  unsigned int timeout;
63  unsigned int timeMax;
65 };
66 //-----------------------------------------------------------------------------
67 //-----------------------------------------------------------------------------
68 } // namespace drce
69 } // namespace HCE
70 
71 #endif // DRCE_SESSION_OPTIONS_HPP