elements in Cyber – Node, Channel, Service, Writer, Reader, Client and Server's relationship is presented by Topology. You can Imagine that a directed graph – Node is the container of Server/Client/Writer/Reader, and they are the vertice of the graph and Channel is the Edge from Writer flow to the Reader, Service is the Edge from Server to Client. Thus we call Writer and Server Upstream
, Reader and Client Downstream
To generate this graph, we use TopologyManager, it has three sub managers – NodeManager: You can find Nodes in this topology ChannelManager: You can find Channels in this topology, and their Writers and Readers ServiceManager: You can find Services in this topology, and their Servers and Clients TopologyManager use fast-rtps' Participant to communicate. It can broadcast Join or Leave messages of those elements. Also, you can register you own ChangeFunc
to monitor topology change
More...
#include <topology_manager.h>
elements in Cyber – Node, Channel, Service, Writer, Reader, Client and Server's relationship is presented by Topology. You can Imagine that a directed graph – Node is the container of Server/Client/Writer/Reader, and they are the vertice of the graph and Channel is the Edge from Writer flow to the Reader, Service is the Edge from Server to Client. Thus we call Writer and Server Upstream
, Reader and Client Downstream
To generate this graph, we use TopologyManager, it has three sub managers – NodeManager: You can find Nodes in this topology ChannelManager: You can find Channels in this topology, and their Writers and Readers ServiceManager: You can find Services in this topology, and their Servers and Clients TopologyManager use fast-rtps' Participant to communicate. It can broadcast Join or Leave messages of those elements. Also, you can register you own ChangeFunc
to monitor topology change
◆ ChangeConnection
◆ ChangeFunc
◆ ChangeSignal
◆ PartInfo
◆ PartNameContainer
◆ ~TopologyManager()
virtual apollo::cyber::service_discovery::TopologyManager::~TopologyManager |
( |
| ) |
|
|
virtual |
◆ AddChangeListener()
To observe the topology change, you can register a ChangeFunc
- Parameters
-
func | is the observe function |
- Returns
- ChangeConnection is the connection that connected to
change_signal_
. Used to Remove your observe function
◆ channel_manager()
ChannelManagerPtr& apollo::cyber::service_discovery::TopologyManager::channel_manager |
( |
| ) |
|
|
inline |
◆ node_manager()
NodeManagerPtr& apollo::cyber::service_discovery::TopologyManager::node_manager |
( |
| ) |
|
|
inline |
◆ RemoveChangeListener()
void apollo::cyber::service_discovery::TopologyManager::RemoveChangeListener |
( |
const ChangeConnection & |
conn | ) |
|
Remove the observe function connect to change_signal_
by conn
◆ service_manager()
ServiceManagerPtr& apollo::cyber::service_discovery::TopologyManager::service_manager |
( |
| ) |
|
|
inline |
◆ Shutdown()
void apollo::cyber::service_discovery::TopologyManager::Shutdown |
( |
| ) |
|
The documentation for this class was generated from the following file: