Interface representing a single cluster node.
More...
#include <cluster_node.h>
Interface representing a single cluster node.
Use GetAttribute(String) or GetMetrics() to get static and dynamic information about cluster nodes.
◆ ClusterNode()
ignite::cluster::ClusterNode::ClusterNode |
( |
common::concurrent::SharedPointer< ignite::impl::cluster::ClusterNodeImpl > |
impl | ) |
|
Constructor.
- Parameters
-
impl | Pointer to cluster node implementation. |
◆ GetAddresses()
const std::vector< std::string > & ignite::cluster::ClusterNode::GetAddresses |
( |
| ) |
const |
Get collection of addresses this node is known by.
- Returns
- Collection of addresses this node is known by.
◆ GetAttribute()
template<typename T >
T ignite::cluster::ClusterNode::GetAttribute |
( |
std::string |
name | ) |
const |
|
inline |
Get a node attribute.
- Parameters
-
- Returns
- Node attribute.
- Exceptions
-
IgniteError | in case of attribute name does not exist or if template type is not compatible with attribute. |
◆ GetAttributes()
std::vector< std::string > ignite::cluster::ClusterNode::GetAttributes |
( |
| ) |
const |
Get collection of all Cluster Node attributes names.
- Returns
- Node attributes names collection.
◆ GetConsistentId()
std::string ignite::cluster::ClusterNode::GetConsistentId |
( |
| ) |
const |
Get Cluster Node consistent ID.
- Returns
- Cluster Node consistent ID.
◆ GetHostNames()
const std::vector< std::string > & ignite::cluster::ClusterNode::GetHostNames |
( |
| ) |
const |
Get collection of host names this node is known by.
- Returns
- Collection of host names this node is known by.
◆ GetId()
Guid ignite::cluster::ClusterNode::GetId |
( |
| ) |
const |
Get globally unique node ID.
A new ID is generated every time a node restarts
- Returns
- Node Guid.
◆ GetOrder()
int64_t ignite::cluster::ClusterNode::GetOrder |
( |
| ) |
const |
Node order within grid topology.
- Returns
- Node order.
◆ GetVersion()
Get node version.
- Returns
- Prodcut version.
◆ IsAttributeSet()
bool ignite::cluster::ClusterNode::IsAttributeSet |
( |
std::string |
name | ) |
const |
Check if node attribute is set.
- Parameters
-
- Returns
- True if set.
◆ IsClient()
bool ignite::cluster::ClusterNode::IsClient |
( |
| ) |
const |
Check if cluster node started in client mode.
- Returns
- True if in client mode and false otherwise.
◆ IsDaemon()
bool ignite::cluster::ClusterNode::IsDaemon |
( |
| ) |
const |
Check whether or not this node is a daemon.
- Returns
- True if is daemon and false otherwise.
◆ IsLocal()
bool ignite::cluster::ClusterNode::IsLocal |
( |
| ) |
const |
Check whether or not this node is a local node.
- Returns
- True if is local and false otherwise.
◆ operator<
Define "less" operator to allow Cluster Node usage as STL container key.
- Parameters
-
lnode | Left cluster node. |
rnode | Right cluster node. |
- Returns
- True if less.
The documentation for this class was generated from the following files: