use of org.ovirt.engine.api.model.VirtualNumaNodes in project ovirt-engine by oVirt.
the class BackendVmNumaNodesResource method mapCollection.
protected VirtualNumaNodes mapCollection(List<VmNumaNode> entities) {
VirtualNumaNodes collection = instantiate(collectionType);
List<VirtualNumaNode> list = collection.getVirtualNumaNodes();
for (VmNumaNode entity : entities) {
VirtualNumaNode candidate = populate(map(entity), entity);
candidate = addLinks(candidate);
list.add(candidate);
}
return collection;
}
use of org.ovirt.engine.api.model.VirtualNumaNodes in project ovirt-engine by oVirt.
the class V3VirtualNumaNodesInAdapter method adapt.
@Override
public VirtualNumaNodes adapt(V3VirtualNumaNodes from) {
VirtualNumaNodes to = new VirtualNumaNodes();
if (from.isSetActions()) {
to.setActions(adaptIn(from.getActions()));
}
if (from.isSetActive()) {
to.setActive(from.getActive());
}
if (from.isSetSize()) {
to.setSize(from.getSize());
}
if (from.isSetTotal()) {
to.setTotal(from.getTotal());
}
to.getVirtualNumaNodes().addAll(adaptIn(from.getVirtualNumaNodes()));
return to;
}
Aggregations