refactor(yarn-query): 适配yarn配置改动
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user