Defines a cluster group which contains all or a subset of cluster nodes.
More...
#include <cluster_group.h>
|
class | impl::cluster::ClusterGroupImpl |
|
class | impl::IgniteImpl |
|
Defines a cluster group which contains all or a subset of cluster nodes.
Cluster group allows to group cluster nodes into various subgroups to perform distributed operations on them. The IgniteCluster interface itself also contains the ClusterGroup which makes an instance of IgniteCluster into a cluster group containing all cluster nodes. Use IgniteCluster::AsClusterGroup() to get the cluster group in this case.
◆ ClusterGroup()
ignite::cluster::ClusterGroup::ClusterGroup |
( |
impl::cluster::SP_ClusterGroupImpl |
impl | ) |
|
Constructor.
- Parameters
-
pointer | to cluster group implementation. |
◆ ForAttribute()
ClusterGroup ignite::cluster::ClusterGroup::ForAttribute |
( |
std::string |
name, |
|
|
std::string |
val |
|
) |
| |
Get cluster group for nodes containing given name and value specified in user attributes.
- Parameters
-
name | Name of the attribute. |
val | Optional attribute value to match. |
- Returns
- Cluster group for nodes containing specified attribute.
◆ ForCacheNodes()
ClusterGroup ignite::cluster::ClusterGroup::ForCacheNodes |
( |
std::string |
cacheName | ) |
|
Get cluster group for all nodes that have cache with specified name, either in client or server modes.
- Parameters
-
- Returns
- Cluster group over nodes that have the cache with the specified name running.
◆ ForClientNodes()
ClusterGroup ignite::cluster::ClusterGroup::ForClientNodes |
( |
std::string |
cacheName | ) |
|
Get cluster group for all client nodes that access cache with the specified name.
- Parameters
-
- Returns
- Cluster group over nodes that have the cache with the specified name running.
◆ ForClients()
Get a cluster group of nodes started in client mode.
- Returns
- Cluster group over nodes that started in client mode.
◆ ForCpp()
Creates a cluster group of cpp nodes.
- Returns
- Cluster group of cpp nodes.
◆ ForDataNodes()
ClusterGroup ignite::cluster::ClusterGroup::ForDataNodes |
( |
std::string |
cacheName | ) |
|
Get ClusterGroup for all data nodes that have the cache with the specified name running.
- Parameters
-
- Returns
- Cluster group over nodes that have the cache with the specified name running.
◆ ForHost() [1/2]
Get cluster group consisting from the nodes in this cluster group residing on the same host as the given node.
- Parameters
-
- Returns
- Cluster group residing on the same host as the given node.
◆ ForHost() [2/2]
ClusterGroup ignite::cluster::ClusterGroup::ForHost |
( |
std::string |
hostName | ) |
|
Get cluster group consisting from the nodes running on the host specified.
- Parameters
-
- Returns
- Cluster group over nodes that have requested host name.
◆ ForHosts()
ClusterGroup ignite::cluster::ClusterGroup::ForHosts |
( |
std::vector< std::string > |
hostNames | ) |
|
Get cluster group consisting from the nodes running on the hosts specified.
- Parameters
-
hostNames | Container of host names. |
- Returns
- Cluster group over nodes that have requested host names.
◆ ForNode()
Get cluster group for the given node.
- Parameters
-
- Returns
- Cluster group for the given node.
◆ ForNodeId()
Get cluster group for a node with the specified ID.
- Parameters
-
- Returns
- Cluster group for a node with the specified ID.
◆ ForNodeIds()
ClusterGroup ignite::cluster::ClusterGroup::ForNodeIds |
( |
std::vector< Guid > |
ids | ) |
|
Get cluster group over nodes with specified node IDs.
- Parameters
-
- Returns
- Cluster group over nodes with specified node IDs.
◆ ForNodes()
Get cluster group over a given set of nodes.
- Parameters
-
- Returns
- Cluster group over a given set of nodes.
◆ ForOldest()
Get cluster group with one oldest node from the current cluster group.
- Returns
- Cluster group with one oldest node from the current cluster group.
◆ ForPredicate()
Create a new cluster group which includes all nodes that pass the given predicate filter.
- Parameters
-
pred | Pointer to predicate heap object. User should NOT free the memory used by object. |
- Returns
- Newly created cluster group.
- Exceptions
-
◆ ForRandom()
Get cluster group with one random node from the current cluster group.
- Returns
- Cluster group with one random node from the current cluster group.
◆ ForRemotes()
Get cluster group consisting from the nodes in this cluster group excluding the local node.
- Returns
- Cluster group consisting from the nodes in this cluster group excluding the local node.
◆ ForServers()
Creates a cluster group of nodes started in server mode.
- Returns
- Cluster group of nodes started in server mode.
◆ ForYoungest()
Get cluster group with one youngest node in the current cluster group.
- Returns
- Cluster group with one youngest node in the current cluster group.
◆ GetNode() [1/2]
Get first node from the list of nodes in this cluster group.
- Returns
- Cluster node in this cluster group.
- Exceptions
-
◆ GetNode() [2/2]
Get node for given ID from this cluster group.
- Parameters
-
- Returns
- Cluster node in this cluster group.
- Exceptions
-
◆ GetNodes()
std::vector< ClusterNode > ignite::cluster::ClusterGroup::GetNodes |
( |
| ) |
|
Get the vector of nodes in this cluster group.
- Returns
- All nodes in this cluster group.
◆ GetPredicate()
Get predicate that defines a subset of nodes for this cluster group.
- Returns
- Pointer to predicate.
The documentation for this class was generated from the following files: