for (Long clusterId : clusterIds) {
ClusterStateEntity clusterStateEntity = clusterStateDAO.findByPK(clusterId);
String currentStackVersion = clusterStateEntity.getCurrentStackVersion();
clusterStateEntity.setCurrentStackVersion(getStackIdString
(currentStackVersion, stackName, stackVersion));
clusterStateDAO.merge(clusterStateEntity);
}
HostComponentStateDAO hostComponentStateDAO = injector.getInstance
(HostComponentStateDAO.class);
List<HostComponentStateEntity> hcEntities = hostComponentStateDAO.findAll();