batchQueueResource.setMaxNodes(o.getMaxNodes());
}
return batchQueueResource;
}
private static Resource createComputeResource(ComputeResource o) {
ComputeResourceResource computeResourceResource = new ComputeResourceResource();
if (o != null) {
computeResourceResource.setResourceDescription(o.getResourceDescription());
computeResourceResource.setResourceId(o.getResourceId());
computeResourceResource.setHostName(o.getHostName());
}
return computeResourceResource;
}