hce-node application
1.4.3
HCE Hierarchical Cluster Engine node application
|
#include "main.hpp"
Go to the source code of this file.
Namespaces | |
namespace | HCE |
< HCE::ServerApplication provides global variable 'HCE::database::Session' which initializes in function 'HCE::ServerApplication::initializeDataBaseSession()' |
Enumerations | |
enum | BgStatus { BACKGROUND_ERROR = -1, BACKGRAUND_OK = 0, IGNORE_PARENT = 1 } |
Functions | |
void | applicationSignalHandler (int sig) |
void | signalInstall (void) |
BgStatus | gotoBackgraund (void) |
int | main (int argc, char *argv[]) |
Variables | |
HCE::handlers::Admin * | pHandlerAdmin = nullptr |
<Global pointer to admin handlers |
enum BgStatus |
void applicationSignalHandler | ( | int | sig | ) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
<Init actual cli args map with default values
<Init node modes map
<Fill supported cli args
<Parse and check cli args
<Display help message and terminate
<Init list exist loggers
<Node name
<Connection strings
<Node role-dependent connection strings vars
<Add to list loggers name task logger
<Init client data mode
<Read config file name
<Init list exist loggers
<Load config file
<Init log/debug level
<Create logger stream
<Check nessesary of demonization
<Demonization of application
<Check zmq library version
<Start time mark init
<Init random generator
<Create zmq context handler
<Create thread identifiers
<General application start header
<Create admin handler
<Create admin handler's thread
<Check node mode and create correspondent handlers and threads
<Proxy mode (SHARD MANAGER)
<Let bind sockets to stabilize...
<Create dataServer's thread
<Let bind sockets to stabilize...
<Create and run dataclient's proxy handler
<Wait until admin thread is not finished
<Shutdown all handlers
<Wait until dataclient thread is not finished
<Wait until dataServer thread is not finished
<Wait until datareducer thread is not finished
<Data node mode
<Create data processor thread
<Let sockets to stabilize...
<Create dataclient's thread data
<Wait to finish admin thread
<Shutdown dataclient thread
<Wait until dataclient thread is not finished
<Shutdown dataprocessor thread
<Wait until dataprocessor thread is not finished
<Router node mode
<Create data reducer's thread
<Let bind sockets to stabilize...
<Create dataServer's thread
<Let bind sockets to stabilize...
<Create router's thread
<Wait to finish data server thread
<Shutdown all handlers
<Wait until routerserver thread is not finished
<Wait until dataServer thread is not finished
<Wait until datareducer thread is not finished
Definition at line 111 of file main.cpp.
void signalInstall | ( | void | ) |
HCE::handlers::Admin* pHandlerAdmin = nullptr |