Unify Framework Lib 1.6.0
unify::node_state_monitor::endpoint Class Reference

Unify Endpoint. More...

#include <unify_node_state_monitor.hpp>

Public Member Functions

 endpoint (endpoint_id_t id)
 Construct a new endpoint object. More...
 
clusteremplace_cluster (const std::string &cluster_name)
 Create a new cluster in the cluster map and return a reference to it. If the cluster_name already exist in the map, then return a reference to that instead. More...
 
std::string to_string () const
 Get a string representation of the endpoint. More...
 

Public Attributes

endpoint_id_t endpoint_id
 
std::unordered_map< std::string, clusterclusters
 

Detailed Description

Unify Endpoint.

Constructor & Destructor Documentation

◆ endpoint()

unify::node_state_monitor::endpoint::endpoint ( endpoint_id_t  id)
inlineexplicit

Construct a new endpoint object.

Parameters
idEndpoint identifier.

Member Function Documentation

◆ emplace_cluster()

cluster & unify::node_state_monitor::endpoint::emplace_cluster ( const std::string &  cluster_name)

Create a new cluster in the cluster map and return a reference to it. If the cluster_name already exist in the map, then return a reference to that instead.

Parameters
cluster_nameZCL Cluster ID.
Returns
cluster& Reference to the Cluster.

◆ to_string()

std::string unify::node_state_monitor::endpoint::to_string ( ) const

Get a string representation of the endpoint.

Returns
std::string

Member Data Documentation

◆ clusters

std::unordered_map<std::string, cluster> unify::node_state_monitor::endpoint::clusters

Map of all clusters under the endpoint. The key to the map is the Cluster ID.

◆ endpoint_id

endpoint_id_t unify::node_state_monitor::endpoint::endpoint_id

Endpoint identifier.


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