public final class TopologyUtils extends Object
| Constructor and Description |
|---|
TopologyUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Optional<GridClientNode> |
anyConnectableServerNode(GridClientCompute compute)
Obtains any connectable server node from the topology
visible through
client compute interface at the moment of method call. |
static UUID |
coordinatorId(GridClientCompute compute)
Obtains ID of coordinator node from the topology
visible through
client compute interface at the moment of method call. |
public static UUID coordinatorId(GridClientCompute compute) throws GridClientException
client compute interface at the moment of method call.
The method relies on the discovery implementation detail that coordinator role is always assigned
to the oldest server node in topology which means
the order of the node is minimal among all alive server nodes in topology.compute - GridClientCompute instance to obtain list of nodes in topology.GridClientException - If client doesn't have an actual topology version.public static Optional<GridClientNode> anyConnectableServerNode(GridClientCompute compute) throws GridClientException
client compute interface at the moment of method call.
Method returns only a node which is connectable for the local client which means a direct p2p connection can be
established from the client to the node.compute - GridClientCompute instance to obtain list of nodes in topology.Optional object containing any connectable server node.GridClientException - If client doesn't have an actual topology version.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.30 Release Date : February 17 2026