23 #ifndef _IGNITE_CLUSTER_CLUSTER_NODE 24 #define _IGNITE_CLUSTER_CLUSTER_NODE 26 #include <ignite/impl/cluster/cluster_node_impl.h> 44 ClusterNode(common::concurrent::SharedPointer<ignite::impl::cluster::ClusterNodeImpl> impl);
51 const std::vector<std::string>& GetAddresses()
const;
59 bool IsAttributeSet(std::string name)
const;
73 return impl.Get()->GetAttribute<T>(name);
81 std::vector<std::string> GetAttributes()
const;
88 std::string GetConsistentId()
const;
95 const std::vector<std::string>& GetHostNames()
const;
109 bool IsClient()
const;
116 bool IsDaemon()
const;
123 bool IsLocal()
const;
130 int64_t GetOrder()
const;
152 common::concurrent::SharedPointer<ignite::impl::cluster::ClusterNodeImpl> impl;
157 #endif //_IGNITE_CLUSTER_CLUSTER_NODE friend IGNITE_IMPORT_EXPORT bool operator<(const ClusterNode &lnode, const ClusterNode &rnode)
Define "less" operator to allow Cluster Node usage as STL container key.
Definition: cluster_node.h:146
T GetAttribute(std::string name) const
Get a node attribute.
Definition: cluster_node.h:71
Guid GetId() const
Get globally unique node ID.
Definition: cluster_node.cpp:58
Ignite product version.
Definition: ignite_product_version.h:36
Interface representing a single cluster node.
Definition: cluster_node.h:36
Global universally unique identifier (GUID).
Definition: guid.h:36
Apache Ignite API.
Definition: cache.h:48