registeredHostsCount++;
}
}
}
int bootstrapedHostCount = apiBootstrapStatus.getApiBootstrapHostStatus().size();
BootstrapStatus bootstrapStatus = BootstrapStatus.valueOf(apiBootstrapStatus.getStatus());
if (bootstrapStatus.isFailedState()
|| (bootstrapStatus.isSucceedState() && bootstrapedHostCount == registeredHostsCount)) {
if (bootstrapStatus.isFailedState()) {
Map<String, NodeReport> nodeReports = currentReport.getNodeReports();
for (String nodeReportKey : nodeReports.keySet()) {
for (ApiBootstrapHostStatus apiBootstrapHostStatus : apiBootstrapStatus.getApiBootstrapHostStatus()) {
if (Constants.HOST_BOOTSTRAP_FAILED.equals(apiBootstrapHostStatus.getStatus())) {
NodeReport nodeReport = nodeReports.get(nodeReportKey);