Search in sources :

Example 1 with V3CpuTune

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

the class V3CpuTuneInAdapter method adapt.

@Override
public CpuTune adapt(V3CpuTune from) {
    CpuTune to = new CpuTune();
    if (from.isSetVCpuPin()) {
        to.setVcpuPins(new VcpuPins());
        to.getVcpuPins().getVcpuPins().addAll(adaptIn(from.getVCpuPin()));
    }
    return to;
}
Also used : VcpuPins(org.ovirt.engine.api.model.VcpuPins) V3CpuTune(org.ovirt.engine.api.v3.types.V3CpuTune) CpuTune(org.ovirt.engine.api.model.CpuTune)

Aggregations

CpuTune (org.ovirt.engine.api.model.CpuTune)1 VcpuPins (org.ovirt.engine.api.model.VcpuPins)1 V3CpuTune (org.ovirt.engine.api.v3.types.V3CpuTune)1