return currentIndex;
}
@Override
public ClusterNode createNode(long clusterGroupId, String address, String comment, boolean activity) {
ClusterGroup clusterGroup = businessEntityDao.lockById(ClusterGroup.class, clusterGroupId);
if (clusterGroup == null) {
throw new MissingEntityException(ClusterGroup.class, clusterGroupId);
}
ClusterNode clusterNode = new ClusterNode();
clusterNode.setEnabled(activity);
clusterNode.setAddress(address);
clusterNode.setDescription(comment);
clusterGroup.getNodes().add(clusterNode);
clusterNode.setGroup(clusterGroup);
clusterGroup.reindexNodes();
return clusterNode;
}