SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
ContextBroker.cc
Go to the documentation of this file.
1
/*
2
* SWC-DB© Copyright since 2019 Alex Kashirin <kashirin.alex@gmail.com>
3
* License details at <https://github.com/kashirin-alex/swc-db/#license>
4
*/
5
6
#include "
swcdb/db/client/service/bkr/ContextBroker.h
"
7
#include "
swcdb/db/Protocol/Commands.h
"
8
9
10
namespace
SWC
{
namespace
client {
11
12
ContextBroker::ContextBroker
(
const
Config::Settings
& settings)
13
: Comm::AppContext(
14
settings.get<Config::Property::Value_enum_g>(
15
"swc.client.Bkr.comm.encoder"
)) {
16
}
17
18
void
ContextBroker::handle
(
Comm::ConnHandlerPtr
,
//conn
19
const
Comm::Event::Ptr
& ev) {
20
SWC_LOG_OUT
(
LOG_WARN
, ev->print(
SWC_LOG_OSTREAM
<<
"unhandled: "
); );
21
}
22
23
24
}}
SWC_LOG_OSTREAM
#define SWC_LOG_OSTREAM
Definition:
Logger.h:44
SWC_LOG_OUT
#define SWC_LOG_OUT(pr, _code_)
Definition:
Logger.h:178
ContextBroker.h
SWC::client::ContextBroker::handle
void handle(Comm::ConnHandlerPtr conn, const Comm::Event::Ptr &ev) override
Definition:
ContextBroker.cc:18
SWC::client::ContextBroker::ContextBroker
ContextBroker(const Config::Settings &settings)
Definition:
ContextBroker.cc:12
SWC
The SWC-DB C++ namespace 'SWC'.
Definition:
main.cc:12
Commands.h
SWC::Config::Settings
Definition:
Settings.h:25
SWC::Comm::ConnHandlerPtr
std::shared_ptr< ConnHandler > ConnHandlerPtr
Definition:
AppContext.h:17
SWC::LOG_WARN
@ LOG_WARN
Definition:
Logger.h:33
SWC::Comm::Event::Ptr
std::shared_ptr< Event > Ptr
Definition:
Event.h:33
lib
swcdb
db
client
service
bkr
ContextBroker.cc
Generated on Sat Jun 3 2023 18:00:08 for SWC-DB by
1.8.20