SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
SWC::ThriftBroker Namespace Reference

The SWC-DB Application ThriftBroker C++ namespace 'SWC::ThriftBroker'. More...

Namespaces

 Metric
 The SWC-DB ThriftBroker Metric C++ namespace 'SWC::ThriftBroker::Metric'.
 

Classes

class  AppContext
 
class  AppHandler
 

Functions

SWC_SHOULD_NOT_INLINE AppContext::Ptr make_service (Threads_t &threads, Servers_t &servers)
 
SWC_SHOULD_NOT_INLINE int exiting (Threads_t &threads, Servers_t &servers)
 
int run ()
 

Detailed Description

The SWC-DB Application ThriftBroker C++ namespace 'SWC::ThriftBroker'.

Function Documentation

◆ exiting()

SWC_SHOULD_NOT_INLINE int SWC::ThriftBroker::exiting ( Threads_t &  threads,
Servers_t &  servers 
)

Definition at line 155 of file main.cc.

References SWC::LOG_INFO, SWC::Env::Config::reset(), SWC_CAN_QUICK_EXIT, and SWC_LOG.

Referenced by run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ make_service()

SWC_SHOULD_NOT_INLINE AppContext::Ptr SWC::ThriftBroker::make_service ( Threads_t &  threads,
Servers_t &  servers 
)

Definition at line 36 of file main.cc.

References SWC::Core::Vector< T, SizeT, GROW_SZ >::front(), SWC::Comm::Resolver::get_endpoints(), SWC::LOG_FATAL, SWC::LOG_INFO, SWC::Core::Vector< T, SizeT, GROW_SZ >::push_back(), SWC::Env::Config::settings(), SWC::Condition::str_case_eq(), SWC_LOG_OSTREAM, SWC_LOG_OUT, SWC_LOGF, SWC_QUICK_EXIT, SWC_THROW, and timeout_ms.

Referenced by run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ run()

int SWC::ThriftBroker::run ( )

Definition at line 175 of file main.cc.

References exiting(), make_service(), and SWC_TRY_OR_LOG.

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: