Package org.apache.ignite.network
Interface IgniteCluster
public interface IgniteCluster
Represents an Ignite cluster, providing access to the cluster nodes and the local node.
-
Method Summary
Modifier and TypeMethodDescriptionid()
Returns the current cluster ID.@Nullable ClusterNode
Returns the local cluster node if available.nodes()
Returns all cluster nodes that are part of the logical topology, including the local node if applicable.Asynchronously retrieves all cluster nodes that are part of the logical topology, including the local node if applicable.
-
Method Details
-
id
UUID id()Returns the current cluster ID.- Returns:
- Cluster's current ID.
-
nodes
Collection<ClusterNode> nodes()Returns all cluster nodes that are part of the logical topology, including the local node if applicable.- Returns:
- A collection of all cluster nodes.
-
nodesAsync
CompletableFuture<Collection<ClusterNode>> nodesAsync()Asynchronously retrieves all cluster nodes that are part of the logical topology, including the local node if applicable.- Returns:
- A future that will complete with a collection of all cluster nodes.
-
localNode
Returns the local cluster node if available.- Returns:
- The local cluster node (in embedded mode), or
null
if not applicable (e.g., on the client side).
-