Interface RackAwarePlacement.ClusterTopology
- All Known Implementing Classes:
RackAwarePlacement.SimpleClusterTopology
- Enclosing class:
RackAwarePlacement
public static interface RackAwarePlacement.ClusterTopology
Represents the cluster topology for placement calculations.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionGet all node topologies in the cluster.@Nullable TopologyInfogetNodeTopology(String nodeId) Get topology info for a specific node.
-
Method Details
-
getNodeTopology
Get topology info for a specific node.- Parameters:
nodeId- the node identifier- Returns:
- TopologyInfo or null if node not found
-
getAllNodeTopologies
Map<String, TopologyInfo> getAllNodeTopologies()Get all node topologies in the cluster.- Returns:
- map of nodeId → TopologyInfo
-