refactor(yarn-query): 适配yarn配置改动

This commit is contained in:
2024-02-26 18:38:27 +08:00
parent 834980f880
commit 843ce459f2
6 changed files with 27 additions and 63 deletions

View File

@@ -49,6 +49,17 @@ public class YarnClusters {
return clusters;
}
public Cluster getCluster(String name) {
return clusters.get(name);
}
public String getWebUrl(String name) {
if (clusters.containsKey(name)) {
return getCluster(name).getWebUrl();
}
return null;
}
public ImmutableList<String> getActiveClusters() {
return activeClusters;
}