Search in sources :

Example 1 with V3BlockStatistic

use of org.ovirt.engine.api.v3.types.V3BlockStatistic in project ovirt-engine by oVirt.

the class V3BlockStatisticInAdapter method adapt.

public BlockStatistic adapt(V3BlockStatistic from) {
    BlockStatistic to = new BlockStatistic();
    if (from.isSetStatistic()) {
        to.setStatistics(new Statistics());
        to.getStatistics().getStatistics().addAll(adaptIn(from.getStatistic()));
    }
    return to;
}
Also used : BlockStatistic(org.ovirt.engine.api.model.BlockStatistic) V3BlockStatistic(org.ovirt.engine.api.v3.types.V3BlockStatistic) Statistics(org.ovirt.engine.api.model.Statistics)

Aggregations

BlockStatistic (org.ovirt.engine.api.model.BlockStatistic)1 Statistics (org.ovirt.engine.api.model.Statistics)1 V3BlockStatistic (org.ovirt.engine.api.v3.types.V3BlockStatistic)1