MySQL 9.3.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
jit_executor::ServiceHandlers Class Reference

Contains the handlers to be used to attend JavaScript processing requests for a specific service. More...

#include <jit_executor_service_handlers.h>

Inheritance diagram for jit_executor::ServiceHandlers:
[legend]

Public Member Functions

 ServiceHandlers (const ServiceHandlerConfig &config)
 
 ServiceHandlers (const ServiceHandlers &other)
 
 ~ServiceHandlers () override
 
std::shared_ptr< IContextHandleget_context (const std::string &debug_port="") override
 
void release_debug_context () override
 
bool init () override
 
void teardown () override
 
std::chrono::seconds idle_time () const override
 
uint64_t pool_size () const override
 
void set_max_heap_size (uint64_t) override
 
void set_default_pool_size (uint64_t) override
 
- Public Member Functions inherited from jit_executor::IServiceHandlers
virtual ~IServiceHandlers ()=default
 

Private Member Functions

void init_common_context ()
 
void do_tear_down ()
 

Private Attributes

ServiceHandlerConfig m_config
 
std::unique_ptr< CommonContextm_common_context
 
std::shared_ptr< IContextHandlem_debug_context
 
std::shared_ptr< ContextPoolm_context_pool
 
std::chrono::time_point< std::chrono::system_clock > m_last_used_time
 
std::unique_ptr< std::thread > m_teardown_thread
 

Detailed Description

Contains the handlers to be used to attend JavaScript processing requests for a specific service.

Constructor & Destructor Documentation

◆ ServiceHandlers() [1/2]

jit_executor::ServiceHandlers::ServiceHandlers ( const ServiceHandlerConfig config)

◆ ServiceHandlers() [2/2]

jit_executor::ServiceHandlers::ServiceHandlers ( const ServiceHandlers other)

◆ ~ServiceHandlers()

jit_executor::ServiceHandlers::~ServiceHandlers ( )
override

Member Function Documentation

◆ do_tear_down()

void jit_executor::ServiceHandlers::do_tear_down ( )
private

◆ get_context()

std::shared_ptr< IContextHandle > jit_executor::ServiceHandlers::get_context ( const std::string &  debug_port = "")
overridevirtual

◆ idle_time()

std::chrono::seconds jit_executor::ServiceHandlers::idle_time ( ) const
overridevirtual

◆ init()

bool jit_executor::ServiceHandlers::init ( )
overridevirtual

◆ init_common_context()

void jit_executor::ServiceHandlers::init_common_context ( )
private

◆ pool_size()

uint64_t jit_executor::ServiceHandlers::pool_size ( ) const
overridevirtual

◆ release_debug_context()

void jit_executor::ServiceHandlers::release_debug_context ( )
overridevirtual

◆ set_default_pool_size()

void jit_executor::ServiceHandlers::set_default_pool_size ( uint64_t  size)
overridevirtual

◆ set_max_heap_size()

void jit_executor::ServiceHandlers::set_max_heap_size ( uint64_t  size)
overridevirtual

◆ teardown()

void jit_executor::ServiceHandlers::teardown ( )
overridevirtual

Member Data Documentation

◆ m_common_context

std::unique_ptr<CommonContext> jit_executor::ServiceHandlers::m_common_context
private

◆ m_config

ServiceHandlerConfig jit_executor::ServiceHandlers::m_config
private

◆ m_context_pool

std::shared_ptr<ContextPool> jit_executor::ServiceHandlers::m_context_pool
private

◆ m_debug_context

std::shared_ptr<IContextHandle> jit_executor::ServiceHandlers::m_debug_context
private

◆ m_last_used_time

std::chrono::time_point<std::chrono::system_clock> jit_executor::ServiceHandlers::m_last_used_time
private

◆ m_teardown_thread

std::unique_ptr<std::thread> jit_executor::ServiceHandlers::m_teardown_thread
private

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