Search in sources :

Example 1 with V3NumaNodes

use of org.ovirt.engine.api.v3.types.V3NumaNodes in project ovirt-engine by oVirt.

the class V3NumaNodesOutAdapter method adapt.

@Override
public V3NumaNodes adapt(NumaNodes from) {
    V3NumaNodes to = new V3NumaNodes();
    if (from.isSetActions()) {
        to.setActions(adaptOut(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(adaptOut(from.getNumaNodes()));
    return to;
}
Also used : V3NumaNodes(org.ovirt.engine.api.v3.types.V3NumaNodes)

Example 2 with V3NumaNodes

use of org.ovirt.engine.api.v3.types.V3NumaNodes 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

V3NumaNodes (org.ovirt.engine.api.v3.types.V3NumaNodes)2 NumaNodes (org.ovirt.engine.api.model.NumaNodes)1