Search in sources :

Example 1 with V3VirtualNumaNode

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

the class V3VirtualNumaNodeInAdapter method adapt.

@Override
public VirtualNumaNode adapt(V3VirtualNumaNode from) {
    VirtualNumaNode to = new VirtualNumaNode();
    if (from.isSetLinks()) {
        to.getLinks().addAll(adaptIn(from.getLinks()));
    }
    if (from.isSetActions()) {
        to.setActions(adaptIn(from.getActions()));
    }
    if (from.isSetComment()) {
        to.setComment(from.getComment());
    }
    if (from.isSetCpu()) {
        to.setCpu(adaptIn(from.getCpu()));
    }
    if (from.isSetDescription()) {
        to.setDescription(from.getDescription());
    }
    if (from.isSetHost()) {
        to.setHost(adaptIn(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 NumaNodePins());
        to.getNumaNodePins().getNumaNodePins().addAll(adaptIn(from.getNumaNodePins().getNumaNodePin()));
    }
    if (from.isSetStatistics()) {
        to.setStatistics(new Statistics());
        to.getStatistics().getStatistics().addAll(adaptIn(from.getStatistics().getStatistics()));
    }
    if (from.isSetVm()) {
        to.setVm(adaptIn(from.getVm()));
    }
    return to;
}
Also used : V3VirtualNumaNode(org.ovirt.engine.api.v3.types.V3VirtualNumaNode) VirtualNumaNode(org.ovirt.engine.api.model.VirtualNumaNode) NumaNodePins(org.ovirt.engine.api.model.NumaNodePins) Statistics(org.ovirt.engine.api.model.Statistics)

Example 2 with V3VirtualNumaNode

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

V3VirtualNumaNode (org.ovirt.engine.api.v3.types.V3VirtualNumaNode)2 NumaNodePins (org.ovirt.engine.api.model.NumaNodePins)1 Statistics (org.ovirt.engine.api.model.Statistics)1 VirtualNumaNode (org.ovirt.engine.api.model.VirtualNumaNode)1 V3NumaNodePins (org.ovirt.engine.api.v3.types.V3NumaNodePins)1 V3Statistics (org.ovirt.engine.api.v3.types.V3Statistics)1