use of org.ovirt.engine.api.v3.types.V3GlusterBrickMemoryInfo in project ovirt-engine by oVirt.
the class V3GlusterBrickMemoryInfoInAdapter method adapt.
@Override
public GlusterBrickMemoryInfo adapt(V3GlusterBrickMemoryInfo from) {
GlusterBrickMemoryInfo to = new GlusterBrickMemoryInfo();
if (from.isSetMemoryPools()) {
to.setMemoryPools(new GlusterMemoryPools());
to.getMemoryPools().getGlusterMemoryPools().addAll(adaptIn(from.getMemoryPools().getGlusterMemoryPools()));
}
return to;
}
use of org.ovirt.engine.api.v3.types.V3GlusterBrickMemoryInfo in project ovirt-engine by oVirt.
the class V3GlusterBrickMemoryInfoOutAdapter method adapt.
@Override
public V3GlusterBrickMemoryInfo adapt(GlusterBrickMemoryInfo from) {
V3GlusterBrickMemoryInfo to = new V3GlusterBrickMemoryInfo();
if (from.isSetMemoryPools()) {
to.setMemoryPools(new V3GlusterMemoryPools());
to.getMemoryPools().getGlusterMemoryPools().addAll(adaptOut(from.getMemoryPools().getGlusterMemoryPools()));
}
return to;
}
Aggregations