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;
}
Aggregations