use of org.ovirt.engine.api.v3.types.V3NumaNodes in project ovirt-engine by oVirt.
the class V3NumaNodesOutAdapter method adapt.
@Override
public V3NumaNodes adapt(NumaNodes from) {
V3NumaNodes to = new V3NumaNodes();
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.getNumaNodes().addAll(adaptOut(from.getNumaNodes()));
return to;
}
use of org.ovirt.engine.api.v3.types.V3NumaNodes in project ovirt-engine by oVirt.
the class V3NumaNodesInAdapter method adapt.
@Override
public NumaNodes adapt(V3NumaNodes from) {
NumaNodes to = new NumaNodes();
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.getNumaNodes().addAll(adaptIn(from.getNumaNodes()));
return to;
}
Aggregations