ClusterServiceDAO clusterServiceDAO = injector.getInstance(ClusterServiceDAO.class);
ClusterServiceEntity clusterServiceEntity = new ClusterServiceEntity();
clusterServiceEntity.setClusterId(1L);
clusterServiceEntity.setClusterEntity(clusterEntity);
clusterServiceEntity.setServiceName(SERVICE_NAME);
clusterServiceDAO.create(clusterServiceEntity);
return clusterServiceEntity;
}
private ClusterServiceEntity addService(ClusterEntity clusterEntity, String serviceName) {
ClusterDAO clusterDAO = injector.getInstance(ClusterDAO.class);