Search in sources :

Example 1 with V3NumaNodePin

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

the class V3NumaNodePinInAdapter method adapt.

@Override
public NumaNodePin adapt(V3NumaNodePin from) {
    NumaNodePin to = new NumaNodePin();
    if (from.isSetHostNumaNode()) {
        to.setHostNumaNode(adaptIn(from.getHostNumaNode()));
    }
    if (from.isSetIndex()) {
        to.setIndex(from.getIndex());
    }
    to.setPinned(from.isPinned());
    return to;
}
Also used : V3NumaNodePin(org.ovirt.engine.api.v3.types.V3NumaNodePin) NumaNodePin(org.ovirt.engine.api.model.NumaNodePin)

Aggregations

NumaNodePin (org.ovirt.engine.api.model.NumaNodePin)1 V3NumaNodePin (org.ovirt.engine.api.v3.types.V3NumaNodePin)1