Class QmpChangeMedium
java.lang.Object
org.jdrupes.vmoperator.runner.qemu.commands.QmpCommand
org.jdrupes.vmoperator.runner.qemu.commands.QmpChangeMedium
A
QmpCommand that triggers a media change in a CDROM drive.-
Field Summary
Fields inherited from class org.jdrupes.vmoperator.runner.qemu.commands.QmpCommand
mapper -
Constructor Summary
ConstructorsConstructorDescriptionQmpChangeMedium(String driveId, String file) Instantiates a new qmp change medium. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodetoJson()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
-
QmpChangeMedium
Instantiates a new qmp change medium.- Parameters:
driveId- the drive idfile- the file
-
-
Method Details
-
toJson
Description copied from class:QmpCommandReturns the Json to be sent to the Qemu process.- Specified by:
toJsonin classQmpCommand- Returns:
- the json node
-
toString
Description copied from class:QmpCommandCallsQmpCommand.asText()but suppresses theJsonProcessingException.- Overrides:
toStringin classQmpCommand- Returns:
- the string
-