![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
Public Types | |
typedef unique_lock< mutex > | Guard |
Public Member Functions | |
JsonListener (const std::shared_ptr< zmq::context_t > &context) | |
void | init (std::shared_ptr< ConfigurationService > config, const std::string &endpointName, const std::string &filename) |
void | startSync () |
bool | isStatsRequest (const RestRequest &req) const |
void | updatePosition () |
void | doLogRequest (const ConnectionId &conn, const RestRequest &req) |
void | handleRequest (const ConnectionId &conn, const RestRequest &req) const |
void | shutdown () |
Public Attributes | |
Date | startTime_ |
std::FILE * | logFile_ |
mutex | historyLock |
vector< uint32_t > | history_ |
int | position_ |
Definition at line 32 of file json_listener.cc.
void JsonListener::handleRequest | ( | const ConnectionId & | connection, |
const RestRequest & | request | ||
) | const [inline, virtual] |
Handle a request. Default implementation defers to onHandleRequest. Otherwise this method should be overridden.
Reimplemented from Datacratic::RestServiceEndpoint.
Definition at line 103 of file json_listener.cc.