Search in sources :

Example 1 with NumaNodes

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;
}
Also used : VdsNumaNode(org.ovirt.engine.core.common.businessentities.VdsNumaNode) NumaNodes(org.ovirt.engine.api.model.NumaNodes) NumaNode(org.ovirt.engine.api.model.NumaNode) VdsNumaNode(org.ovirt.engine.core.common.businessentities.VdsNumaNode)

Example 2 with NumaNodes

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;
}
Also used : V3NumaNodes(org.ovirt.engine.api.v3.types.V3NumaNodes) NumaNodes(org.ovirt.engine.api.model.NumaNodes)

Aggregations

NumaNodes (org.ovirt.engine.api.model.NumaNodes)2 NumaNode (org.ovirt.engine.api.model.NumaNode)1 V3NumaNodes (org.ovirt.engine.api.v3.types.V3NumaNodes)1 VdsNumaNode (org.ovirt.engine.core.common.businessentities.VdsNumaNode)1