Class tracking the state of remote message bus nodes. More...
#include <eagine/message_bus/remote_node.hpp>
Public Member Functions | |
remote_node_tracker () | |
Default constructor. | |
auto | get_node (identifier_t node_id) -> remote_node_state & |
Finds and returns the state information about a remote bus node. More... | |
auto | get_host (host_id_t) -> remote_host_state & |
Finds and returns the state information about a remote host. More... | |
auto | get_host (host_id_t) const -> remote_host_state |
Finds and returns the state information about a remote host. More... | |
auto | get_instance (host_id_t) -> remote_instance_state & |
Finds and returns the information about a remote instance (process). More... | |
auto | get_instance (host_id_t) const -> remote_instance_state |
Finds and returns the information about a remote instance (process). More... | |
auto | get_connection (identifier_t node_id1, identifier_t node_id2) -> node_connection_state & |
Finds and returns the information about remote node connections. More... | |
auto | get_connection (identifier_t node_id1, identifier_t node_id2) const -> node_connection_state |
Finds and returns the information about remote node connections. More... | |
template<typename Function > | |
void | for_each_host (Function func) |
Calls a function on each tracked remote host. More... | |
template<typename Function > | |
void | for_each_host_state (Function func) |
Calls a function on each tracked remote host. More... | |
template<typename Function > | |
void | for_each_node (Function func) |
Calls a function on each tracked remote bus node. More... | |
template<typename Function > | |
void | for_each_node_state (Function func) |
Calls a function on each tracked remote bus node. More... | |
template<typename Function > | |
void | for_each_instance_node_state (process_instance_id_t inst_id, Function func) |
Calls a function on tracked remote bus nodes of an instance (process). More... | |
template<typename Function > | |
void | for_each_host_node_state (host_id_t host_id, Function func) |
Calls a function on tracked remote bus nodes of a remote host. More... | |
template<typename Function > | |
void | for_each_connection (Function func) const |
Calls a function on tracked connections between bus nodes. More... | |
Class tracking the state of remote message bus nodes.
void eagine::msgbus::remote_node_tracker::for_each_connection | ( | Function | func | ) | const |
Calls a function on tracked connections between bus nodes.
The function is called with (const node_connection&) as argument.
void eagine::msgbus::remote_node_tracker::for_each_host | ( | Function | func | ) |
Calls a function on each tracked remote host.
The function is called with (host_id_t, const remote_host&) as arguments.
void eagine::msgbus::remote_node_tracker::for_each_host_node_state | ( | host_id_t | host_id, |
Function | func | ||
) |
Calls a function on tracked remote bus nodes of a remote host.
The function is called with (host_id_t, const remote_node_state&) as arguments. This function is subject to change without notice. Prefer using for_each_node.
void eagine::msgbus::remote_node_tracker::for_each_host_state | ( | Function | func | ) |
Calls a function on each tracked remote host.
The function is called with (host_id_t, const remote_host_state&) as arguments. This function is subject to change without notice. Prefer using for_each_host.
void eagine::msgbus::remote_node_tracker::for_each_instance_node_state | ( | process_instance_id_t | inst_id, |
Function | func | ||
) |
Calls a function on tracked remote bus nodes of an instance (process).
The function is called with (host_id_t, const remote_node_state&) as arguments. This function is subject to change without notice. Prefer using for_each_node.
void eagine::msgbus::remote_node_tracker::for_each_node | ( | Function | func | ) |
Calls a function on each tracked remote bus node.
The function is called with (host_id_t, const remote_node&) as arguments.
void eagine::msgbus::remote_node_tracker::for_each_node_state | ( | Function | func | ) |
Calls a function on each tracked remote bus node.
The function is called with (host_id_t, const remote_node_state&) as arguments. This function is subject to change without notice. Prefer using for_each_node.
auto eagine::msgbus::remote_node_tracker::get_connection | ( | identifier_t | node_id1, |
identifier_t | node_id2 | ||
) | -> node_connection_state & |
Finds and returns the information about remote node connections.
auto eagine::msgbus::remote_node_tracker::get_connection | ( | identifier_t | node_id1, |
identifier_t | node_id2 | ||
) | const -> node_connection_state |
Finds and returns the information about remote node connections.
auto eagine::msgbus::remote_node_tracker::get_host | ( | host_id_t | ) | -> remote_host_state & |
Finds and returns the state information about a remote host.
auto eagine::msgbus::remote_node_tracker::get_host | ( | host_id_t | ) | const -> remote_host_state |
Finds and returns the state information about a remote host.
auto eagine::msgbus::remote_node_tracker::get_instance | ( | host_id_t | ) | -> remote_instance_state & |
Finds and returns the information about a remote instance (process).
auto eagine::msgbus::remote_node_tracker::get_instance | ( | host_id_t | ) | const -> remote_instance_state |
Finds and returns the information about a remote instance (process).
auto eagine::msgbus::remote_node_tracker::get_node | ( | identifier_t | node_id | ) | -> remote_node_state & |
Finds and returns the state information about a remote bus node.