use of org.ovirt.engine.core.common.businessentities.gluster.ServiceType in project ovirt-engine by oVirt.
the class GlusterServiceSyncJob method getClusterServiceMap.
private Map<ServiceType, GlusterClusterService> getClusterServiceMap(Cluster cluster) {
List<GlusterClusterService> clusterServices = clusterServiceDao.getByClusterId(cluster.getId());
if (clusterServices == null) {
clusterServices = new ArrayList<>();
}
Map<ServiceType, GlusterClusterService> clusterServiceMap = new HashMap<>();
for (GlusterClusterService clusterService : clusterServices) {
clusterServiceMap.put(clusterService.getServiceType(), clusterService);
}
return clusterServiceMap;
}
Aggregations