@Argument(index = 2, name = "count", description = "The number of nodes to transfer.", required = false, multiValued = false)
int count = 1;
@Override
protected Object doExecute() throws Exception {
Group sourceGroup = groupManager.findGroupByName(sourceGroupName);
if (sourceGroup == null) {
System.err.println("Source cluster group " + sourceGroupName + " doesn't exist");
return null;
}
Group targetGroup = groupManager.findGroupByName(targetGroupName);
if (targetGroup == null) {
System.err.println("Target cluster group " + targetGroupName + " doesn't exist");
return null;
}