Class QmpAddCpu
java.lang.Object
org.jdrupes.vmoperator.runner.qemu.commands.QmpCommand
org.jdrupes.vmoperator.runner.qemu.commands.QmpAddCpu
A
QmpCommand
that plugs a CPU into an unused slot.-
Field Summary
Fields inherited from class org.jdrupes.vmoperator.runner.qemu.commands.QmpCommand
mapper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
toJson()
Returns the Json to be sent to the Qemu process.toString()
CallsQmpCommand.asText()
but suppresses theJsonProcessingException
.Methods inherited from class org.jdrupes.vmoperator.runner.qemu.commands.QmpCommand
asText, parseJson
-
Constructor Details
-
QmpAddCpu
Instantiates a new command.- Parameters:
unused
- description of an unused cpu slotcpuId
- the cpu id
-
-
Method Details
-
toJson
Description copied from class:QmpCommand
Returns the Json to be sent to the Qemu process.- Specified by:
toJson
in classQmpCommand
- Returns:
- the json node
-
toString
Description copied from class:QmpCommand
CallsQmpCommand.asText()
but suppresses theJsonProcessingException
.- Overrides:
toString
in classQmpCommand
- Returns:
- the string
-