Search in sources :

Example 16 with VmStatistics

use of org.ovirt.engine.core.common.businessentities.VmStatistics in project ovirt-engine by oVirt.

the class ImportVmCommandBase method addVmStatistics.

private void addVmStatistics() {
    VmStatistics stats = new VmStatistics(getVmId());
    vmStatisticsDao.save(stats);
    getCompensationContext().snapshotNewEntity(stats);
    getCompensationContext().stateChanged();
}
Also used : VmStatistics(org.ovirt.engine.core.common.businessentities.VmStatistics)

Example 17 with VmStatistics

use of org.ovirt.engine.core.common.businessentities.VmStatistics in project ovirt-engine by oVirt.

the class AddVmCommand method addVmStatistics.

private void addVmStatistics() {
    VmStatistics stats = new VmStatistics(getVmId());
    vmStatisticsDao.save(stats);
    getCompensationContext().snapshotNewEntity(stats);
}
Also used : VmStatistics(org.ovirt.engine.core.common.businessentities.VmStatistics)

Aggregations

VmStatistics (org.ovirt.engine.core.common.businessentities.VmStatistics)17 VmDynamic (org.ovirt.engine.core.common.businessentities.VmDynamic)6 VmStatic (org.ovirt.engine.core.common.businessentities.VmStatic)4 Test (org.junit.Test)3 VM (org.ovirt.engine.core.common.businessentities.VM)3 Map (java.util.Map)2 Guid (org.ovirt.engine.core.compat.Guid)2 ReentrantLock (java.util.concurrent.locks.ReentrantLock)1 Function (java.util.function.Function)1 Collectors (java.util.stream.Collectors)1 PostConstruct (javax.annotation.PostConstruct)1 Inject (javax.inject.Inject)1 UriInfo (javax.ws.rs.core.UriInfo)1 Vm (org.ovirt.engine.api.model.Vm)1 ArchitectureType (org.ovirt.engine.core.common.businessentities.ArchitectureType)1 Cluster (org.ovirt.engine.core.common.businessentities.Cluster)1 GraphicsInfo (org.ovirt.engine.core.common.businessentities.GraphicsInfo)1 OriginType (org.ovirt.engine.core.common.businessentities.OriginType)1 VmDevice (org.ovirt.engine.core.common.businessentities.VmDevice)1 VmTemplate (org.ovirt.engine.core.common.businessentities.VmTemplate)1