Search in sources :

Example 1 with V3GlusterBrickMemoryInfo

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;
}
Also used : GlusterMemoryPools(org.ovirt.engine.api.model.GlusterMemoryPools) GlusterBrickMemoryInfo(org.ovirt.engine.api.model.GlusterBrickMemoryInfo) V3GlusterBrickMemoryInfo(org.ovirt.engine.api.v3.types.V3GlusterBrickMemoryInfo)

Example 2 with V3GlusterBrickMemoryInfo

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;
}
Also used : V3GlusterBrickMemoryInfo(org.ovirt.engine.api.v3.types.V3GlusterBrickMemoryInfo) V3GlusterMemoryPools(org.ovirt.engine.api.v3.types.V3GlusterMemoryPools)

Aggregations

V3GlusterBrickMemoryInfo (org.ovirt.engine.api.v3.types.V3GlusterBrickMemoryInfo)2 GlusterBrickMemoryInfo (org.ovirt.engine.api.model.GlusterBrickMemoryInfo)1 GlusterMemoryPools (org.ovirt.engine.api.model.GlusterMemoryPools)1 V3GlusterMemoryPools (org.ovirt.engine.api.v3.types.V3GlusterMemoryPools)1