use of org.ovirt.engine.api.model.NumaNodes in project ovirt-engine by oVirt.
the class BackendHostNumaNodesResource method list.
@Override
public NumaNodes list() {
NumaNodes ret = new NumaNodes();
List<VdsNumaNode> nodes = getCollection();
for (VdsNumaNode node : nodes) {
NumaNode numanode = populate(map(node, null), node);
ret.getNumaNodes().add(addLinks(numanode));
}
return ret;
}
use of org.ovirt.engine.api.model.NumaNodes in project ovirt-engine by oVirt.
the class V3NumaNodesInAdapter method adapt.
@Override
public NumaNodes adapt(V3NumaNodes from) {
NumaNodes to = new NumaNodes();
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.getNumaNodes().addAll(adaptIn(from.getNumaNodes()));
return to;
}
Aggregations