org.libvirt
Class NodeInfo

java.lang.Object
  extended by org.libvirt.NodeInfo

public class NodeInfo
extends java.lang.Object

Node data from libvirt.


Field Summary
 int cores
          number of core per socket
 int cpus
          the number of active CPUs
 long memory
          memory size in kilobytes
 int mhz
          expected CPU frequency
 java.lang.String model
          string indicating the CPU model
 int nodes
          the number of NUMA cell, 1 for uniform
 int sockets
          number of CPU socket per node
 int threads
          number of threads per core
 
Constructor Summary
NodeInfo()
           
NodeInfo(virNodeInfo vInfo)
           
 
Method Summary
 int maxCpus()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

model

public java.lang.String model
string indicating the CPU model


memory

public long memory
memory size in kilobytes


cpus

public int cpus
the number of active CPUs


mhz

public int mhz
expected CPU frequency


nodes

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


sockets

public int sockets
number of CPU socket per node


cores

public int cores
number of core per socket


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.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object