Search in sources :

Example 1 with V3NumaNodePins

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

the class V3VirtualNumaNodeOutAdapter method adapt.

@Override
public V3VirtualNumaNode adapt(VirtualNumaNode from) {
    V3VirtualNumaNode to = new V3VirtualNumaNode();
    if (from.isSetLinks()) {
        to.getLinks().addAll(adaptOut(from.getLinks()));
    }
    if (from.isSetActions()) {
        to.setActions(adaptOut(from.getActions()));
    }
    if (from.isSetComment()) {
        to.setComment(from.getComment());
    }
    if (from.isSetCpu()) {
        to.setCpu(adaptOut(from.getCpu()));
    }
    if (from.isSetDescription()) {
        to.setDescription(from.getDescription());
    }
    if (from.isSetHost()) {
        to.setHost(adaptOut(from.getHost()));
    }
    if (from.isSetId()) {
        to.setId(from.getId());
    }
    if (from.isSetHref()) {
        to.setHref(from.getHref());
    }
    if (from.isSetIndex()) {
        to.setIndex(from.getIndex());
    }
    if (from.isSetMemory()) {
        to.setMemory(from.getMemory());
    }
    if (from.isSetName()) {
        to.setName(from.getName());
    }
    if (from.isSetNodeDistance()) {
        to.setNodeDistance(from.getNodeDistance());
    }
    if (from.isSetNumaNodePins()) {
        to.setNumaNodePins(new V3NumaNodePins());
        to.getNumaNodePins().getNumaNodePin().addAll(adaptOut(from.getNumaNodePins().getNumaNodePins()));
    }
    if (from.isSetStatistics()) {
        to.setStatistics(new V3Statistics());
        to.getStatistics().getStatistics().addAll(adaptOut(from.getStatistics().getStatistics()));
    }
    if (from.isSetVm()) {
        to.setVm(adaptOut(from.getVm()));
    }
    return to;
}
Also used : V3VirtualNumaNode(org.ovirt.engine.api.v3.types.V3VirtualNumaNode) V3NumaNodePins(org.ovirt.engine.api.v3.types.V3NumaNodePins) V3Statistics(org.ovirt.engine.api.v3.types.V3Statistics)

Aggregations

V3NumaNodePins (org.ovirt.engine.api.v3.types.V3NumaNodePins)1 V3Statistics (org.ovirt.engine.api.v3.types.V3Statistics)1 V3VirtualNumaNode (org.ovirt.engine.api.v3.types.V3VirtualNumaNode)1