Horizon Official Technical Documentation
|
|
#include <System.hpp>
Classes | |
class | ResultContext |
class | WorkContext |
class | WorkControlAgent |
class | WorkQueueManager |
Public Member Functions | |
RuntimeContext (SystemRoutineManager &hsr_manager, runtime_synchronization_method sync_t=RUNTIME_SYNC_NONE) | |
std::shared_ptr< WorkContext > | pop () |
void | push (std::shared_ptr< WorkContext > context) |
virtual bool | run () |
WorkQueueManager & | get_queue_manager () |
WorkControlAgent & | get_control_agent () |
SystemRoutineManager & | get_routine_manager () |
std::string | get_uuid_string () |
void | set_context_result (runtime_context_result pass=RUNTIME_CONTEXT_NO_STATE) |
runtime_context_result | get_context_result () |
void | set_context_state (runtime_context_state state=RUNTIME_CONTEXT_STATE_INACTIVE) |
runtime_context_state | get_context_state () |
void | set_synchronization_method (runtime_synchronization_method sync) |
runtime_synchronization_method | get_synchronization_method () |
void | dispatch () |
Protected Attributes | |
SystemRoutineManager & | _hsr_manager |
WorkControlAgent | _control_agent |
WorkQueueManager | _queue_manager |
boost::uuids::uuid | _uuid |
std::atomic< enum runtime_context_result > | _result {RUNTIME_CONTEXT_NO_STATE} |
runtime_synchronization_method | _synchronization_t {RUNTIME_SYNC_NONE} |
std::atomic< enum runtime_context_state > | _context_state_t {RUNTIME_CONTEXT_STATE_INACTIVE} |
|
inline |
void Horizon::System::RuntimeContext::dispatch | ( | ) |
|
inline |
References _result.
|
inline |
References _context_state_t.
|
inline |
References _control_agent.
|
inline |
References _queue_manager.
|
inline |
References _hsr_manager.
|
inline |
References _synchronization_t.
|
inline |
References _uuid.
Referenced by Horizon::System::RuntimeRoutineContext::error_message(), Horizon::System::RuntimeRoutineContext::status_message(), and Horizon::System::RuntimeRoutineContext::warning_message().
|
inline |
References _queue_manager, and Horizon::System::RuntimeContext::WorkQueueManager::pop().
|
inline |
References _queue_manager, and Horizon::System::RuntimeContext::WorkQueueManager::push().
|
inlinevirtual |
References _queue_manager, Horizon::System::RuntimeContext::WorkQueueManager::process(), Horizon::System::RUNTIME_CONTEXT_FAIL, Horizon::System::RUNTIME_CONTEXT_PASS, Horizon::System::RUNTIME_CONTEXT_STATE_ACTIVE, set_context_result(), and set_context_state().
|
inline |
|
inline |
|
inline |
References _synchronization_t.
|
protected |
Referenced by get_context_state(), and set_context_state().
|
protected |
Referenced by get_control_agent().
|
protected |
Referenced by get_routine_manager().
|
protected |
Referenced by get_queue_manager(), pop(), push(), and run().
|
protected |
Referenced by get_context_result(), and set_context_result().
|
protected |
Referenced by get_synchronization_method(), and set_synchronization_method().
|
protected |
Referenced by get_uuid_string().