public interface ClientClusterGroup
Modifier and Type | Method and Description |
---|---|
ClientClusterGroup |
forAttribute(String name,
@Nullable Object val)
Creates a new cluster group for nodes containing given name and value
specified in user attributes.
|
ClientClusterGroup |
forClients()
Creates a cluster group of nodes started in client mode.
|
ClientClusterGroup |
forHost(ClusterNode node)
Gets cluster group consisting from the nodes in this cluster group residing on the
same host (with the same MAC address) as the given node.
|
ClientClusterGroup |
forHost(String host,
String... hosts)
Gets cluster group consisting from the nodes running on the hosts specified.
|
ClientClusterGroup |
forNode(ClusterNode node,
ClusterNode... nodes)
Creates a cluster group for the given node.
|
ClientClusterGroup |
forNodeId(UUID id,
UUID... ids)
Creates a cluster group for a node with the specified ID.
|
ClientClusterGroup |
forNodeIds(Collection<UUID> ids)
Creates a cluster group over nodes with specified node IDs.
|
ClientClusterGroup |
forNodes(Collection<? extends ClusterNode> nodes)
Creates a cluster group over a given set of nodes.
|
ClientClusterGroup |
forOldest()
Creates a cluster group with one oldest node from the current cluster group.
|
ClientClusterGroup |
forOthers(ClientClusterGroup prj)
Creates a cluster group for nodes not included into the given cluster group.
|
ClientClusterGroup |
forOthers(ClusterNode node,
ClusterNode... nodes)
Creates a cluster group for nodes other than the given nodes.
|
ClientClusterGroup |
forPredicate(Predicate<ClusterNode> p)
Creates a new cluster group which includes all nodes that pass the given predicate filter.
|
ClientClusterGroup |
forRandom()
Creates a cluster group with one random node from the current cluster group.
|
ClientClusterGroup |
forServers()
Creates a cluster group of nodes started in server mode.
|
ClientClusterGroup |
forYoungest()
Creates a cluster group with one youngest node in the current cluster group.
|
ClusterNode |
node()
Gets first node from the list of nodes in this cluster group.
|
ClusterNode |
node(UUID nid)
Gets a node for given ID from this cluster group.
|
Collection<ClusterNode> |
nodes()
Gets the read-only collection of nodes in this cluster group.
|
ClientClusterGroup forNodes(Collection<? extends ClusterNode> nodes)
nodes
- Collection of nodes to create the cluster group from.ClientClusterGroup forNode(ClusterNode node, ClusterNode... nodes)
node
- Node to create cluster group for.nodes
- Optional additional nodes to include into the cluster group.ClientClusterGroup forOthers(ClusterNode node, ClusterNode... nodes)
node
- Node to exclude from the new cluster group.nodes
- Optional additional nodes to exclude from the cluster group.ClientClusterGroup forOthers(ClientClusterGroup prj)
prj
- Cluster group to exclude from the new cluster group.ClientClusterGroup forNodeIds(Collection<UUID> ids)
ids
- Collection of node IDs.ClientClusterGroup forNodeId(UUID id, UUID... ids)
id
- Node ID to get the cluster group for.ids
- Optional additional node IDs to include into the cluster group.ClientClusterGroup forPredicate(Predicate<ClusterNode> p)
p
- Predicate filter for nodes to include into the cluster group.ClientClusterGroup forAttribute(String name, @Nullable @Nullable Object val)
User attributes for every node are optional and can be specified in
grid node configuration. See IgniteConfiguration.getUserAttributes()
for more information.
name
- Name of the attribute.val
- Optional attribute value to match (if null, just check if attribute exists).ClientClusterGroup forServers()
Ignition.setClientMode(boolean)
,
IgniteConfiguration.setClientMode(boolean)
ClientClusterGroup forClients()
Ignition.setClientMode(boolean)
,
IgniteConfiguration.setClientMode(boolean)
ClientClusterGroup forRandom()
ClientClusterGroup forOldest()
Use node()
method to get the oldest node.
ClientClusterGroup forYoungest()
ClientClusterGroup forHost(ClusterNode node)
node
- Node to select the host for.ClientClusterGroup forHost(String host, String... hosts)
host
- Host name to get nodes to put in clusterhosts
- Host names to get nodes to put in cluster.Collection<ClusterNode> nodes()
ClusterNode node(UUID nid)
nid
- Node ID.null
, if such node does not exist.ClusterNode node()
null
if the cluster group is empty.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023