Search in sources :

Example 1 with V3VirtualNumaNodes

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

the class V3VirtualNumaNodesInAdapter method adapt.

@Override
public VirtualNumaNodes adapt(V3VirtualNumaNodes from) {
    VirtualNumaNodes to = new VirtualNumaNodes();
    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.getVirtualNumaNodes().addAll(adaptIn(from.getVirtualNumaNodes()));
    return to;
}
Also used : VirtualNumaNodes(org.ovirt.engine.api.model.VirtualNumaNodes) V3VirtualNumaNodes(org.ovirt.engine.api.v3.types.V3VirtualNumaNodes)

Example 2 with V3VirtualNumaNodes

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

the class V3VirtualNumaNodesOutAdapter method adapt.

@Override
public V3VirtualNumaNodes adapt(VirtualNumaNodes from) {
    V3VirtualNumaNodes to = new V3VirtualNumaNodes();
    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.getVirtualNumaNodes().addAll(adaptOut(from.getVirtualNumaNodes()));
    return to;
}
Also used : V3VirtualNumaNodes(org.ovirt.engine.api.v3.types.V3VirtualNumaNodes)

Aggregations

V3VirtualNumaNodes (org.ovirt.engine.api.v3.types.V3VirtualNumaNodes)2 VirtualNumaNodes (org.ovirt.engine.api.model.VirtualNumaNodes)1