17 #ifndef CYBER_SERVICE_DISCOVERY_SPECIFIC_MANAGER_SERVICE_MANAGER_H_ 18 #define CYBER_SERVICE_DISCOVERY_SPECIFIC_MANAGER_SERVICE_MANAGER_H_ 31 namespace service_discovery {
33 class TopologyManager;
64 bool HasService(
const std::string& service_name);
82 bool Check(
const RoleAttributes& attr)
override;
83 void Dispose(
const ChangeMsg& msg)
override;
84 void OnTopoModuleLeave(
const std::string& host_name,
int process_id)
override;
86 void DisposeJoin(
const ChangeMsg& msg);
87 void DisposeLeave(
const ChangeMsg& msg);
97 #endif // CYBER_SERVICE_DISCOVERY_SPECIFIC_MANAGER_SERVICE_MANAGER_H_ virtual ~ServiceManager()
Destroy the Service Manager object.
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
ServiceManager()
Construct a new Service Manager object.
elements in Cyber – Node, Channel, Service, Writer, Reader, Client and Server's relationship is pres...
Definition: topology_manager.h:64
bool HasService(const std::string &service_name)
Inquire whether service_name exists in topology.
void GetServers(RoleAttrVec *servers)
Get the All Server in the topology.
Base class for management of Topology elements. Manager can Join/Leave the Topology, and Listen the topology change.
Definition: manager.h:51
std::vector< RoleAttributes > RoleAttrVec
Definition: service_manager.h:43
Topology Manager of Service related.
Definition: service_manager.h:39
void GetClients(const std::string &service_name, RoleAttrVec *clients)
Get the Clients object that subscribes service_name
Definition: multi_value_warehouse.h:31
Definition: single_value_warehouse.h:31