}
}
}
private void prettyOutputClusterInfo(ClusterRead cluster, boolean detail) {
TopologyType topology = cluster.getTopologyPolicy();
String autoElasticityStatus;
String minComputeNodeNum = cluster.retrieveVhmMinNum();
String maxComputeNodeNum = cluster.retrieveVhmMaxNum();
if (cluster.getAutomationEnable() == null) {
autoElasticityStatus = "N/A";
minComputeNodeNum = "N/A";
maxComputeNodeNum = "N/A";
} else if (cluster.getAutomationEnable()) {
autoElasticityStatus = "Enable";
} else {
autoElasticityStatus = "Disable";
}
printSeperator();
// list cluster level params
LinkedHashMap<String, String> clusterParams =
new LinkedHashMap<String, String>();
clusterParams.put("CLUSTER NAME", cluster.getName());
clusterParams.put("AGENT VERSION", cluster.getVersion());
clusterParams.put("APP MANAGER", cluster.getAppManager());
clusterParams.put("DISTRO", cluster.getDistro());
if (topology != null && topology != TopologyType.NONE) {
clusterParams.put("TOPOLOGY", topology.toString());
}
clusterParams.put("AUTO ELASTIC", autoElasticityStatus);
clusterParams.put("MIN COMPUTE NODES NUM", minComputeNodeNum);
clusterParams.put("MAX COMPUTE NODES NUM", maxComputeNodeNum);
clusterParams.put("IO SHARES", cluster.getIoShares() == null ? ""