hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
main.cpp File Reference
#include "main.hpp"
Include dependency graph for main.cpp:

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::AdminpHandlerAdmin = nullptr
 <Global pointer to admin handlers

Enumeration Type Documentation

enum BgStatus
Enumerator:
BACKGROUND_ERROR 
BACKGRAUND_OK 
IGNORE_PARENT 

Definition at line 65 of file main.cpp.

Function Documentation

void applicationSignalHandler ( int  sig)

Definition at line 28 of file main.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

BgStatus gotoBackgraund ( void  )

Definition at line 72 of file main.cpp.

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.

Here is the call graph for this function:

void signalInstall ( void  )

Definition at line 41 of file main.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

HCE::handlers::Admin* pHandlerAdmin = nullptr

<Global pointer to admin handlers

Definition at line 26 of file main.cpp.