Horizon Official Technical Documentation
Horizon::System::RuntimeRoutineContext Class Reference

#include <System.hpp>

+ Inheritance diagram for Horizon::System::RuntimeRoutineContext:
+ Collaboration diagram for Horizon::System::RuntimeRoutineContext:

Classes

class  Work
 

Public Member Functions

 RuntimeRoutineContext (Server *s, runtime_synchronization_method sync_t=RUNTIME_SYNC_NONE)
 
 RuntimeRoutineContext (std::shared_ptr< KernelComponent > component, runtime_synchronization_method sync_t=RUNTIME_SYNC_NONE)
 
 RuntimeRoutineContext (SystemRoutineManager &hsr_manager, runtime_synchronization_method sync_t=RUNTIME_SYNC_NONE)
 
void status_message (std::string message)
 
void warning_message (std::string message)
 
void error_message (std::string message)
 
std::mutex & get_runtime_synchronization_mutex ()
 
- Public Member Functions inherited from Horizon::System::RuntimeContext
 RuntimeContext (SystemRoutineManager &hsr_manager, runtime_synchronization_method sync_t=RUNTIME_SYNC_NONE)
 
std::shared_ptr< WorkContextpop ()
 
void push (std::shared_ptr< WorkContext > context)
 
virtual bool run ()
 
WorkQueueManagerget_queue_manager ()
 
WorkControlAgentget_control_agent ()
 
SystemRoutineManagerget_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 ()
 

Public Attributes

std::vector< std::string > _status_messages
 
std::vector< std::string > _warning_messages
 
std::vector< std::string > _error_messages
 
std::mutex _runtime_synchronization_mutex
 

Additional Inherited Members

- Protected Attributes inherited from Horizon::System::RuntimeContext
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}
 

Constructor & Destructor Documentation

◆ RuntimeRoutineContext() [1/3]

Horizon::System::RuntimeRoutineContext::RuntimeRoutineContext ( Server s,
runtime_synchronization_method  sync_t = RUNTIME_SYNC_NONE 
)
35{
36}
Definition: System.hpp:121
Horizon::System::SystemRoutineManager & get_system_routine_manager()
Definition: Server.hpp:535

◆ RuntimeRoutineContext() [2/3]

Horizon::System::RuntimeRoutineContext::RuntimeRoutineContext ( std::shared_ptr< KernelComponent component,
runtime_synchronization_method  sync_t = RUNTIME_SYNC_NONE 
)
39: Horizon::System::RuntimeContext(component->get_system_routine_manager(), sync_t)
40{
41}

◆ RuntimeRoutineContext() [3/3]

Horizon::System::RuntimeRoutineContext::RuntimeRoutineContext ( SystemRoutineManager hsr_manager,
runtime_synchronization_method  sync_t = RUNTIME_SYNC_NONE 
)
44: Horizon::System::RuntimeContext(hsr_manager, sync_t)
45{
46}

Member Function Documentation

◆ error_message()

void Horizon::System::RuntimeRoutineContext::error_message ( std::string  message)
inline
397{ HLog(error) << "{s:" << get_uuid_string() << "}" << message; }
#define HLog(type)
Definition: Logger.hpp:122
std::string get_uuid_string()
Definition: System.hpp:311

References Horizon::System::RuntimeContext::get_uuid_string(), and HLog.

+ Here is the call graph for this function:

◆ get_runtime_synchronization_mutex()

std::mutex & Horizon::System::RuntimeRoutineContext::get_runtime_synchronization_mutex ( )
inline
std::mutex _runtime_synchronization_mutex
Definition: System.hpp:467

References _runtime_synchronization_mutex.

◆ status_message()

void Horizon::System::RuntimeRoutineContext::status_message ( std::string  message)
inline
395{ HLog(info) << "{s:" << get_uuid_string() << "}" << message; }

References Horizon::System::RuntimeContext::get_uuid_string(), and HLog.

+ Here is the call graph for this function:

◆ warning_message()

void Horizon::System::RuntimeRoutineContext::warning_message ( std::string  message)
inline
396{ HLog(warning) << "{s:" << get_uuid_string() << "}" << message; }

References Horizon::System::RuntimeContext::get_uuid_string(), and HLog.

+ Here is the call graph for this function:

Member Data Documentation

◆ _error_messages

std::vector<std::string> Horizon::System::RuntimeRoutineContext::_error_messages

◆ _runtime_synchronization_mutex

std::mutex Horizon::System::RuntimeRoutineContext::_runtime_synchronization_mutex

◆ _status_messages

std::vector<std::string> Horizon::System::RuntimeRoutineContext::_status_messages

◆ _warning_messages

std::vector<std::string> Horizon::System::RuntimeRoutineContext::_warning_messages

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