.build().toString();
}
private String doClusterInfo(YarnClient client, ApplicationId applicationId, String clusterId, boolean verbose) {
YarnContainerClusterOperations operations = buildClusterOperations(client, applicationId);
ContainerClusterResource response = operations.clusterInfo(clusterId);
List<ClustersInfoReportData> data = new ArrayList<ClustersInfoReportData>();
Integer pany = response.getGridProjection().getProjectionData().getAny();
Map<String, Integer> phosts = response.getGridProjection().getProjectionData().getHosts();
Map<String, Integer> pracks = response.getGridProjection().getProjectionData().getRacks();
Integer sany = response.getGridProjection().getSatisfyState().getAllocateData().getAny();
Map<String, Integer> shosts = response.getGridProjection().getSatisfyState().getAllocateData().getHosts();
Map<String, Integer> sracks = response.getGridProjection().getSatisfyState().getAllocateData().getRacks();
data.add(new ClustersInfoReportData(response.getContainerClusterState().getClusterState().toString(), response.getGridProjection().getMembers().size(), pany, phosts, pracks, sany, shosts, sracks));
if (verbose) {
return ContainerClusterReport.clusterInfoReportBuilder()
.add(ClusterInfoField.STATE)
.add(ClusterInfoField.MEMBERS)
.add(ClusterInfoField.PROJECTIONANY)