#include <Server.hpp>
|
| Kernel (general_server_configuration &config) |
|
| ~Kernel () |
|
virtual void | initialize ()=0 |
|
virtual void | finalize ()=0 |
|
virtual void | post_initialize ()=0 |
|
virtual void | post_finalize ()=0 |
|
struct general_server_configuration & | general_conf () |
|
template<typename T > |
std::shared_ptr< T > | get_component (std::string uuid) |
|
template<typename T > |
std::shared_ptr< T > | get_component_of_type (Horizon::System::runtime_module_type type, int segment_number=1) |
|
template<typename T > |
void | register_component (Horizon::System::runtime_module_type type, T &&component) |
|
template<typename T > |
void | register_component (Horizon::System::runtime_module_type type, std::shared_ptr< T > component) |
|
void | deregister_component (Horizon::System::runtime_module_type type, int segment_number=1) |
|
int | get_registered_component_count_of_type (Horizon::System::runtime_module_type type) |
|
template<typename ComponentType , std::size_t Priority, typename Key , typename Value > |
int | get_segment_number_for_resource (Horizon::System::runtime_module_type module_t, Key resource_key, Value resource_not_found_value) |
|
int | get_component_count () |
|
KernelComponents & | get_components () |
|
void | system_routine_queue_push (std::shared_ptr< Horizon::System::RuntimeContext > context) |
|
void | system_routine_queue_push (std::shared_ptr< Horizon::System::RuntimeContextChain > context) |
|
void | system_routine_process_queue () |
|
void | system_routine_register (Horizon::System::runtime_module_type module_t, Horizon::System::runtime_synchronization_method sync_t, std::shared_ptr< Horizon::System::RuntimeContext > context) |
|
Horizon::System::SystemRoutineManager & | get_system_routine_manager () |
|
boost::asio::io_context & | get_io_context () |
|
void | set_signal_interrupt_command_line_loop (bool signal) |
|
bool | get_signal_interrupt_command_line_loop () |
|
◆ Kernel()
Horizon::System::SystemRoutineManager _hsr_manager
Definition: Server.hpp:548
general_server_configuration _config
Definition: Server.hpp:546
@ RUNTIME_MAIN
Definition: System.hpp:82
◆ ~Kernel()
55{
57 it->second.ptr.reset();
59 }
60}
KernelComponents _components
Definition: Server.hpp:545
References _components.
◆ deregister_component()
◆ finalize()
virtual void Kernel::finalize |
( |
| ) |
|
|
pure virtual |
◆ general_conf()
◆ get_component()
template<typename T >
std::shared_ptr< T > Kernel::get_component |
( |
std::string |
uuid | ) |
|
|
inline |
454 {
457 return nullptr;
458
459 return std::static_pointer_cast<T>(it->second.ptr);
460 }
References _components.
◆ get_component_count()
int Kernel::get_component_count |
( |
| ) |
|
|
inline |
◆ get_component_of_type()
464 {
466 if (c.second.type == type && c.second.segment_number == segment_number) {
467 return std::static_pointer_cast<T>(c.second.ptr);
468 }
469 }
470
471 return nullptr;
472 }
References _components.
◆ get_components()
◆ get_io_context()
boost::asio::io_context & Kernel::get_io_context |
( |
| ) |
|
◆ get_registered_component_count_of_type()
◆ get_segment_number_for_resource()
template<typename ComponentType , std::size_t Priority, typename Key , typename Value >
515 {
516
518 auto component = get_component_of_type<ComponentType>(module_t, i + 1);
519 if (component->get_resource_manager().template get_resource<Priority, Key, Value>(resource_key, resource_not_found_value) != resource_not_found_value)
520 return i + 1;
521 }
522
523 return 0;
524 }
int get_registered_component_count_of_type(Horizon::System::runtime_module_type type)
Definition: Server.hpp:503
References get_registered_component_count_of_type().
◆ get_signal_interrupt_command_line_loop()
bool Kernel::get_signal_interrupt_command_line_loop |
( |
| ) |
|
|
inline |
◆ get_system_routine_manager()
◆ initialize()
virtual void Kernel::initialize |
( |
| ) |
|
|
pure virtual |
◆ post_finalize()
void Kernel::post_finalize |
( |
| ) |
|
|
pure virtual |
◆ post_initialize()
void Kernel::post_initialize |
( |
| ) |
|
|
pure virtual |
◆ register_component() [1/2]
◆ register_component() [2/2]
◆ set_signal_interrupt_command_line_loop()
void Kernel::set_signal_interrupt_command_line_loop |
( |
bool |
signal | ) |
|
|
inline |
◆ system_routine_process_queue()
void Kernel::system_routine_process_queue |
( |
| ) |
|
◆ system_routine_queue_push() [1/2]
◆ system_routine_queue_push() [2/2]
◆ system_routine_register()
◆ _components
Referenced by deregister_component(), get_component(), get_component_count(), get_component_of_type(), get_components(), get_registered_component_count_of_type(), Server::post_initialize(), register_component(), Horizon::Zone::ZoneServer::update(), Horizon::Auth::AuthServer::update(), Horizon::Char::CharServer::update(), and ~Kernel().
◆ _config
◆ _hsr_manager
◆ _io_context_global
boost::asio::io_context Kernel::_io_context_global |
|
protected |
◆ _signal_interrupt_command_line_loop
std::atomic<bool> Kernel::_signal_interrupt_command_line_loop {false} |
|
private |
The documentation for this class was generated from the following files: