org.libvirt

Class NodeInfo

public class NodeInfo extends Object

Node data from libvirt.
Field Summary
intcores
number of core per socket
intcpus
the number of active CPUs
longmemory
memory size in kilobytes
intmhz
expected CPU frequency
Stringmodel
string indicating the CPU model
intnodes
the number of NUMA cell, 1 for uniform
intsockets
number of CPU socket per node
intthreads
number of threads per core
Constructor Summary
NodeInfo()
NodeInfo(virNodeInfo vInfo)
Method Summary
intmaxCpus()

Field Detail

cores

public int cores
number of core per socket

cpus

public int cpus
the number of active CPUs

memory

public long memory
memory size in kilobytes

mhz

public int mhz
expected CPU frequency

model

public String model
string indicating the CPU model

nodes

public int nodes
the number of NUMA cell, 1 for uniform

sockets

public int sockets
number of CPU socket per node

threads

public int threads
number of threads per core

Constructor Detail

NodeInfo

public NodeInfo()

NodeInfo

public NodeInfo(virNodeInfo vInfo)

Method Detail

maxCpus

public int maxCpus()

Returns: the total number of CPUs supported but not necessarily active in the host.