Search in sources :

Example 6 with NodeInfo

use of org.libvirt.NodeInfo in project cloudstack by apache.

the class LibvirtComputingResourceTest method getCpuSpeed.

@Test
public void getCpuSpeed() {
    Assume.assumeTrue(SystemUtils.IS_OS_LINUX);
    final NodeInfo nodeInfo = Mockito.mock(NodeInfo.class);
    LibvirtComputingResource.getCpuSpeed(nodeInfo);
}
Also used : NodeInfo(org.libvirt.NodeInfo) Test(org.junit.Test)

Aggregations

NodeInfo (org.libvirt.NodeInfo)6 VmStatsEntry (com.cloud.agent.api.VmStatsEntry)3 Connect (org.libvirt.Connect)3 Domain (org.libvirt.Domain)3 DomainInfo (org.libvirt.DomainInfo)3 DomainInterfaceStats (org.libvirt.DomainInterfaceStats)3 DiskDef (com.cloud.hypervisor.kvm.resource.LibvirtVMDef.DiskDef)2 InterfaceDef (com.cloud.hypervisor.kvm.resource.LibvirtVMDef.InterfaceDef)2 ArrayList (java.util.ArrayList)2 Calendar (java.util.Calendar)2 Test (org.junit.Test)2 DomainBlockStats (org.libvirt.DomainBlockStats)2 LibvirtException (org.libvirt.LibvirtException)2 InterfaceDef (com.cloud.agent.resource.computing.LibvirtVMDef.InterfaceDef)1 BufferedReader (java.io.BufferedReader)1 FileNotFoundException (java.io.FileNotFoundException)1 FileReader (java.io.FileReader)1 IOException (java.io.IOException)1 MemoryStatistic (org.libvirt.MemoryStatistic)1 InvocationOnMock (org.mockito.invocation.InvocationOnMock)1