Search in sources :

Example 11 with V3Statistics

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

the class V3NumaNodeOutAdapter method adapt.

@Override
public V3NumaNode adapt(NumaNode from) {
    V3NumaNode to = new V3NumaNode();
    if (from.isSetLinks()) {
        to.getLinks().addAll(adaptOut(from.getLinks()));
    }
    if (from.isSetActions()) {
        to.setActions(adaptOut(from.getActions()));
    }
    if (from.isSetComment()) {
        to.setComment(from.getComment());
    }
    if (from.isSetCpu()) {
        to.setCpu(adaptOut(from.getCpu()));
    }
    if (from.isSetDescription()) {
        to.setDescription(from.getDescription());
    }
    if (from.isSetHost()) {
        to.setHost(adaptOut(from.getHost()));
    }
    if (from.isSetId()) {
        to.setId(from.getId());
    }
    if (from.isSetHref()) {
        to.setHref(from.getHref());
    }
    if (from.isSetIndex()) {
        to.setIndex(from.getIndex());
    }
    if (from.isSetMemory()) {
        to.setMemory(from.getMemory());
    }
    if (from.isSetName()) {
        to.setName(from.getName());
    }
    if (from.isSetNodeDistance()) {
        to.setNodeDistance(from.getNodeDistance());
    }
    if (from.isSetStatistics()) {
        to.setStatistics(new V3Statistics());
        to.getStatistics().getStatistics().addAll(adaptOut(from.getStatistics().getStatistics()));
    }
    return to;
}
Also used : V3NumaNode(org.ovirt.engine.api.v3.types.V3NumaNode) V3Statistics(org.ovirt.engine.api.v3.types.V3Statistics)

Aggregations

V3Statistics (org.ovirt.engine.api.v3.types.V3Statistics)11 V3Status (org.ovirt.engine.api.v3.types.V3Status)6 DiskAttachment (org.ovirt.engine.api.model.DiskAttachment)3 V3Disk (org.ovirt.engine.api.v3.types.V3Disk)3 V3KatelloErrata (org.ovirt.engine.api.v3.types.V3KatelloErrata)3 V3ReportedDevices (org.ovirt.engine.api.v3.types.V3ReportedDevices)3 V3VMs (org.ovirt.engine.api.v3.types.V3VMs)3 HashSet (java.util.HashSet)2 List (java.util.List)2 Set (java.util.Set)2 Collectors.toList (java.util.stream.Collectors.toList)2 Disk (org.ovirt.engine.api.model.Disk)2 Link (org.ovirt.engine.api.model.Link)2 V3Adapter (org.ovirt.engine.api.v3.V3Adapter)2 V3OutAdapters.adaptOut (org.ovirt.engine.api.v3.adapters.V3OutAdapters.adaptOut)2 V3CdRoms (org.ovirt.engine.api.v3.types.V3CdRoms)2 V3CustomProperties (org.ovirt.engine.api.v3.types.V3CustomProperties)2 V3Disks (org.ovirt.engine.api.v3.types.V3Disks)2 V3Floppies (org.ovirt.engine.api.v3.types.V3Floppies)2 V3Nics (org.ovirt.engine.api.v3.types.V3Nics)2