Apache Ignite C++ Client
Loading...
Searching...
No Matches
ignite::cluster_node Class Reference

#include <cluster_node.h>

Public Member Functions

 cluster_node (uuid id, std::string name, end_point address)
const uuidget_id () const
const std::string & get_name () const
const end_pointget_address () const
int compare (const cluster_node &other) const

Detailed Description

Ignite cluster node.

Constructor & Destructor Documentation

◆ cluster_node()

ignite::cluster_node::cluster_node ( uuid id,
std::string name,
end_point address )
inline

Constructor.

Parameters
idLocal ID.
nameName.
addressAddress.

Member Function Documentation

◆ compare()

int ignite::cluster_node::compare ( const cluster_node & other) const
inlinenodiscard

compare to another instance.

Parameters
otherAnother instance.
Returns
Negative value if less, positive if larger and zero, if equals another instance.

◆ get_address()

const end_point & ignite::cluster_node::get_address ( ) const
inlinenodiscard

Gets the node address.

Returns
Node address.

◆ get_id()

const uuid & ignite::cluster_node::get_id ( ) const
inlinenodiscard

Gets the local node id. Changes after node restart.

Returns
Local node id.

◆ get_name()

const std::string & ignite::cluster_node::get_name ( ) const
inlinenodiscard

Gets the unique name of the cluster member. Does not change after node restart.

Returns
Unique name of the cluster member.

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