Class QmpCommand
java.lang.Object
org.jdrupes.vmoperator.runner.qemu.commands.QmpCommand
- Direct Known Subclasses:
QmpAddCpu
,QmpCapabilities
,QmpChangeMedium
,QmpCont
,QmpDelCpu
,QmpOpenTray
,QmpPowerdown
,QmpQueryHotpluggableCpus
,QmpRemoveMedium
,QmpReset
,QmpSetBalloon
,QmpSetDisplayPassword
,QmpSetPasswordExpiry
The Class QmpCommand.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final com.fasterxml.jackson.databind.ObjectMapper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasText()
Returns the string representation.protected static com.fasterxml.jackson.databind.JsonNode
Parses the json.abstract com.fasterxml.jackson.databind.JsonNode
toJson()
Returns the Json to be sent to the Qemu process.toString()
CallsasText()
but suppresses theJsonProcessingException
.
-
Field Details
-
mapper
-
-
Constructor Details
-
QmpCommand
public QmpCommand()
-
-
Method Details
-
parseJson
Parses the json.- Parameters:
json
- the json- Returns:
- the json node
-
toJson
Returns the Json to be sent to the Qemu process.- Returns:
- the json node
-
asText
Returns the string representation.- Returns:
- the string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
- the JSON processing exception
-
toString
CallsasText()
but suppresses theJsonProcessingException
.
-