Search in sources :

Example 1 with V3NumaNode

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

the class V3NumaNodeInAdapter method adapt.

@Override
public NumaNode adapt(V3NumaNode from) {
    NumaNode to = new NumaNode();
    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.isSetStatistics()) {
        to.setStatistics(new Statistics());
        to.getStatistics().getStatistics().addAll(adaptIn(from.getStatistics().getStatistics()));
    }
    return to;
}
Also used : NumaNode(org.ovirt.engine.api.model.NumaNode) V3NumaNode(org.ovirt.engine.api.v3.types.V3NumaNode) Statistics(org.ovirt.engine.api.model.Statistics)

Example 2 with V3NumaNode

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

the class V3NumaNodeOutAdapter method adapt.

@Override
public V3NumaNode adapt(NumaNode from) {
    V3NumaNode to = new V3NumaNode();
    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.isSetStatistics()) {
        to.setStatistics(new V3Statistics());
        to.getStatistics().getStatistics().addAll(adaptOut(from.getStatistics().getStatistics()));
    }
    return to;
}
Also used : V3NumaNode(org.ovirt.engine.api.v3.types.V3NumaNode) V3Statistics(org.ovirt.engine.api.v3.types.V3Statistics)

Aggregations

V3NumaNode (org.ovirt.engine.api.v3.types.V3NumaNode)2 NumaNode (org.ovirt.engine.api.model.NumaNode)1 Statistics (org.ovirt.engine.api.model.Statistics)1 V3Statistics (org.ovirt.engine.api.v3.types.V3Statistics)1