Search in sources :

Example 6 with GlusterMemoryPools

use of org.ovirt.engine.api.model.GlusterMemoryPools in project ovirt-engine by oVirt.

the class GlusterBrickDetailMapper method map.

@Mapping(from = MemoryStatus.class, to = GlusterBrickMemoryInfo.class)
public static GlusterBrickMemoryInfo map(MemoryStatus memoryStatusEntity) {
    GlusterBrickMemoryInfo memInfo = new GlusterBrickMemoryInfo();
    if (memoryStatusEntity == null) {
        return null;
    }
    memInfo.setMemoryPools(new GlusterMemoryPools());
    for (Mempool pool : memoryStatusEntity.getMemPools()) {
        memInfo.getMemoryPools().getGlusterMemoryPools().add(map(pool));
    }
    return memInfo;
}
Also used : GlusterMemoryPools(org.ovirt.engine.api.model.GlusterMemoryPools) GlusterBrickMemoryInfo(org.ovirt.engine.api.model.GlusterBrickMemoryInfo) Mempool(org.ovirt.engine.core.common.businessentities.gluster.Mempool)

Aggregations

GlusterMemoryPools (org.ovirt.engine.api.model.GlusterMemoryPools)6 GlusterClients (org.ovirt.engine.api.model.GlusterClients)3 GlusterBrick (org.ovirt.engine.api.model.GlusterBrick)2 GlusterBrickMemoryInfo (org.ovirt.engine.api.model.GlusterBrickMemoryInfo)2 Mempool (org.ovirt.engine.core.common.businessentities.gluster.Mempool)2 GlusterBrickAdvancedDetails (org.ovirt.engine.api.model.GlusterBrickAdvancedDetails)1 V3GlusterBrick (org.ovirt.engine.api.v3.types.V3GlusterBrick)1 V3GlusterBrickAdvancedDetails (org.ovirt.engine.api.v3.types.V3GlusterBrickAdvancedDetails)1 V3GlusterBrickMemoryInfo (org.ovirt.engine.api.v3.types.V3GlusterBrickMemoryInfo)1 V3GlusterMemoryPools (org.ovirt.engine.api.v3.types.V3GlusterMemoryPools)1 BrickDetails (org.ovirt.engine.core.common.businessentities.gluster.BrickDetails)1 GlusterClientInfo (org.ovirt.engine.core.common.businessentities.gluster.GlusterClientInfo)1