Package kubevirt.io
Class V1CPU
java.lang.Object
kubevirt.io.V1CPU
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen",
date="2019-11-10T14:44:51.030+02:00")
public class V1CPU
extends Object
CPU allows specifying the CPU topology.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFeaturesItem(V1CPUFeature featuresItem) dedicatedCpuPlacement(Boolean dedicatedCpuPlacement) booleanfeatures(List<V1CPUFeature> features) getCores()Cores specifies the number of cores inside the vmi.Features specifies the CPU features list inside the VMI.getModel()Model specifies the CPU model inside the VMI.Sockets specifies the number of sockets inside the vmi.Threads specifies the number of threads inside the vmi.inthashCode()DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it.voidvoidsetDedicatedCpuPlacement(Boolean dedicatedCpuPlacement) voidsetFeatures(List<V1CPUFeature> features) voidvoidsetSockets(Integer sockets) voidsetThreads(Integer threads) private StringConvert the given object to string with each line indented by 4 spaces (except the first line).toString()
-
Field Details
-
cores
-
dedicatedCpuPlacement
-
features
-
model
-
sockets
-
threads
-
-
Constructor Details
-
V1CPU
public V1CPU()
-
-
Method Details
-
cores
-
getCores
Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1.- Returns:
- cores
-
setCores
-
dedicatedCpuPlacement
-
isDedicatedCpuPlacement
DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. +optional- Returns:
- dedicatedCpuPlacement
-
setDedicatedCpuPlacement
-
features
-
addFeaturesItem
-
getFeatures
Features specifies the CPU features list inside the VMI. +optional- Returns:
- features
-
setFeatures
-
model
-
getModel
Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. +optional- Returns:
- model
-
setModel
-
sockets
-
getSockets
Sockets specifies the number of sockets inside the vmi. Must be a value greater or equal 1.- Returns:
- sockets
-
setSockets
-
threads
-
getThreads
Threads specifies the number of threads inside the vmi. Must be a value greater or equal 1.- Returns:
- threads
-
setThreads
-
equals
-
hashCode
public int hashCode() -
toString
-
toIndentedString
Convert the given object to string with each line indented by 4 spaces (except the first line).
-