Joedb 10.5.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
joedb::rpc::Server Class Reference

RPC Server. More...

#include <joedb/rpc/Server.h>

Inheritance diagram for joedb::rpc::Server:
Collaboration diagram for joedb::rpc::Server:

Classes

class  Session

Public Member Functions

 Server (Logger &logger, int log_level, int thread_count, std::string endpoint_path, const std::vector< Signature > &signatures, const std::vector< Procedure * > &procedures, int64_t max_message_size=1<< 24)
Public Member Functions inherited from joedb::asio::Server
 Server (Logger &logger, int log_level, int thread_count, std::string endpoint_path)
int get_log_level () const
const std::string & get_endpoint_path () const
bool is_started () const noexcept
void start ()
void stop ()
void join ()
void run ()
virtual void cleanup_after_join ()
virtual ~Server ()
Public Member Functions inherited from joedb::Logger
virtual ~Logger ()=default

Protected Member Functions

std::unique_ptr< joedb::asio::Server::Session > new_session (boost::asio::local::stream_protocol::socket &&socket) override
Protected Member Functions inherited from joedb::asio::Server
void log (beman::cstring_view message) noexcept override

Additional Inherited Members

Static Public Attributes inherited from joedb::Logger
static Logger dummy_logger
Protected Attributes inherited from joedb::asio::Server
Logger & logger
const int log_level
const int thread_count
boost::asio::thread_pool thread_pool
bool started
const std::string endpoint_path
boost::asio::local::stream_protocol::endpoint endpoint
boost::asio::local::stream_protocol::acceptor acceptor
boost::asio::signal_set interrupt_signals

Detailed Description

Definition at line 17 of file Server.h.

Constructor & Destructor Documentation

◆ Server()

joedb::rpc::Server::Server ( Logger & logger,
int log_level,
int thread_count,
std::string endpoint_path,
const std::vector< Signature > & signatures,
const std::vector< Procedure * > & procedures,
int64_t max_message_size = 1 << 24 )
inline

Definition at line 203 of file Server.h.

Member Function Documentation

◆ new_session()

std::unique_ptr< joedb::asio::Server::Session > joedb::rpc::Server::new_session ( boost::asio::local::stream_protocol::socket && socket)
inlineoverrideprotectedvirtual

Implements joedb::asio::Server.

Definition at line 192 of file Server.h.


The documentation for this class was generated from the following file: