Class QmpCommand
java.lang.Object
org.jdrupes.vmoperator.runner.qemu.commands.QmpCommand
- Direct Known Subclasses:
QmpAddCpu,QmpCapabilities,QmpChangeMedium,QmpCont,QmpDelCpu,QmpGuestGetOsinfo,QmpGuestInfo,QmpGuestPing,QmpGuestPowerdown,QmpOpenTray,QmpPowerdown,QmpQueryHotpluggableCpus,QmpRemoveMedium,QmpReset,QmpSetBalloon,QmpSetDisplayPassword,QmpSetPasswordExpiry
The Class QmpCommand.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasText()Returns the string representation.protected static com.fasterxml.jackson.databind.JsonNodeParses the json.abstract com.fasterxml.jackson.databind.JsonNodetoJson()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.
-