hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
main.hpp
Go to the documentation of this file.
1 
18 #ifndef __HCE_NODEM_INCLUDED__
19 #define __HCE_NODEM_INCLUDED__
20 
21 #include <sys/utsname.h>
22 #include <sys/types.h>
23 #include <sys/stat.h>
24 #include <pthread.h>
25 #include <signal.h>
26 #include <unistd.h>
27 #include <stdlib.h>
28 #include <fcntl.h>
29 
30 #include <string.h>
31 #include <iostream>
32 #include <map>
33 
34 #include <Poco/Util/OptionSet.h>
35 #include <Poco/Util/OptionProcessor.h>
36 #include <Poco/Path.h>
37 
38 #include "Admin.hpp"
39 #include "DataClientProxy.hpp"
40 #include "RouterServerProxy.hpp"
41 #include "DataReducerProxy.hpp"
42 #include "DataClientData.hpp"
43 #include "DataServerProxy.hpp"
44 #include "DataProcessorData.hpp"
45 #include "LoggerConfigLoader.hpp"
46 #include "LoggerStream.hpp"
47 #include "ServiceMessages.hpp"
48 
50 const std::string APP_VERSION = "1.4.3, build " + std::string(__DATE__) + " " + std::string(__TIME__);
51 
53 const std::string NODE_CLI_NAME = "name";
54 const std::string NODE_CLI_ADMIN = "admin";
55 const std::string NODE_CLI_CLIENT = "client";
56 const std::string NODE_CLI_SERVER = "server";
57 const std::string NODE_CLI_DATAMODE = "mode";
58 const std::string NODE_CLI_ROLE = "role";
59 const std::string NODE_CLI_INI_FILE = "ini";
60 const std::string NODE_CLI_LOG_MODE = "log";
61 const std::string NODE_CLI_HELP = "help";
62 const std::string NODE_CLI_VERSION = "ver";
63 const std::string NODE_CLI_DEMONIZE = "demonize";
64 
66 const std::string NODE_CLI_ROLE_ROUTER = "router";
67 const std::string NODE_CLI_ROLE_SMANAGER = "smanager";
68 const std::string NODE_CLI_ROLE_RMANAGER = "rmanager";
69 const std::string NODE_CLI_ROLE_RMANAGER_ROUND_ROBIN = "rmanager-round-robin";
70 const std::string NODE_CLI_ROLE_RMANAGER_RND = "rmanager-rnd";
71 const std::string NODE_CLI_ROLE_RMANAGER_RESOURCES_USAGE = "rmanager-resources-usage";
72 const std::string NODE_CLI_ROLE_REPLICA = "replica";
73 
75 const std::string HCE_MAIN_LOGGER = Poco::Logger::ROOT;
76 const std::string DRCE_TASKS_LOGGER = "DRCEFO-Tasks";
77 
78 #endif /* __HCE_NODEM_INCLUDED__ */