#include <Server.hpp>
◆ KernelComponent()
196 { }
Horizon::System::runtime_module_type _module_type
Definition: Server.hpp:274
boost::uuids::uuid _uuid
Definition: Server.hpp:276
Horizon::System::SystemRoutineManager _hsr_manager
Definition: Server.hpp:275
Kernel * _kernel
Definition: Server.hpp:279
◆ calculate_and_set_cpu_load()
void KernelComponent::calculate_and_set_cpu_load |
( |
| ) |
|
|
inline |
258 {
260
261
262 auto current_time = std::chrono::steady_clock::now();
264 if (diff_time >= 1e9) {
269 }
270 }
int _update_count
Definition: Server.hpp:280
std::chrono::steady_clock::time_point _last_thread_update_rate_time
Definition: Server.hpp:281
void set_thread_update_rate(double rate)
Definition: Server.hpp:242
References _last_thread_update_rate_time, _update_count, and set_thread_update_rate().
Referenced by CommandLineProcess::cli_thread_start(), DatabaseProcess::initialize(), Horizon::Auth::AuthNetworkThread::update(), Horizon::Char::CharNetworkThread::update(), Horizon::Zone::ZoneNetworkThread::update(), Horizon::Zone::ZoneRuntime::update(), Horizon::Zone::GameLogicProcess::update(), Horizon::Zone::PersistenceManager::update(), and Horizon::Zone::ScriptManager::update().
◆ finalize()
virtual void KernelComponent::finalize |
( |
| ) |
|
|
inlinevirtual |
◆ get_kernel()
Kernel * KernelComponent::get_kernel |
( |
| ) |
|
|
inline |
◆ get_segment_number()
int64_t KernelComponent::get_segment_number |
( |
| ) |
|
|
inline |
◆ get_system_routine_manager()
References _hsr_manager.
Referenced by Horizon::Zone::ZoneClientInterface::disconnect(), Horizon::Zone::ZoneClientInterface::login(), Horizon::Zone::ZoneClientInterface::restart(), Horizon::Auth::AuthNetworkThread::update(), Horizon::Char::CharNetworkThread::update(), Horizon::Zone::ZoneNetworkThread::update(), Horizon::Zone::ZoneRuntime::update(), Horizon::Zone::GameLogicProcess::update(), Horizon::Zone::PersistenceManager::update(), Horizon::Zone::ScriptManager::update(), and Horizon::Zone::ZoneClientInterface::walk_to_coordinates().
◆ get_thread_cpu_id()
int KernelComponent::get_thread_cpu_id |
( |
| ) |
|
|
inline |
◆ get_thread_update_rate()
double KernelComponent::get_thread_update_rate |
( |
| ) |
|
|
inline |
◆ get_total_execution_time()
int KernelComponent::get_total_execution_time |
( |
| ) |
|
|
inline |
◆ get_type_string()
const std::string KernelComponent::get_type_string |
( |
| ) |
|
|
inline |
217 {
219 {
231 default: return "Unknown";
232 }
233 }
@ RUNTIME_CLIENT_NETWORKING
Definition: System.hpp:89
@ RUNTIME_DATABASE
Definition: System.hpp:88
@ RUNTIME_NETWORKING
Definition: System.hpp:84
@ RUNTIME_WEB_SOCKET
Definition: System.hpp:91
@ RUNTIME_HTTP_SERVICE
Definition: System.hpp:90
@ RUNTIME_MAIN
Definition: System.hpp:82
@ RUNTIME_SCRIPTVM
Definition: System.hpp:87
@ RUNTIME_GAMELOGIC
Definition: System.hpp:86
@ RUNTIME_COMMANDLINE
Definition: System.hpp:83
@ RUNTIME_PERSISTENCE
Definition: System.hpp:85
@ RUNTIME_RUNTIME
Definition: System.hpp:92
References _module_type, Horizon::System::RUNTIME_CLIENT_NETWORKING, Horizon::System::RUNTIME_COMMANDLINE, Horizon::System::RUNTIME_DATABASE, Horizon::System::RUNTIME_GAMELOGIC, Horizon::System::RUNTIME_HTTP_SERVICE, Horizon::System::RUNTIME_MAIN, Horizon::System::RUNTIME_NETWORKING, Horizon::System::RUNTIME_PERSISTENCE, Horizon::System::RUNTIME_RUNTIME, Horizon::System::RUNTIME_SCRIPTVM, and Horizon::System::RUNTIME_WEB_SOCKET.
◆ get_uuid_string()
const std::string KernelComponent::get_uuid_string |
( |
| ) |
|
|
inline |
214{
return boost::uuids::to_string(
_uuid); }
References _uuid.
◆ initialize()
virtual void KernelComponent::initialize |
( |
int |
segment_number = 1 | ) |
|
|
inlinevirtual |
◆ is_finalized()
virtual bool KernelComponent::is_finalized |
( |
| ) |
|
|
inlinevirtual |
◆ is_initialized()
virtual bool KernelComponent::is_initialized |
( |
| ) |
|
|
inlinevirtual |
◆ set_segment_number()
void KernelComponent::set_segment_number |
( |
int64_t |
segment_number | ) |
|
|
inline |
◆ set_thread_cpu_id()
void KernelComponent::set_thread_cpu_id |
( |
int |
cpu_id | ) |
|
|
inline |
◆ set_thread_update_rate()
void KernelComponent::set_thread_update_rate |
( |
double |
rate | ) |
|
|
inline |
◆ set_total_execution_time()
void KernelComponent::set_total_execution_time |
( |
int |
time | ) |
|
|
inline |
246 {
248
253 }
254 }
std::chrono::steady_clock::time_point _last_total_execution_time_update
Definition: Server.hpp:282
int _total_execution_time_aggregate
Definition: Server.hpp:284
double get_thread_update_rate()
Definition: Server.hpp:243
size_t count(GridTypeListContainer< SPECIFIC_TYPE > const &elements, SPECIFIC_TYPE *)
Definition: GridReferenceContainer.hpp:100
References _last_total_execution_time_update, _total_execution_time_aggregate, _total_execution_time_average, GridTypeListIterator::count(), and get_thread_update_rate().
Referenced by Horizon::Auth::AuthNetworkThread::update(), Horizon::Char::CharNetworkThread::update(), Horizon::Zone::ZoneNetworkThread::update(), Horizon::Zone::ZoneRuntime::update(), Horizon::Zone::GameLogicProcess::update(), Horizon::Zone::PersistenceManager::update(), and Horizon::Zone::ScriptManager::update().
◆ system_routine_process_queue()
void KernelComponent::system_routine_process_queue |
( |
| ) |
|
◆ system_routine_queue_push() [1/2]
◆ system_routine_queue_push() [2/2]
◆ system_routine_register()
◆ _hsr_manager
◆ _kernel
Kernel* KernelComponent::_kernel {nullptr} |
|
private |
◆ _last_thread_update_rate_time
std::chrono::steady_clock::time_point KernelComponent::_last_thread_update_rate_time |
|
private |
◆ _last_total_execution_time_update
std::chrono::steady_clock::time_point KernelComponent::_last_total_execution_time_update |
|
private |
◆ _module_type
◆ _segment_number
std::atomic<int64_t> KernelComponent::_segment_number {0} |
|
private |
◆ _thread_cpu_id
std::atomic<int> KernelComponent::_thread_cpu_id {0} |
|
private |
◆ _thread_update_rate
std::atomic<double> KernelComponent::_thread_update_rate {0.0} |
|
private |
◆ _total_execution_time_aggregate
int KernelComponent::_total_execution_time_aggregate {0} |
|
private |
◆ _total_execution_time_average
std::atomic<int> KernelComponent::_total_execution_time_average {0} |
|
private |
◆ _update_count
int KernelComponent::_update_count {0} |
|
private |
◆ _uuid
boost::uuids::uuid KernelComponent::_uuid |
|
private |
The documentation for this class was generated from the following files: