├── .gitignore ├── LICENSE ├── README.md ├── build.gradle ├── codequality ├── HEADER └── checkstyle.xml ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── qemu-examples └── src │ └── main │ └── java │ └── org │ └── anarres │ └── qemu │ └── examples │ ├── AbstractQEmuExample.java │ ├── Main.java │ ├── QEmuExample.java │ └── QEmuRAIDExample.java ├── qemu-exec ├── build.gradle └── src │ ├── main │ └── java │ │ └── org │ │ └── anarres │ │ └── qemu │ │ └── exec │ │ ├── AbstractQEmuOption.java │ │ ├── QEmuArchitecture.java │ │ ├── QEmuBiosOption.java │ │ ├── QEmuBootOption.java │ │ ├── QEmuChardevOption.java │ │ ├── QEmuCommandLine.java │ │ ├── QEmuCpusOption.java │ │ ├── QEmuCustomOption.java │ │ ├── QEmuDeviceOption.java │ │ ├── QEmuDisplayOption.java │ │ ├── QEmuDriveOption.java │ │ ├── QEmuIdOption.java │ │ ├── QEmuIncomingMigrationOption.java │ │ ├── QEmuKernelOption.java │ │ ├── QEmuKeyboardOption.java │ │ ├── QEmuMachine.java │ │ ├── QEmuMachineOption.java │ │ ├── QEmuMemoryOption.java │ │ ├── QEmuMiscOptions.java │ │ ├── QEmuMonitorOption.java │ │ ├── QEmuNetdevOption.java │ │ ├── QEmuOption.java │ │ ├── QEmuRtcOption.java │ │ ├── QEmuWatchdogOption.java │ │ ├── VncDisplay.java │ │ ├── host │ │ ├── chardev │ │ │ ├── AbstractCharDevice.java │ │ │ ├── AbstractSocketCharDevice.java │ │ │ ├── BrailleCharDevice.java │ │ │ ├── CharDevice.java │ │ │ ├── CustomCharDevice.java │ │ │ ├── FileCharDevice.java │ │ │ ├── LinuxParportCharDevice.java │ │ │ ├── MsmouseCharDevice.java │ │ │ ├── NamedPipeCharDevice.java │ │ │ ├── NullCharDevice.java │ │ │ ├── PtyCharDevice.java │ │ │ ├── TcpCharDevice.java │ │ │ ├── UdpCharDevice.java │ │ │ ├── UnixCharDevice.java │ │ │ ├── UnixStdioCharDevice.java │ │ │ ├── VirtualConsoleCharDevice.java │ │ │ └── package-info.java │ │ └── disk │ │ │ ├── AbstractDisk.java │ │ │ ├── CustomDisk.java │ │ │ ├── Disk.java │ │ │ ├── FileDisk.java │ │ │ ├── IScsiDisk.java │ │ │ ├── SshDisk.java │ │ │ ├── TcpNbdDisk.java │ │ │ ├── UnixNbdDisk.java │ │ │ └── package-info.java │ │ ├── package-info.java │ │ ├── recipe │ │ ├── QEmuDisplayRecipe.java │ │ ├── QEmuMonitorRecipe.java │ │ ├── QEmuPerformanceRecipe.java │ │ ├── QEmuRecipe.java │ │ ├── QEmuVirtioDriveRecipe.java │ │ ├── QEmuVirtioNetRecipe.java │ │ ├── QEmuVirtioSerialRecipe.java │ │ └── package-info.java │ │ ├── util │ │ ├── QEmuCommandLineUtils.java │ │ ├── QEmuIdAllocator.java │ │ └── QEmuOptionsList.java │ │ └── vm │ │ └── device │ │ ├── QEmuDevice.java │ │ ├── QEmuVgaDevice.java │ │ └── package-info.java │ └── test │ └── java │ └── org │ └── anarres │ └── qemu │ └── exec │ ├── QEmuCommandLineTest.java │ └── QEmuTestUtils.java ├── qemu-image └── src │ └── main │ └── java │ └── org │ └── anarres │ └── qemu │ └── image │ ├── QEmuImage.java │ ├── QEmuImageCheck.java │ ├── QEmuImageFormat.java │ ├── QEmuImageInfo.java │ └── package-info.java ├── qemu-manager ├── build.gradle └── src │ ├── main │ └── java │ │ └── org │ │ └── anarres │ │ └── qemu │ │ └── manager │ │ ├── IOBuffer.java │ │ ├── IOThread.java │ │ ├── QEmuManager.java │ │ └── QEmuProcess.java │ └── test │ └── java │ └── org │ └── anarres │ └── qemu │ └── manager │ └── QEmuManagerTest.java ├── qemu-qapi ├── build.gradle └── src │ ├── generate │ ├── java │ │ └── org │ │ │ └── anarres │ │ │ └── qemu │ │ │ └── qapi │ │ │ └── generator │ │ │ ├── Main.java │ │ │ ├── SchemaModel.java │ │ │ ├── SchemaParser.java │ │ │ ├── SchemaReader.java │ │ │ ├── SchemaWriter.java │ │ │ └── model │ │ │ ├── AbstractQApiStructDescriptor.java │ │ │ ├── AbstractQApiTypeDescriptor.java │ │ │ ├── AbstractQApiUnionDescriptor.java │ │ │ ├── QApiAnonymousUnionDescriptor.java │ │ │ ├── QApiCommandDescriptor.java │ │ │ ├── QApiElementDescriptor.java │ │ │ ├── QApiEnumDescriptor.java │ │ │ ├── QApiEventDescriptor.java │ │ │ ├── QApiIncludeDescriptor.java │ │ │ ├── QApiStructDescriptor.java │ │ │ ├── QApiTypeDescriptor.java │ │ │ └── QApiUnionDescriptor.java │ └── resources │ │ └── velocity │ │ ├── command.vm │ │ ├── enum.vm │ │ ├── event.vm │ │ ├── header.vm │ │ ├── struct.vm │ │ ├── type.vm │ │ └── union.vm │ ├── main │ └── java │ │ └── org │ │ └── anarres │ │ └── qemu │ │ └── qapi │ │ ├── api │ │ ├── ACPIOSTInfo.java │ │ ├── ACPISlotType.java │ │ ├── Abort.java │ │ ├── AcpiDeviceOstEvent.java │ │ ├── AcpiTableOptions.java │ │ ├── ActionCompletionMode.java │ │ ├── AddClientCommand.java │ │ ├── AddFdCommand.java │ │ ├── AddfdInfo.java │ │ ├── BalloonChangeEvent.java │ │ ├── BalloonCommand.java │ │ ├── BalloonInfo.java │ │ ├── BiosAtaTranslation.java │ │ ├── BlkdebugEvent.java │ │ ├── BlkdebugInjectErrorOptions.java │ │ ├── BlkdebugSetStateOptions.java │ │ ├── BlockCommitCommand.java │ │ ├── BlockDeviceInfo.java │ │ ├── BlockDeviceIoStatus.java │ │ ├── BlockDeviceMapEntry.java │ │ ├── BlockDeviceStats.java │ │ ├── BlockDeviceTimedStats.java │ │ ├── BlockDirtyBitmap.java │ │ ├── BlockDirtyBitmapAdd.java │ │ ├── BlockDirtyBitmapAddCommand.java │ │ ├── BlockDirtyBitmapClearCommand.java │ │ ├── BlockDirtyBitmapRemoveCommand.java │ │ ├── BlockDirtyBitmapSha256.java │ │ ├── BlockDirtyInfo.java │ │ ├── BlockErrorAction.java │ │ ├── BlockIOThrottle.java │ │ ├── BlockImageCorruptedEvent.java │ │ ├── BlockInfo.java │ │ ├── BlockIoErrorEvent.java │ │ ├── BlockJobCancelCommand.java │ │ ├── BlockJobCancelledEvent.java │ │ ├── BlockJobCompleteCommand.java │ │ ├── BlockJobCompletedEvent.java │ │ ├── BlockJobDismissCommand.java │ │ ├── BlockJobErrorEvent.java │ │ ├── BlockJobFinalizeCommand.java │ │ ├── BlockJobInfo.java │ │ ├── BlockJobPauseCommand.java │ │ ├── BlockJobPendingEvent.java │ │ ├── BlockJobReadyEvent.java │ │ ├── BlockJobResumeCommand.java │ │ ├── BlockJobSetSpeedCommand.java │ │ ├── BlockJobStatus.java │ │ ├── BlockJobType.java │ │ ├── BlockJobVerb.java │ │ ├── BlockLatencyHistogramInfo.java │ │ ├── BlockMeasureInfo.java │ │ ├── BlockPasswdCommand.java │ │ ├── BlockResizeCommand.java │ │ ├── BlockSetIoThrottleCommand.java │ │ ├── BlockSetWriteThresholdCommand.java │ │ ├── BlockStats.java │ │ ├── BlockStreamCommand.java │ │ ├── BlockWriteThresholdEvent.java │ │ ├── BlockdevAddCommand.java │ │ ├── BlockdevAioOptions.java │ │ ├── BlockdevBackup.java │ │ ├── BlockdevBackupCommand.java │ │ ├── BlockdevCacheInfo.java │ │ ├── BlockdevCacheOptions.java │ │ ├── BlockdevChangeMediumCommand.java │ │ ├── BlockdevChangeReadOnlyMode.java │ │ ├── BlockdevCloseTrayCommand.java │ │ ├── BlockdevCreateNotSupported.java │ │ ├── BlockdevCreateOptions.java │ │ ├── BlockdevCreateOptionsBase.java │ │ ├── BlockdevCreateOptionsFile.java │ │ ├── BlockdevCreateOptionsGluster.java │ │ ├── BlockdevCreateOptionsLUKS.java │ │ ├── BlockdevCreateOptionsNfs.java │ │ ├── BlockdevCreateOptionsParallels.java │ │ ├── BlockdevCreateOptionsQcow.java │ │ ├── BlockdevCreateOptionsQcow2.java │ │ ├── BlockdevCreateOptionsQed.java │ │ ├── BlockdevCreateOptionsRbd.java │ │ ├── BlockdevCreateOptionsSheepdog.java │ │ ├── BlockdevCreateOptionsSsh.java │ │ ├── BlockdevCreateOptionsVdi.java │ │ ├── BlockdevCreateOptionsVhdx.java │ │ ├── BlockdevCreateOptionsVpc.java │ │ ├── BlockdevDelCommand.java │ │ ├── BlockdevDetectZeroesOptions.java │ │ ├── BlockdevDiscardOptions.java │ │ ├── BlockdevDriver.java │ │ ├── BlockdevInsertMediumCommand.java │ │ ├── BlockdevMirrorCommand.java │ │ ├── BlockdevOnError.java │ │ ├── BlockdevOpenTrayCommand.java │ │ ├── BlockdevOptions.java │ │ ├── BlockdevOptionsBase.java │ │ ├── BlockdevOptionsBlkdebug.java │ │ ├── BlockdevOptionsBlkverify.java │ │ ├── BlockdevOptionsCurlBase.java │ │ ├── BlockdevOptionsCurlFtp.java │ │ ├── BlockdevOptionsCurlFtps.java │ │ ├── BlockdevOptionsCurlHttp.java │ │ ├── BlockdevOptionsCurlHttps.java │ │ ├── BlockdevOptionsFile.java │ │ ├── BlockdevOptionsGenericCOWFormat.java │ │ ├── BlockdevOptionsGenericFormat.java │ │ ├── BlockdevOptionsGluster.java │ │ ├── BlockdevOptionsIscsi.java │ │ ├── BlockdevOptionsLUKS.java │ │ ├── BlockdevOptionsNVMe.java │ │ ├── BlockdevOptionsNbd.java │ │ ├── BlockdevOptionsNfs.java │ │ ├── BlockdevOptionsNull.java │ │ ├── BlockdevOptionsQcow.java │ │ ├── BlockdevOptionsQcow2.java │ │ ├── BlockdevOptionsQuorum.java │ │ ├── BlockdevOptionsRaw.java │ │ ├── BlockdevOptionsRbd.java │ │ ├── BlockdevOptionsReplication.java │ │ ├── BlockdevOptionsSheepdog.java │ │ ├── BlockdevOptionsSsh.java │ │ ├── BlockdevOptionsThrottle.java │ │ ├── BlockdevOptionsVVFAT.java │ │ ├── BlockdevOptionsVxHS.java │ │ ├── BlockdevQcow2Encryption.java │ │ ├── BlockdevQcow2EncryptionBase.java │ │ ├── BlockdevQcow2EncryptionFormat.java │ │ ├── BlockdevQcow2Version.java │ │ ├── BlockdevQcowEncryption.java │ │ ├── BlockdevQcowEncryptionBase.java │ │ ├── BlockdevQcowEncryptionFormat.java │ │ ├── BlockdevRef.java │ │ ├── BlockdevRefOrNull.java │ │ ├── BlockdevRemoveMediumCommand.java │ │ ├── BlockdevSnapshot.java │ │ ├── BlockdevSnapshotCommand.java │ │ ├── BlockdevSnapshotDeleteInternalSyncCommand.java │ │ ├── BlockdevSnapshotInternal.java │ │ ├── BlockdevSnapshotInternalSyncCommand.java │ │ ├── BlockdevSnapshotSync.java │ │ ├── BlockdevSnapshotSyncCommand.java │ │ ├── BlockdevVhdxSubformat.java │ │ ├── BlockdevVpcSubformat.java │ │ ├── COLOMessage.java │ │ ├── COLOMode.java │ │ ├── ChangeBackingFileCommand.java │ │ ├── ChangeCommand.java │ │ ├── ChangeVncPasswordCommand.java │ │ ├── ChardevAddCommand.java │ │ ├── ChardevBackend.java │ │ ├── ChardevBackendInfo.java │ │ ├── ChardevChangeCommand.java │ │ ├── ChardevCommon.java │ │ ├── ChardevFile.java │ │ ├── ChardevHostdev.java │ │ ├── ChardevInfo.java │ │ ├── ChardevMux.java │ │ ├── ChardevRemoveCommand.java │ │ ├── ChardevReturn.java │ │ ├── ChardevRingbuf.java │ │ ├── ChardevSendBreakCommand.java │ │ ├── ChardevSocket.java │ │ ├── ChardevSpiceChannel.java │ │ ├── ChardevSpicePort.java │ │ ├── ChardevStdio.java │ │ ├── ChardevUdp.java │ │ ├── ChardevVC.java │ │ ├── ClientMigrateInfoCommand.java │ │ ├── ClosefdCommand.java │ │ ├── CommandDropReason.java │ │ ├── CommandDroppedEvent.java │ │ ├── CommandInfo.java │ │ ├── CommandLineOptionInfo.java │ │ ├── CommandLineParameterInfo.java │ │ ├── CommandLineParameterType.java │ │ ├── ContCommand.java │ │ ├── CpuAddCommand.java │ │ ├── CpuDefinitionInfo.java │ │ ├── CpuInfo.java │ │ ├── CpuInfoArch.java │ │ ├── CpuInfoBase.java │ │ ├── CpuInfoFast.java │ │ ├── CpuInfoFastBase.java │ │ ├── CpuInfoMIPS.java │ │ ├── CpuInfoOther.java │ │ ├── CpuInfoPPC.java │ │ ├── CpuInfoRISCV.java │ │ ├── CpuInfoS390.java │ │ ├── CpuInfoSPARC.java │ │ ├── CpuInfoTricore.java │ │ ├── CpuInfoX86.java │ │ ├── CpuInstanceProperties.java │ │ ├── CpuModelBaselineInfo.java │ │ ├── CpuModelCompareInfo.java │ │ ├── CpuModelCompareResult.java │ │ ├── CpuModelExpansionInfo.java │ │ ├── CpuModelExpansionType.java │ │ ├── CpuModelInfo.java │ │ ├── CpuS390State.java │ │ ├── DataFormat.java │ │ ├── DeviceAddCommand.java │ │ ├── DeviceDelCommand.java │ │ ├── DeviceDeletedEvent.java │ │ ├── DeviceListPropertiesCommand.java │ │ ├── DeviceTrayMovedEvent.java │ │ ├── DirtyBitmapStatus.java │ │ ├── DisplayGTK.java │ │ ├── DisplayNoOpts.java │ │ ├── DisplayOptions.java │ │ ├── DisplayOptionsBase.java │ │ ├── DisplayType.java │ │ ├── DriveBackup.java │ │ ├── DriveBackupCommand.java │ │ ├── DriveMirror.java │ │ ├── DriveMirrorCommand.java │ │ ├── DummyForceArrays.java │ │ ├── DumpCompletedEvent.java │ │ ├── DumpGuestMemoryCapability.java │ │ ├── DumpGuestMemoryCommand.java │ │ ├── DumpGuestMemoryFormat.java │ │ ├── DumpQueryResult.java │ │ ├── DumpSkeysCommand.java │ │ ├── DumpStatus.java │ │ ├── EjectCommand.java │ │ ├── EventInfo.java │ │ ├── ExpirePasswordCommand.java │ │ ├── FailoverStatus.java │ │ ├── FdsetFdInfo.java │ │ ├── FdsetInfo.java │ │ ├── FloppyDriveType.java │ │ ├── GICCapability.java │ │ ├── GetfdCommand.java │ │ ├── GuestPanicAction.java │ │ ├── GuestPanicInformation.java │ │ ├── GuestPanicInformationBase.java │ │ ├── GuestPanicInformationHyperV.java │ │ ├── GuestPanicInformationS390.java │ │ ├── GuestPanicInformationType.java │ │ ├── GuestPanickedEvent.java │ │ ├── GuidInfo.java │ │ ├── HostMemPolicy.java │ │ ├── HotpluggableCPU.java │ │ ├── HumanMonitorCommandCommand.java │ │ ├── IOThreadInfo.java │ │ ├── ImageCheck.java │ │ ├── ImageInfo.java │ │ ├── ImageInfoSpecific.java │ │ ├── ImageInfoSpecificQCow2.java │ │ ├── ImageInfoSpecificQCow2Encryption.java │ │ ├── ImageInfoSpecificQCow2EncryptionBase.java │ │ ├── ImageInfoSpecificVmdk.java │ │ ├── InetSocketAddress.java │ │ ├── InetSocketAddressBase.java │ │ ├── InjectNmiCommand.java │ │ ├── InputAxis.java │ │ ├── InputBtnEvent.java │ │ ├── InputButton.java │ │ ├── InputEvent.java │ │ ├── InputKeyEvent.java │ │ ├── InputMoveEvent.java │ │ ├── InputSendEventCommand.java │ │ ├── IoOperationType.java │ │ ├── IscsiHeaderDigest.java │ │ ├── IscsiTransport.java │ │ ├── JSONType.java │ │ ├── KeyValue.java │ │ ├── KvmInfo.java │ │ ├── LostTickPolicy.java │ │ ├── MachineInfo.java │ │ ├── MapEntry.java │ │ ├── MemUnplugErrorEvent.java │ │ ├── Memdev.java │ │ ├── MemoryDeviceInfo.java │ │ ├── MemoryInfo.java │ │ ├── MemsaveCommand.java │ │ ├── MigrateCancelCommand.java │ │ ├── MigrateCommand.java │ │ ├── MigrateContinueCommand.java │ │ ├── MigrateIncomingCommand.java │ │ ├── MigrateSetCacheSizeCommand.java │ │ ├── MigrateSetCapabilitiesCommand.java │ │ ├── MigrateSetDowntimeCommand.java │ │ ├── MigrateSetParameters.java │ │ ├── MigrateSetParametersCommand.java │ │ ├── MigrateSetSpeedCommand.java │ │ ├── MigrateStartPostcopyCommand.java │ │ ├── MigrationCapability.java │ │ ├── MigrationCapabilityStatus.java │ │ ├── MigrationEvent.java │ │ ├── MigrationInfo.java │ │ ├── MigrationParameter.java │ │ ├── MigrationParameters.java │ │ ├── MigrationPassEvent.java │ │ ├── MigrationStats.java │ │ ├── MigrationStatus.java │ │ ├── MirrorSyncMode.java │ │ ├── MouseInfo.java │ │ ├── NFSServer.java │ │ ├── NFSTransport.java │ │ ├── NameInfo.java │ │ ├── NbdServerAddCommand.java │ │ ├── NbdServerRemoveCommand.java │ │ ├── NbdServerRemoveMode.java │ │ ├── NbdServerStartCommand.java │ │ ├── NbdServerStopCommand.java │ │ ├── NetClientDriver.java │ │ ├── NetFilterDirection.java │ │ ├── NetLegacy.java │ │ ├── NetLegacyNicOptions.java │ │ ├── NetLegacyOptions.java │ │ ├── NetLegacyOptionsBase.java │ │ ├── NetLegacyOptionsType.java │ │ ├── Netdev.java │ │ ├── NetdevAddCommand.java │ │ ├── NetdevBase.java │ │ ├── NetdevBridgeOptions.java │ │ ├── NetdevDelCommand.java │ │ ├── NetdevHubPortOptions.java │ │ ├── NetdevL2TPv3Options.java │ │ ├── NetdevNetmapOptions.java │ │ ├── NetdevNoneOptions.java │ │ ├── NetdevSocketOptions.java │ │ ├── NetdevTapOptions.java │ │ ├── NetdevUserOptions.java │ │ ├── NetdevVdeOptions.java │ │ ├── NetdevVhostUserOptions.java │ │ ├── NetworkAddressFamily.java │ │ ├── NewImageMode.java │ │ ├── NicRxFilterChangedEvent.java │ │ ├── NumaCpuOptions.java │ │ ├── NumaDistOptions.java │ │ ├── NumaNodeOptions.java │ │ ├── NumaOptions.java │ │ ├── NumaOptionsBase.java │ │ ├── NumaOptionsType.java │ │ ├── ObjectAddCommand.java │ │ ├── ObjectDelCommand.java │ │ ├── ObjectPropertyInfo.java │ │ ├── ObjectTypeInfo.java │ │ ├── OffAutoPCIBAR.java │ │ ├── OnOffAuto.java │ │ ├── OnOffSplit.java │ │ ├── PCDIMMDeviceInfo.java │ │ ├── PciBridgeInfo.java │ │ ├── PciBusInfo.java │ │ ├── PciDeviceClass.java │ │ ├── PciDeviceId.java │ │ ├── PciDeviceInfo.java │ │ ├── PciInfo.java │ │ ├── PciMemoryRange.java │ │ ├── PciMemoryRegion.java │ │ ├── PmemsaveCommand.java │ │ ├── PowerdownEvent.java │ │ ├── PreallocMode.java │ │ ├── QCryptoBlockCreateOptions.java │ │ ├── QCryptoBlockCreateOptionsLUKS.java │ │ ├── QCryptoBlockFormat.java │ │ ├── QCryptoBlockInfo.java │ │ ├── QCryptoBlockInfoBase.java │ │ ├── QCryptoBlockInfoLUKS.java │ │ ├── QCryptoBlockInfoLUKSSlot.java │ │ ├── QCryptoBlockInfoQCow.java │ │ ├── QCryptoBlockOpenOptions.java │ │ ├── QCryptoBlockOptionsBase.java │ │ ├── QCryptoBlockOptionsLUKS.java │ │ ├── QCryptoBlockOptionsQCow.java │ │ ├── QCryptoCipherAlgorithm.java │ │ ├── QCryptoCipherMode.java │ │ ├── QCryptoHashAlgorithm.java │ │ ├── QCryptoIVGenAlgorithm.java │ │ ├── QCryptoSecretFormat.java │ │ ├── QCryptoTLSCredsEndpoint.java │ │ ├── QKeyCode.java │ │ ├── QMPCapability.java │ │ ├── QapiErrorClass.java │ │ ├── Qcow2OverlapCheckFlags.java │ │ ├── Qcow2OverlapCheckMode.java │ │ ├── Qcow2OverlapChecks.java │ │ ├── QmpCapabilitiesCommand.java │ │ ├── QomGetCommand.java │ │ ├── QomListCommand.java │ │ ├── QomListPropertiesCommand.java │ │ ├── QomListTypesCommand.java │ │ ├── QomSetCommand.java │ │ ├── QueryAcpiOspmStatusCommand.java │ │ ├── QueryBalloonCommand.java │ │ ├── QueryBlockCommand.java │ │ ├── QueryBlockJobsCommand.java │ │ ├── QueryBlockstatsCommand.java │ │ ├── QueryChardevBackendsCommand.java │ │ ├── QueryChardevCommand.java │ │ ├── QueryCommandLineOptionsCommand.java │ │ ├── QueryCommandsCommand.java │ │ ├── QueryCpuDefinitionsCommand.java │ │ ├── QueryCpuModelBaselineCommand.java │ │ ├── QueryCpuModelComparisonCommand.java │ │ ├── QueryCpuModelExpansionCommand.java │ │ ├── QueryCpusCommand.java │ │ ├── QueryCpusFastCommand.java │ │ ├── QueryDumpCommand.java │ │ ├── QueryDumpGuestMemoryCapabilityCommand.java │ │ ├── QueryEventsCommand.java │ │ ├── QueryFdsetsCommand.java │ │ ├── QueryGicCapabilitiesCommand.java │ │ ├── QueryHotpluggableCpusCommand.java │ │ ├── QueryIothreadsCommand.java │ │ ├── QueryKvmCommand.java │ │ ├── QueryMachinesCommand.java │ │ ├── QueryMemdevCommand.java │ │ ├── QueryMemoryDevicesCommand.java │ │ ├── QueryMemorySizeSummaryCommand.java │ │ ├── QueryMiceCommand.java │ │ ├── QueryMigrateCacheSizeCommand.java │ │ ├── QueryMigrateCapabilitiesCommand.java │ │ ├── QueryMigrateCommand.java │ │ ├── QueryMigrateParametersCommand.java │ │ ├── QueryNameCommand.java │ │ ├── QueryNamedBlockNodesCommand.java │ │ ├── QueryPciCommand.java │ │ ├── QueryQmpSchemaCommand.java │ │ ├── QueryRockerCommand.java │ │ ├── QueryRockerOfDpaFlowsCommand.java │ │ ├── QueryRockerOfDpaGroupsCommand.java │ │ ├── QueryRockerPortsCommand.java │ │ ├── QueryRxFilterCommand.java │ │ ├── QuerySevCapabilitiesCommand.java │ │ ├── QuerySevCommand.java │ │ ├── QuerySevLaunchMeasureCommand.java │ │ ├── QuerySpiceCommand.java │ │ ├── QueryStatusCommand.java │ │ ├── QueryTargetCommand.java │ │ ├── QueryTpmCommand.java │ │ ├── QueryTpmModelsCommand.java │ │ ├── QueryTpmTypesCommand.java │ │ ├── QueryUuidCommand.java │ │ ├── QueryVersionCommand.java │ │ ├── QueryVmGenerationIdCommand.java │ │ ├── QueryVncCommand.java │ │ ├── QueryVncServersCommand.java │ │ ├── QueryXenReplicationStatusCommand.java │ │ ├── QuitCommand.java │ │ ├── QuorumFailureEvent.java │ │ ├── QuorumOpType.java │ │ ├── QuorumReadPattern.java │ │ ├── QuorumReportBadEvent.java │ │ ├── RemoveFdCommand.java │ │ ├── ReplayMode.java │ │ ├── ReplicationMode.java │ │ ├── ReplicationStatus.java │ │ ├── ResetEvent.java │ │ ├── ResumeEvent.java │ │ ├── RingbufReadCommand.java │ │ ├── RingbufWriteCommand.java │ │ ├── RockerOfDpaFlow.java │ │ ├── RockerOfDpaFlowAction.java │ │ ├── RockerOfDpaFlowKey.java │ │ ├── RockerOfDpaFlowMask.java │ │ ├── RockerOfDpaGroup.java │ │ ├── RockerPort.java │ │ ├── RockerPortAutoneg.java │ │ ├── RockerPortDuplex.java │ │ ├── RockerSwitch.java │ │ ├── RtcChangeEvent.java │ │ ├── RtcResetReinjectionCommand.java │ │ ├── RunState.java │ │ ├── RxFilterInfo.java │ │ ├── RxState.java │ │ ├── S390CrashReason.java │ │ ├── SchemaInfo.java │ │ ├── SchemaInfoAlternate.java │ │ ├── SchemaInfoAlternateMember.java │ │ ├── SchemaInfoArray.java │ │ ├── SchemaInfoBase.java │ │ ├── SchemaInfoBuiltin.java │ │ ├── SchemaInfoCommand.java │ │ ├── SchemaInfoEnum.java │ │ ├── SchemaInfoEvent.java │ │ ├── SchemaInfoObject.java │ │ ├── SchemaInfoObjectMember.java │ │ ├── SchemaInfoObjectVariant.java │ │ ├── SchemaMetaType.java │ │ ├── ScreendumpCommand.java │ │ ├── SendKeyCommand.java │ │ ├── SetLinkCommand.java │ │ ├── SetPasswordCommand.java │ │ ├── SevCapability.java │ │ ├── SevInfo.java │ │ ├── SevLaunchMeasureInfo.java │ │ ├── SevState.java │ │ ├── SheepdogRedundancy.java │ │ ├── SheepdogRedundancyBase.java │ │ ├── SheepdogRedundancyErasureCoded.java │ │ ├── SheepdogRedundancyFull.java │ │ ├── SheepdogRedundancyType.java │ │ ├── ShutdownEvent.java │ │ ├── SnapshotInfo.java │ │ ├── SocketAddress.java │ │ ├── SocketAddressBase.java │ │ ├── SocketAddressLegacy.java │ │ ├── SocketAddressType.java │ │ ├── SpiceBasicInfo.java │ │ ├── SpiceChannel.java │ │ ├── SpiceConnectedEvent.java │ │ ├── SpiceDisconnectedEvent.java │ │ ├── SpiceInfo.java │ │ ├── SpiceInitializedEvent.java │ │ ├── SpiceMigrateCompletedEvent.java │ │ ├── SpiceQueryMouseMode.java │ │ ├── SpiceServerInfo.java │ │ ├── SshHostKeyCheck.java │ │ ├── SshHostKeyCheckBase.java │ │ ├── SshHostKeyCheckHashType.java │ │ ├── SshHostKeyCheckMode.java │ │ ├── SshHostKeyDummy.java │ │ ├── SshHostKeyHash.java │ │ ├── StatusInfo.java │ │ ├── StopCommand.java │ │ ├── StopEvent.java │ │ ├── StrOrNull.java │ │ ├── String.java │ │ ├── SuspendDiskEvent.java │ │ ├── SuspendEvent.java │ │ ├── SystemPowerdownCommand.java │ │ ├── SystemResetCommand.java │ │ ├── SystemWakeupCommand.java │ │ ├── TPMEmulatorOptions.java │ │ ├── TPMInfo.java │ │ ├── TPMPassthroughOptions.java │ │ ├── TargetInfo.java │ │ ├── ThrottleLimits.java │ │ ├── TpmModel.java │ │ ├── TpmType.java │ │ ├── TpmTypeOptions.java │ │ ├── TraceEventGetStateCommand.java │ │ ├── TraceEventInfo.java │ │ ├── TraceEventSetStateCommand.java │ │ ├── TraceEventState.java │ │ ├── TransactionAction.java │ │ ├── TransactionCommand.java │ │ ├── TransactionProperties.java │ │ ├── UnixSocketAddress.java │ │ ├── UuidInfo.java │ │ ├── VersionInfo.java │ │ ├── VersionTriple.java │ │ ├── VncBasicInfo.java │ │ ├── VncClientInfo.java │ │ ├── VncConnectedEvent.java │ │ ├── VncDisconnectedEvent.java │ │ ├── VncInfo.java │ │ ├── VncInfo2.java │ │ ├── VncInitializedEvent.java │ │ ├── VncPrimaryAuth.java │ │ ├── VncServerInfo.java │ │ ├── VncServerInfo2.java │ │ ├── VncVencryptSubAuth.java │ │ ├── VserportChangeEvent.java │ │ ├── VsockSocketAddress.java │ │ ├── WakeupEvent.java │ │ ├── WatchdogAction.java │ │ ├── WatchdogEvent.java │ │ ├── WatchdogSetActionCommand.java │ │ ├── X86CPUFeatureWordInfo.java │ │ ├── X86CPURegister32.java │ │ ├── XBZRLECacheStats.java │ │ ├── XBlockLatencyHistogramSetCommand.java │ │ ├── XBlockdevChangeCommand.java │ │ ├── XBlockdevCreateCommand.java │ │ ├── XBlockdevSetIothreadCommand.java │ │ ├── XColoLostHeartbeatCommand.java │ │ ├── XDebugBlockDirtyBitmapSha256Command.java │ │ ├── XOobTestCommand.java │ │ ├── XenColoDoCheckpointCommand.java │ │ ├── XenLoadDevicesStateCommand.java │ │ ├── XenSaveDevicesStateCommand.java │ │ ├── XenSetGlobalDirtyLogCommand.java │ │ └── XenSetReplicationCommand.java │ │ └── common │ │ ├── QApiCommand.java │ │ ├── QApiConnection.java │ │ ├── QApiError.java │ │ ├── QApiEvent.java │ │ ├── QApiException.java │ │ ├── QApiGreeting.java │ │ ├── QApiObject.java │ │ ├── QApiResponse.java │ │ ├── QApiType.java │ │ ├── QApiUnion.java │ │ ├── QmpCapabilitiesCommand.java │ │ └── package-info.java │ └── test │ └── java │ └── org │ └── anarres │ └── qemu │ └── qapi │ ├── common │ ├── QApiBlockdevTest.java │ ├── QApiConnectionTest.java │ ├── QApiTestUtils.java │ └── StrOrNullTest.java │ └── scratch │ └── ScratchTest.java ├── settings.gradle └── src └── main └── ghpages └── index.html /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled source # 2 | ################### 3 | *.com 4 | *.class 5 | *.dll 6 | *.exe 7 | *.o 8 | *.so 9 | 10 | # Packages # 11 | ############ 12 | # it's better to unpack these files and commit the raw source 13 | # git has its own built in compression methods 14 | *.7z 15 | *.dmg 16 | *.gz 17 | *.iso 18 | *.rar 19 | *.tar 20 | *.zip 21 | 22 | # Logs and databases # 23 | ###################### 24 | *.log 25 | 26 | # OS generated files # 27 | ###################### 28 | .DS_Store* 29 | ehthumbs.db 30 | Icon? 31 | Thumbs.db 32 | 33 | # Editor Files # 34 | ################ 35 | *~ 36 | *.swp 37 | 38 | # Gradle Files # 39 | ################ 40 | .gradle 41 | 42 | # Build output directies 43 | /target 44 | */target 45 | /build 46 | */build 47 | 48 | # IntelliJ specific files/directories 49 | out 50 | .idea 51 | *.ipr 52 | *.iws 53 | *.iml 54 | atlassian-ide-plugin.xml 55 | 56 | # Eclipse specific files/directories 57 | .classpath 58 | .project 59 | .settings 60 | .metadata 61 | 62 | # NetBeans specific files/directories 63 | .nbattrs 64 | .nb-gradle 65 | 66 | filter.sh 67 | -------------------------------------------------------------------------------- /codequality/HEADER: -------------------------------------------------------------------------------- 1 | Copyright ${year} Shevek 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | version=1.0.7-SNAPSHOT 2 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shevek/qemu-java/ef4cc2c991df36d5f450b49ec8e341f6ed3362f2/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Apr 19 19:14:04 BST 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-bin.zip 7 | -------------------------------------------------------------------------------- /qemu-examples/src/main/java/org/anarres/qemu/examples/QEmuExample.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package org.anarres.qemu.examples; 7 | 8 | import javax.annotation.Nonnull; 9 | 10 | /** 11 | * 12 | * @author shevek 13 | */ 14 | public interface QEmuExample { 15 | 16 | public void invoke(@Nonnull String[] args) throws Exception; 17 | } 18 | -------------------------------------------------------------------------------- /qemu-exec/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shevek/qemu-java/ef4cc2c991df36d5f450b49ec8e341f6ed3362f2/qemu-exec/build.gradle -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/QEmuBiosOption.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec; 6 | 7 | import java.io.File; 8 | import java.util.List; 9 | import javax.annotation.Nonnull; 10 | 11 | /** 12 | * 13 | * @author shevek 14 | */ 15 | public class QEmuBiosOption extends AbstractQEmuOption { 16 | 17 | private final File file; 18 | 19 | public QEmuBiosOption(@Nonnull File file) { 20 | this.file = file; 21 | } 22 | 23 | public QEmuBiosOption(@Nonnull String path) { 24 | this(new File(path)); 25 | } 26 | 27 | @Override 28 | public void appendTo(List line) { 29 | add(line, "-bios", file.getAbsolutePath()); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/QEmuCustomOption.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec; 6 | 7 | import java.util.Arrays; 8 | import java.util.List; 9 | import javax.annotation.Nonnull; 10 | 11 | /** 12 | * 13 | * @author shevek 14 | */ 15 | public class QEmuCustomOption extends AbstractQEmuOption { 16 | 17 | private final List words; 18 | 19 | public QEmuCustomOption(@Nonnull List words) { 20 | this.words = words; 21 | } 22 | 23 | public QEmuCustomOption(@Nonnull String... words) { 24 | this(Arrays.asList(words)); 25 | } 26 | 27 | @Override 28 | public void appendTo(List line) { 29 | line.addAll(words); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/QEmuIncomingMigrationOption.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * 11 | * @author shevek 12 | */ 13 | public class QEmuIncomingMigrationOption extends AbstractQEmuOption { 14 | 15 | private final int port; 16 | 17 | public QEmuIncomingMigrationOption(int port) { 18 | this.port = port; 19 | } 20 | 21 | @Override 22 | public void appendTo(List line) { 23 | add(line, "-incoming", port); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/QEmuMiscOptions.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec; 6 | 7 | /** 8 | * 9 | * @author shevek 10 | */ 11 | public class QEmuMiscOptions { 12 | 13 | public static final QEmuOption ENABLE_FIPS = new QEmuCustomOption("-enable-fips"); 14 | public static final QEmuOption NO_USER_CONFIG = new QEmuCustomOption("-no-user-config"); 15 | public static final QEmuOption NO_DEFAULTS = new QEmuCustomOption("-nodefaults"); 16 | public static final QEmuOption NO_SHUTDOWN = new QEmuCustomOption("-no-shutdown"); 17 | public static final QEmuOption NO_ACPI = new QEmuCustomOption("-no-acpi"); 18 | public static final QEmuOption NO_REBOOT = new QEmuCustomOption("-no-reboot"); 19 | public static final QEmuOption NO_HPET = new QEmuCustomOption("-no-hpet"); 20 | 21 | private QEmuMiscOptions() { 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/QEmuOption.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec; 6 | 7 | import java.util.List; 8 | import javax.annotation.Nonnull; 9 | 10 | /** 11 | * 12 | * @author shevek 13 | */ 14 | public interface QEmuOption { 15 | 16 | public static interface Container extends Iterable { 17 | } 18 | 19 | public void appendTo(@Nonnull List line); 20 | } 21 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/QEmuWatchdogOption.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * 11 | * @author shevek 12 | */ 13 | public class QEmuWatchdogOption extends AbstractQEmuOption { 14 | 15 | public static enum Model { 16 | 17 | ib700, i6300esb 18 | } 19 | 20 | public static enum Action { 21 | 22 | reset, shutdown, poweroff, pause, debug, none 23 | } 24 | private final Model model; 25 | private final Action action; 26 | 27 | public QEmuWatchdogOption(Model model, Action action) { 28 | this.model = model; 29 | this.action = action; 30 | } 31 | 32 | public QEmuWatchdogOption(Model model) { 33 | this(model, Action.none); 34 | } 35 | 36 | @Override 37 | public void appendTo(List line) { 38 | add(line, "-watchdog", model); 39 | add(line, "-watchdog-action", action); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/host/chardev/AbstractCharDevice.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec.host.chardev; 6 | 7 | import java.util.HashMap; 8 | import java.util.Map; 9 | import javax.annotation.Nonnull; 10 | 11 | /** 12 | * 13 | * @author shevek 14 | */ 15 | public abstract class AbstractCharDevice implements CharDevice { 16 | 17 | private final String name; 18 | 19 | public AbstractCharDevice(String name) { 20 | this.name = name; 21 | } 22 | 23 | @Override 24 | public String getName() { 25 | return name; 26 | } 27 | 28 | protected void addProperties(@Nonnull Map m) { 29 | } 30 | 31 | @Override 32 | public Map getProperties() { 33 | Map m = new HashMap(); 34 | addProperties(m); 35 | return m; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/host/chardev/BrailleCharDevice.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec.host.chardev; 6 | 7 | /** 8 | * 9 | * @author shevek 10 | */ 11 | public class BrailleCharDevice extends AbstractCharDevice { 12 | 13 | public BrailleCharDevice() { 14 | super("braille"); 15 | } 16 | 17 | @Override 18 | public String toString() { 19 | return getName(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/host/chardev/CharDevice.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec.host.chardev; 6 | 7 | import java.util.Map; 8 | import javax.annotation.Nonnull; 9 | 10 | /** 11 | * 12 | * @author shevek 13 | */ 14 | public interface CharDevice { 15 | 16 | @Nonnull 17 | public String getName(); 18 | 19 | @Nonnull 20 | public Map getProperties(); 21 | } 22 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/host/chardev/CustomCharDevice.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec.host.chardev; 6 | 7 | import java.util.HashMap; 8 | import java.util.Map; 9 | 10 | /** 11 | * 12 | * @author shevek 13 | */ 14 | public class CustomCharDevice extends AbstractCharDevice { 15 | 16 | public final Map properties = new HashMap(); 17 | 18 | public CustomCharDevice(String name) { 19 | super(name); 20 | } 21 | 22 | @Override 23 | protected void addProperties(Map m) { 24 | m.putAll(properties); 25 | } 26 | } -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/host/chardev/FileCharDevice.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec.host.chardev; 6 | 7 | import java.io.File; 8 | import java.util.Map; 9 | import javax.annotation.Nonnull; 10 | 11 | /** 12 | * 13 | * @author shevek 14 | */ 15 | public class FileCharDevice extends AbstractCharDevice { 16 | 17 | private final File file; 18 | 19 | public FileCharDevice(@Nonnull File file) { 20 | super("file"); 21 | this.file = file; 22 | } 23 | 24 | public FileCharDevice(@Nonnull String path) { 25 | this(new File(path)); 26 | } 27 | 28 | @Override 29 | protected void addProperties(Map m) { 30 | super.addProperties(m); 31 | m.put("path", file.getAbsolutePath()); 32 | } 33 | 34 | @Override 35 | public String toString() { 36 | return "file:" + file.getAbsolutePath(); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/host/chardev/LinuxParportCharDevice.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec.host.chardev; 6 | 7 | import java.util.Map; 8 | 9 | /** 10 | * 11 | * @author shevek 12 | */ 13 | public class LinuxParportCharDevice extends AbstractCharDevice { 14 | 15 | private final int index; 16 | 17 | public LinuxParportCharDevice(int index) { 18 | super("parallel"); 19 | this.index = index; 20 | } 21 | 22 | @Override 23 | protected void addProperties(Map m) { 24 | super.addProperties(m); 25 | m.put("path", "/dev/parport" + index); 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return "/dev/parport" + index; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/host/chardev/MsmouseCharDevice.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec.host.chardev; 6 | 7 | /** 8 | * 9 | * @author shevek 10 | */ 11 | public class MsmouseCharDevice extends AbstractCharDevice { 12 | 13 | public MsmouseCharDevice() { 14 | super("msmouse"); 15 | } 16 | 17 | @Override 18 | public String toString() { 19 | return "msmouse"; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/host/chardev/NamedPipeCharDevice.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec.host.chardev; 6 | 7 | import java.io.File; 8 | import java.util.Map; 9 | import javax.annotation.Nonnull; 10 | 11 | /** 12 | * 13 | * @author shevek 14 | */ 15 | public class NamedPipeCharDevice extends AbstractCharDevice { 16 | 17 | private final File file; 18 | 19 | public NamedPipeCharDevice(@Nonnull File file) { 20 | super("pipe"); 21 | this.file = file; 22 | } 23 | 24 | public NamedPipeCharDevice(@Nonnull String path) { 25 | this(new File(path)); 26 | } 27 | 28 | @Override 29 | protected void addProperties(Map m) { 30 | super.addProperties(m); 31 | m.put("path", file.getAbsolutePath()); 32 | } 33 | 34 | @Override 35 | public String toString() { 36 | return "pipe:" + file.getAbsolutePath(); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/host/chardev/NullCharDevice.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec.host.chardev; 6 | 7 | /** 8 | * 9 | * @author shevek 10 | */ 11 | public class NullCharDevice extends AbstractCharDevice { 12 | 13 | public NullCharDevice() { 14 | super("null"); 15 | } 16 | 17 | @Override 18 | public String toString() { 19 | return "null"; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/host/chardev/PtyCharDevice.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec.host.chardev; 6 | 7 | /** 8 | * 9 | * @author shevek 10 | */ 11 | public class PtyCharDevice extends AbstractCharDevice { 12 | 13 | public PtyCharDevice() { 14 | super("pty"); 15 | } 16 | 17 | @Override 18 | public String toString() { 19 | return "pty"; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/host/chardev/UnixStdioCharDevice.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec.host.chardev; 6 | 7 | import java.util.Map; 8 | import javax.annotation.Nonnull; 9 | 10 | /** 11 | * 12 | * @author shevek 13 | */ 14 | public class UnixStdioCharDevice extends AbstractCharDevice { 15 | 16 | public boolean signal; 17 | 18 | public UnixStdioCharDevice() { 19 | super("stdio"); 20 | } 21 | 22 | @Nonnull 23 | public UnixStdioCharDevice withSignal(boolean signal) { 24 | this.signal = signal; 25 | return this; 26 | } 27 | 28 | @Override 29 | protected void addProperties(Map m) { 30 | super.addProperties(m); 31 | m.put("signal", signal ? "on" : "off"); 32 | } 33 | 34 | @Override 35 | public String toString() { 36 | return "stdio"; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/host/chardev/package-info.java: -------------------------------------------------------------------------------- 1 | /** Character device backends. */ 2 | package org.anarres.qemu.exec.host.chardev; 3 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/host/disk/AbstractDisk.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec.host.disk; 6 | 7 | /** 8 | * 9 | * @author shevek 10 | */ 11 | public class AbstractDisk implements Disk { 12 | } 13 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/host/disk/CustomDisk.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec.host.disk; 6 | 7 | /** 8 | * 9 | * @author shevek 10 | */ 11 | public class CustomDisk extends AbstractDisk { 12 | 13 | private final String text; 14 | 15 | public CustomDisk(String text) { 16 | this.text = text; 17 | } 18 | 19 | @Override 20 | public String toString() { 21 | return text; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/host/disk/Disk.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec.host.disk; 6 | 7 | /** 8 | * 9 | * @author shevek 10 | */ 11 | public interface Disk { 12 | } 13 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/host/disk/FileDisk.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec.host.disk; 6 | 7 | import java.io.File; 8 | import javax.annotation.Nonnull; 9 | import org.anarres.qemu.image.QEmuImage; 10 | 11 | /** 12 | * 13 | * @author shevek 14 | */ 15 | public class FileDisk extends AbstractDisk { 16 | 17 | private final File file; 18 | 19 | public FileDisk(@Nonnull File file) { 20 | this.file = file; 21 | } 22 | 23 | public FileDisk(@Nonnull String path) { 24 | this(new File(path)); 25 | } 26 | 27 | public FileDisk(@Nonnull QEmuImage image) { 28 | this(image.getFile()); 29 | } 30 | 31 | @Nonnull 32 | public File getFile() { 33 | return file; 34 | } 35 | 36 | @Override 37 | public String toString() { 38 | return file.getAbsolutePath(); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/host/disk/TcpNbdDisk.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec.host.disk; 6 | 7 | import java.net.InetSocketAddress; 8 | import org.anarres.qemu.exec.host.chardev.UdpCharDevice; 9 | 10 | /** 11 | * 12 | * @author shevek 13 | */ 14 | public class TcpNbdDisk extends AbstractDisk { 15 | 16 | private final InetSocketAddress address; 17 | private final String name; 18 | 19 | public TcpNbdDisk(InetSocketAddress address, String name) { 20 | this.address = address; 21 | this.name = name; 22 | } 23 | 24 | @Override 25 | public String toString() { 26 | StringBuilder buf = new StringBuilder(); 27 | buf.append("nbd:").append(UdpCharDevice.toHostString(address)).append(':').append(address.getPort()); 28 | if (name != null) 29 | buf.append(":exportname=").append(name); 30 | return buf.toString(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/host/disk/UnixNbdDisk.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.exec.host.disk; 6 | 7 | import java.io.File; 8 | 9 | /** 10 | * 11 | * @author shevek 12 | */ 13 | public class UnixNbdDisk extends AbstractDisk { 14 | 15 | private final File file; 16 | private final String name; 17 | 18 | public UnixNbdDisk(File file, String name) { 19 | this.file = file; 20 | this.name = name; 21 | } 22 | 23 | public UnixNbdDisk(String path, String name) { 24 | this(new File(path), name); 25 | } 26 | 27 | @Override 28 | public String toString() { 29 | StringBuilder buf = new StringBuilder(); 30 | buf.append("nbd:unix:").append(file.getAbsolutePath()); 31 | if (name != null) 32 | buf.append(":exportname=").append(name); 33 | return buf.toString(); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/host/disk/package-info.java: -------------------------------------------------------------------------------- 1 | /** Disk backends. */ 2 | package org.anarres.qemu.exec.host.disk; 3 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/package-info.java: -------------------------------------------------------------------------------- 1 | /** QEmu command line and option models. */ 2 | package org.anarres.qemu.exec; 3 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/recipe/QEmuPerformanceRecipe.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package org.anarres.qemu.exec.recipe; 7 | 8 | import org.anarres.qemu.exec.QEmuCustomOption; 9 | import org.anarres.qemu.exec.QEmuDeviceOption; 10 | import org.anarres.qemu.exec.QEmuMachineOption; 11 | import org.anarres.qemu.exec.util.QEmuOptionsList; 12 | 13 | /** 14 | * Generic performance options for QEmu. 15 | * 16 | * @author shevek 17 | */ 18 | public class QEmuPerformanceRecipe extends QEmuOptionsList { 19 | 20 | public QEmuPerformanceRecipe() { 21 | add(new QEmuMachineOption().withAcceleration(QEmuMachineOption.Acceleration.kvm, QEmuMachineOption.Acceleration.tcg)); 22 | add(new QEmuDeviceOption.VirtioBalloon()); 23 | // add(new QEmuCustomOption("-global", "virtio-blk-pci.scsi=off")); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/recipe/QEmuRecipe.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package org.anarres.qemu.exec.recipe; 7 | 8 | import org.anarres.qemu.exec.QEmuOption; 9 | 10 | /** 11 | * A convenient wrapper for a collection of related {@link QEmuOption}s. 12 | * 13 | * @author shevek 14 | */ 15 | public interface QEmuRecipe extends QEmuOption { 16 | } 17 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/recipe/package-info.java: -------------------------------------------------------------------------------- 1 | /** Convenience recipes for related option-sets. */ 2 | package org.anarres.qemu.exec.recipe; 3 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/vm/device/QEmuDevice.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package org.anarres.qemu.exec.vm.device; 7 | 8 | import org.anarres.qemu.exec.QEmuDeviceOption; 9 | import org.anarres.qemu.exec.QEmuDisplayOption; 10 | import org.anarres.qemu.exec.QEmuDriveOption; 11 | import org.anarres.qemu.exec.QEmuNetdevOption; 12 | import org.anarres.qemu.exec.QEmuOption; 13 | 14 | /** 15 | * A QEmuDevice is a device frontend visible to the VM on a bus. 16 | * 17 | * Many devices are paired with device backends expressed via 18 | * {@link QEmuDriveOption}, {@link QEmuNetdevOption}, 19 | * {@link QEmuDisplayOption}, etc. 20 | * 21 | * This interface is a convenience for documentation and may go away or 22 | * be replaced. 23 | * 24 | * @see QEmuDeviceOption 25 | * @author shevek 26 | */ 27 | // TODO: Replace this with QEmuDeviceOption? 28 | public interface QEmuDevice extends QEmuOption { 29 | 30 | } 31 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/vm/device/QEmuVgaDevice.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package org.anarres.qemu.exec.vm.device; 7 | 8 | import org.anarres.qemu.exec.QEmuDeviceOption; 9 | 10 | /** 11 | * 12 | * @author shevek 13 | */ 14 | public interface QEmuVgaDevice extends QEmuDevice { 15 | 16 | public static class CirrusPci extends QEmuDeviceOption.Pci implements QEmuVgaDevice { 17 | 18 | public CirrusPci() { 19 | super("cirrus-vga"); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /qemu-exec/src/main/java/org/anarres/qemu/exec/vm/device/package-info.java: -------------------------------------------------------------------------------- 1 | /** Device frontends, generally extending {@link org.anarres.qemu.exec.QEmuDeviceOption}. */ 2 | package org.anarres.qemu.exec.vm.device; 3 | -------------------------------------------------------------------------------- /qemu-image/src/main/java/org/anarres/qemu/image/QEmuImageCheck.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package org.anarres.qemu.image; 7 | 8 | import com.fasterxml.jackson.annotation.JsonProperty; 9 | import java.io.File; 10 | 11 | /** 12 | * 13 | * @author shevek 14 | */ 15 | public class QEmuImageCheck { 16 | 17 | @JsonProperty("filename") 18 | public File filename; 19 | @JsonProperty("format") 20 | public QEmuImageFormat format; 21 | @JsonProperty("image-end-offset") 22 | public long imageEndOffset; 23 | @JsonProperty("total-clusters") 24 | public int totalClusters; 25 | @JsonProperty("check-errors") 26 | public int checkErrors; 27 | } 28 | -------------------------------------------------------------------------------- /qemu-image/src/main/java/org/anarres/qemu/image/package-info.java: -------------------------------------------------------------------------------- 1 | /** Utilities for manipulating QEmu images using qemu-img. */ 2 | package org.anarres.qemu.image; -------------------------------------------------------------------------------- /qemu-manager/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shevek/qemu-java/ef4cc2c991df36d5f450b49ec8e341f6ed3362f2/qemu-manager/build.gradle -------------------------------------------------------------------------------- /qemu-qapi/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shevek/qemu-java/ef4cc2c991df36d5f450b49ec8e341f6ed3362f2/qemu-qapi/build.gradle -------------------------------------------------------------------------------- /qemu-qapi/src/generate/java/org/anarres/qemu/qapi/generator/SchemaModel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.qapi.generator; 6 | 7 | import java.util.HashMap; 8 | import java.util.Map; 9 | import org.anarres.qemu.qapi.generator.model.QApiElementDescriptor; 10 | 11 | /** 12 | * 13 | * @author shevek 14 | */ 15 | public class SchemaModel { 16 | 17 | public final Map elements = new HashMap(); 18 | } 19 | -------------------------------------------------------------------------------- /qemu-qapi/src/generate/java/org/anarres/qemu/qapi/generator/model/AbstractQApiStructDescriptor.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.generator.model; 2 | 3 | import com.google.common.base.MoreObjects; 4 | 5 | import java.util.Map; 6 | 7 | /** 8 | * @author dsmather 9 | */ 10 | public abstract class AbstractQApiStructDescriptor extends AbstractQApiTypeDescriptor { 11 | 12 | @Override 13 | public String getSuperClassName() { 14 | if (base instanceof Map) 15 | return getName() + "Base"; 16 | return super.getSuperClassName(); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /qemu-qapi/src/generate/java/org/anarres/qemu/qapi/generator/model/AbstractQApiUnionDescriptor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package org.anarres.qemu.qapi.generator.model; 7 | 8 | /** 9 | * 10 | * @author shevek 11 | */ 12 | public abstract class AbstractQApiUnionDescriptor extends AbstractQApiStructDescriptor { 13 | 14 | @Override 15 | public String getTemplateName() { 16 | return "union"; 17 | } 18 | 19 | public abstract boolean isEnumDiscriminated(); 20 | 21 | public abstract boolean isFieldDiscriminated(); 22 | 23 | public abstract boolean isTypeDiscriminated(); 24 | } 25 | -------------------------------------------------------------------------------- /qemu-qapi/src/generate/java/org/anarres/qemu/qapi/generator/model/QApiIncludeDescriptor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.qapi.generator.model; 6 | 7 | /** 8 | * 9 | * @author shevek 10 | */ 11 | public class QApiIncludeDescriptor { 12 | 13 | public String include; 14 | } 15 | -------------------------------------------------------------------------------- /qemu-qapi/src/generate/java/org/anarres/qemu/qapi/generator/model/QApiStructDescriptor.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.generator.model; 2 | 3 | import com.google.common.base.MoreObjects; 4 | import com.google.gson.annotations.SerializedName; 5 | 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * @author dsmather 10 | */ 11 | public class QApiStructDescriptor extends AbstractQApiStructDescriptor { 12 | 13 | @SerializedName("struct") 14 | public String name; 15 | 16 | 17 | @Nonnull 18 | public String getName() { 19 | return name; 20 | } 21 | 22 | @Nonnull 23 | public String getTemplateName() { 24 | return "struct"; 25 | } 26 | 27 | @Override 28 | public String toString() { 29 | return MoreObjects.toStringHelper(this) 30 | .add("name", getName()) 31 | .add("data", data) 32 | .add("innerTypes", innerTypes) 33 | .add("fields", fields) 34 | .add("base", base) 35 | .toString(); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /qemu-qapi/src/generate/resources/velocity/enum.vm: -------------------------------------------------------------------------------- 1 | package $packageName; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | #parse("/velocity/header.vm") 9 | // $element 10 | public enum $element.className { 11 | #foreach ($field in $element.fields) 12 | ## // @JsonProperty("$field.serializedName") 13 | ${field.name}("$field.serializedName"), 14 | #end 15 | __UNKNOWN(""); 16 | 17 | private final java.lang.String jsonValue; 18 | 19 | /* pp */ ${element.className}(@Nonnull java.lang.String jsonValue) { 20 | this.jsonValue = jsonValue; 21 | } 22 | 23 | @JsonValue 24 | public java.lang.String getJsonValue() { 25 | return jsonValue; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/generate/resources/velocity/event.vm: -------------------------------------------------------------------------------- 1 | package $packageName; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | #parse("/velocity/header.vm") 10 | // $element 11 | public class $element.className extends QApiEvent { 12 | 13 | #if (!$element.fields.isEmpty()) 14 | public static class Data { 15 | #foreach ($field in $element.fields) 16 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 17 | @JsonProperty("$field.serializedName") 18 | $field.annotations 19 | public $field.typeName $field.name; 20 | #end 21 | } 22 | 23 | @JsonProperty("data") 24 | public Data data; 25 | #end 26 | } 27 | -------------------------------------------------------------------------------- /qemu-qapi/src/generate/resources/velocity/header.vm: -------------------------------------------------------------------------------- 1 | /** 2 | * Autogenerated class. 3 | * 4 | *
$element
5 | */ 6 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/ACPISlotType.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=ACPISlotType, data=[DIMM, CPU], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=ACPISlotType, data=[DIMM, CPU], fields=null} 14 | public enum ACPISlotType { 15 | DIMM("DIMM"), 16 | CPU("CPU"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ ACPISlotType(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/AcpiDeviceOstEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=ACPI_DEVICE_OST, data={info=ACPIOSTInfo}}
13 | */ 14 | // QApiEventDescriptor{name=ACPI_DEVICE_OST, data={info=ACPIOSTInfo}} 15 | public class AcpiDeviceOstEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("info") 20 | @Nonnull 21 | public ACPIOSTInfo info; 22 | } 23 | 24 | @JsonProperty("data") 25 | public Data data; 26 | } 27 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/ActionCompletionMode.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=ActionCompletionMode, data=[individual, grouped], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=ActionCompletionMode, data=[individual, grouped], fields=null} 14 | public enum ActionCompletionMode { 15 | individual("individual"), 16 | grouped("grouped"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ ActionCompletionMode(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/BalloonChangeEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=BALLOON_CHANGE, data={actual=int}}
13 | */ 14 | // QApiEventDescriptor{name=BALLOON_CHANGE, data={actual=int}} 15 | public class BalloonChangeEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("actual") 20 | @Nonnull 21 | public long actual; 22 | } 23 | 24 | @JsonProperty("data") 25 | public Data data; 26 | } 27 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/BiosAtaTranslation.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=BiosAtaTranslation, data=[auto, none, lba, large, rechs], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=BiosAtaTranslation, data=[auto, none, lba, large, rechs], fields=null} 14 | public enum BiosAtaTranslation { 15 | auto("auto"), 16 | none("none"), 17 | lba("lba"), 18 | large("large"), 19 | rechs("rechs"), 20 | __UNKNOWN(""); 21 | 22 | private final java.lang.String jsonValue; 23 | 24 | /* pp */ BiosAtaTranslation(@Nonnull java.lang.String jsonValue) { 25 | this.jsonValue = jsonValue; 26 | } 27 | 28 | @JsonValue 29 | public java.lang.String getJsonValue() { 30 | return jsonValue; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/BlockDeviceIoStatus.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=BlockDeviceIoStatus, data=[ok, failed, nospace], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=BlockDeviceIoStatus, data=[ok, failed, nospace], fields=null} 14 | public enum BlockDeviceIoStatus { 15 | ok("ok"), 16 | failed("failed"), 17 | nospace("nospace"), 18 | __UNKNOWN(""); 19 | 20 | private final java.lang.String jsonValue; 21 | 22 | /* pp */ BlockDeviceIoStatus(@Nonnull java.lang.String jsonValue) { 23 | this.jsonValue = jsonValue; 24 | } 25 | 26 | @JsonValue 27 | public java.lang.String getJsonValue() { 28 | return jsonValue; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/BlockErrorAction.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=BlockErrorAction, data=[ignore, report, stop], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=BlockErrorAction, data=[ignore, report, stop], fields=null} 14 | public enum BlockErrorAction { 15 | ignore("ignore"), 16 | report("report"), 17 | stop("stop"), 18 | __UNKNOWN(""); 19 | 20 | private final java.lang.String jsonValue; 21 | 22 | /* pp */ BlockErrorAction(@Nonnull java.lang.String jsonValue) { 23 | this.jsonValue = jsonValue; 24 | } 25 | 26 | @JsonValue 27 | public java.lang.String getJsonValue() { 28 | return jsonValue; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/BlockJobPendingEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=BLOCK_JOB_PENDING, data={type=BlockJobType, id=str}}
13 | */ 14 | // QApiEventDescriptor{name=BLOCK_JOB_PENDING, data={type=BlockJobType, id=str}} 15 | public class BlockJobPendingEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("type") 20 | @Nonnull 21 | public BlockJobType type; 22 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 23 | @JsonProperty("id") 24 | @Nonnull 25 | public java.lang.String id; 26 | } 27 | 28 | @JsonProperty("data") 29 | public Data data; 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/BlockJobType.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=BlockJobType, data=[commit, stream, mirror, backup], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=BlockJobType, data=[commit, stream, mirror, backup], fields=null} 14 | public enum BlockJobType { 15 | commit("commit"), 16 | stream("stream"), 17 | mirror("mirror"), 18 | backup("backup"), 19 | __UNKNOWN(""); 20 | 21 | private final java.lang.String jsonValue; 22 | 23 | /* pp */ BlockJobType(@Nonnull java.lang.String jsonValue) { 24 | this.jsonValue = jsonValue; 25 | } 26 | 27 | @JsonValue 28 | public java.lang.String getJsonValue() { 29 | return jsonValue; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/BlockJobVerb.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=BlockJobVerb, data=[cancel, pause, resume, set-speed, complete, dismiss, finalize], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=BlockJobVerb, data=[cancel, pause, resume, set-speed, complete, dismiss, finalize], fields=null} 14 | public enum BlockJobVerb { 15 | cancel("cancel"), 16 | pause("pause"), 17 | resume("resume"), 18 | set_speed("set-speed"), 19 | complete("complete"), 20 | dismiss("dismiss"), 21 | finalize("finalize"), 22 | __UNKNOWN(""); 23 | 24 | private final java.lang.String jsonValue; 25 | 26 | /* pp */ BlockJobVerb(@Nonnull java.lang.String jsonValue) { 27 | this.jsonValue = jsonValue; 28 | } 29 | 30 | @JsonValue 31 | public java.lang.String getJsonValue() { 32 | return jsonValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/BlockdevAddCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=blockdev-add, returns=null, data=BlockdevOptions}
14 | */ 15 | // QApiCommandDescriptor{name=blockdev-add, returns=null, data=BlockdevOptions} 16 | public class BlockdevAddCommand extends QApiCommand { 17 | 18 | /** Response to a BlockdevAddCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new BlockdevAddCommand. */ 23 | public BlockdevAddCommand(@Nonnull BlockdevOptions argument) { 24 | super("blockdev-add", Response.class, argument); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/BlockdevAioOptions.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=BlockdevAioOptions, data=[threads, native], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=BlockdevAioOptions, data=[threads, native], fields=null} 14 | public enum BlockdevAioOptions { 15 | threads("threads"), 16 | _native("native"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ BlockdevAioOptions(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/BlockdevBackupCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=blockdev-backup, returns=null, data=BlockdevBackup}
14 | */ 15 | // QApiCommandDescriptor{name=blockdev-backup, returns=null, data=BlockdevBackup} 16 | public class BlockdevBackupCommand extends QApiCommand { 17 | 18 | /** Response to a BlockdevBackupCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new BlockdevBackupCommand. */ 23 | public BlockdevBackupCommand(@Nonnull BlockdevBackup argument) { 24 | super("blockdev-backup", Response.class, argument); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/BlockdevChangeReadOnlyMode.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=BlockdevChangeReadOnlyMode, data=[retain, read-only, read-write], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=BlockdevChangeReadOnlyMode, data=[retain, read-only, read-write], fields=null} 14 | public enum BlockdevChangeReadOnlyMode { 15 | retain("retain"), 16 | read_only("read-only"), 17 | read_write("read-write"), 18 | __UNKNOWN(""); 19 | 20 | private final java.lang.String jsonValue; 21 | 22 | /* pp */ BlockdevChangeReadOnlyMode(@Nonnull java.lang.String jsonValue) { 23 | this.jsonValue = jsonValue; 24 | } 25 | 26 | @JsonValue 27 | public java.lang.String getJsonValue() { 28 | return jsonValue; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/BlockdevDetectZeroesOptions.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=BlockdevDetectZeroesOptions, data=[off, on, unmap], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=BlockdevDetectZeroesOptions, data=[off, on, unmap], fields=null} 14 | public enum BlockdevDetectZeroesOptions { 15 | off("off"), 16 | on("on"), 17 | unmap("unmap"), 18 | __UNKNOWN(""); 19 | 20 | private final java.lang.String jsonValue; 21 | 22 | /* pp */ BlockdevDetectZeroesOptions(@Nonnull java.lang.String jsonValue) { 23 | this.jsonValue = jsonValue; 24 | } 25 | 26 | @JsonValue 27 | public java.lang.String getJsonValue() { 28 | return jsonValue; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/BlockdevDiscardOptions.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=BlockdevDiscardOptions, data=[ignore, unmap], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=BlockdevDiscardOptions, data=[ignore, unmap], fields=null} 14 | public enum BlockdevDiscardOptions { 15 | ignore("ignore"), 16 | unmap("unmap"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ BlockdevDiscardOptions(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/BlockdevOnError.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=BlockdevOnError, data=[report, ignore, enospc, stop, auto], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=BlockdevOnError, data=[report, ignore, enospc, stop, auto], fields=null} 14 | public enum BlockdevOnError { 15 | report("report"), 16 | ignore("ignore"), 17 | enospc("enospc"), 18 | stop("stop"), 19 | auto("auto"), 20 | __UNKNOWN(""); 21 | 22 | private final java.lang.String jsonValue; 23 | 24 | /* pp */ BlockdevOnError(@Nonnull java.lang.String jsonValue) { 25 | this.jsonValue = jsonValue; 26 | } 27 | 28 | @JsonValue 29 | public java.lang.String getJsonValue() { 30 | return jsonValue; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/BlockdevQcow2EncryptionFormat.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=BlockdevQcow2EncryptionFormat, data=[aes, luks], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=BlockdevQcow2EncryptionFormat, data=[aes, luks], fields=null} 14 | public enum BlockdevQcow2EncryptionFormat { 15 | aes("aes"), 16 | luks("luks"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ BlockdevQcow2EncryptionFormat(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/BlockdevQcow2Version.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=BlockdevQcow2Version, data=[v2, v3], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=BlockdevQcow2Version, data=[v2, v3], fields=null} 14 | public enum BlockdevQcow2Version { 15 | v2("v2"), 16 | v3("v3"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ BlockdevQcow2Version(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/BlockdevQcowEncryptionFormat.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=BlockdevQcowEncryptionFormat, data=[aes], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=BlockdevQcowEncryptionFormat, data=[aes], fields=null} 14 | public enum BlockdevQcowEncryptionFormat { 15 | aes("aes"), 16 | __UNKNOWN(""); 17 | 18 | private final java.lang.String jsonValue; 19 | 20 | /* pp */ BlockdevQcowEncryptionFormat(@Nonnull java.lang.String jsonValue) { 21 | this.jsonValue = jsonValue; 22 | } 23 | 24 | @JsonValue 25 | public java.lang.String getJsonValue() { 26 | return jsonValue; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/BlockdevSnapshotCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=blockdev-snapshot, returns=null, data=BlockdevSnapshot}
14 | */ 15 | // QApiCommandDescriptor{name=blockdev-snapshot, returns=null, data=BlockdevSnapshot} 16 | public class BlockdevSnapshotCommand extends QApiCommand { 17 | 18 | /** Response to a BlockdevSnapshotCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new BlockdevSnapshotCommand. */ 23 | public BlockdevSnapshotCommand(@Nonnull BlockdevSnapshot argument) { 24 | super("blockdev-snapshot", Response.class, argument); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/BlockdevVhdxSubformat.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=BlockdevVhdxSubformat, data=[dynamic, fixed], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=BlockdevVhdxSubformat, data=[dynamic, fixed], fields=null} 14 | public enum BlockdevVhdxSubformat { 15 | dynamic("dynamic"), 16 | fixed("fixed"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ BlockdevVhdxSubformat(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/BlockdevVpcSubformat.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=BlockdevVpcSubformat, data=[dynamic, fixed], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=BlockdevVpcSubformat, data=[dynamic, fixed], fields=null} 14 | public enum BlockdevVpcSubformat { 15 | dynamic("dynamic"), 16 | fixed("fixed"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ BlockdevVpcSubformat(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/COLOMode.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=COLOMode, data=[unknown, primary, secondary], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=COLOMode, data=[unknown, primary, secondary], fields=null} 14 | public enum COLOMode { 15 | unknown("unknown"), 16 | primary("primary"), 17 | secondary("secondary"), 18 | __UNKNOWN(""); 19 | 20 | private final java.lang.String jsonValue; 21 | 22 | /* pp */ COLOMode(@Nonnull java.lang.String jsonValue) { 23 | this.jsonValue = jsonValue; 24 | } 25 | 26 | @JsonValue 27 | public java.lang.String getJsonValue() { 28 | return jsonValue; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/CommandDropReason.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=CommandDropReason, data=[queue-full], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=CommandDropReason, data=[queue-full], fields=null} 14 | public enum CommandDropReason { 15 | queue_full("queue-full"), 16 | __UNKNOWN(""); 17 | 18 | private final java.lang.String jsonValue; 19 | 20 | /* pp */ CommandDropReason(@Nonnull java.lang.String jsonValue) { 21 | this.jsonValue = jsonValue; 22 | } 23 | 24 | @JsonValue 25 | public java.lang.String getJsonValue() { 26 | return jsonValue; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/CommandDroppedEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=COMMAND_DROPPED, data={id=any, reason=CommandDropReason}}
13 | */ 14 | // QApiEventDescriptor{name=COMMAND_DROPPED, data={id=any, reason=CommandDropReason}} 15 | public class CommandDroppedEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("id") 20 | @Nonnull 21 | public java.lang.Object id; 22 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 23 | @JsonProperty("reason") 24 | @Nonnull 25 | public CommandDropReason reason; 26 | } 27 | 28 | @JsonProperty("data") 29 | public Data data; 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/CommandLineParameterType.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=CommandLineParameterType, data=[string, boolean, number, size], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=CommandLineParameterType, data=[string, boolean, number, size], fields=null} 14 | public enum CommandLineParameterType { 15 | string("string"), 16 | _boolean("boolean"), 17 | number("number"), 18 | size("size"), 19 | __UNKNOWN(""); 20 | 21 | private final java.lang.String jsonValue; 22 | 23 | /* pp */ CommandLineParameterType(@Nonnull java.lang.String jsonValue) { 24 | this.jsonValue = jsonValue; 25 | } 26 | 27 | @JsonValue 28 | public java.lang.String getJsonValue() { 29 | return jsonValue; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/ContCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=cont, returns=null, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=cont, returns=null, data=null} 16 | public class ContCommand extends QApiCommand { 17 | 18 | /** Response to a ContCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new ContCommand. */ 23 | public ContCommand() { 24 | super("cont", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/CpuInfoArch.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=CpuInfoArch, data=[x86, sparc, ppc, mips, tricore, s390, riscv, other], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=CpuInfoArch, data=[x86, sparc, ppc, mips, tricore, s390, riscv, other], fields=null} 14 | public enum CpuInfoArch { 15 | x86("x86"), 16 | sparc("sparc"), 17 | ppc("ppc"), 18 | mips("mips"), 19 | tricore("tricore"), 20 | s390("s390"), 21 | riscv("riscv"), 22 | other("other"), 23 | __UNKNOWN(""); 24 | 25 | private final java.lang.String jsonValue; 26 | 27 | /* pp */ CpuInfoArch(@Nonnull java.lang.String jsonValue) { 28 | this.jsonValue = jsonValue; 29 | } 30 | 31 | @JsonValue 32 | public java.lang.String getJsonValue() { 33 | return jsonValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/CpuModelCompareResult.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=CpuModelCompareResult, data=[incompatible, identical, superset, subset], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=CpuModelCompareResult, data=[incompatible, identical, superset, subset], fields=null} 14 | public enum CpuModelCompareResult { 15 | incompatible("incompatible"), 16 | identical("identical"), 17 | superset("superset"), 18 | subset("subset"), 19 | __UNKNOWN(""); 20 | 21 | private final java.lang.String jsonValue; 22 | 23 | /* pp */ CpuModelCompareResult(@Nonnull java.lang.String jsonValue) { 24 | this.jsonValue = jsonValue; 25 | } 26 | 27 | @JsonValue 28 | public java.lang.String getJsonValue() { 29 | return jsonValue; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/CpuModelExpansionType.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=CpuModelExpansionType, data=[static, full], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=CpuModelExpansionType, data=[static, full], fields=null} 14 | public enum CpuModelExpansionType { 15 | _static("static"), 16 | full("full"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ CpuModelExpansionType(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/CpuS390State.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=CpuS390State, data=[uninitialized, stopped, check-stop, operating, load], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=CpuS390State, data=[uninitialized, stopped, check-stop, operating, load], fields=null} 14 | public enum CpuS390State { 15 | uninitialized("uninitialized"), 16 | stopped("stopped"), 17 | check_stop("check-stop"), 18 | operating("operating"), 19 | load("load"), 20 | __UNKNOWN(""); 21 | 22 | private final java.lang.String jsonValue; 23 | 24 | /* pp */ CpuS390State(@Nonnull java.lang.String jsonValue) { 25 | this.jsonValue = jsonValue; 26 | } 27 | 28 | @JsonValue 29 | public java.lang.String getJsonValue() { 30 | return jsonValue; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/DataFormat.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=DataFormat, data=[utf8, base64], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=DataFormat, data=[utf8, base64], fields=null} 14 | public enum DataFormat { 15 | utf8("utf8"), 16 | base64("base64"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ DataFormat(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/DeviceDeletedEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=DEVICE_DELETED, data={*device=str, path=str}}
13 | */ 14 | // QApiEventDescriptor{name=DEVICE_DELETED, data={*device=str, path=str}} 15 | public class DeviceDeletedEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("device") 20 | @CheckForNull 21 | public java.lang.String device; 22 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 23 | @JsonProperty("path") 24 | @Nonnull 25 | public java.lang.String path; 26 | } 27 | 28 | @JsonProperty("data") 29 | public Data data; 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/DirtyBitmapStatus.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=DirtyBitmapStatus, data=[active, disabled, frozen, locked], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=DirtyBitmapStatus, data=[active, disabled, frozen, locked], fields=null} 14 | public enum DirtyBitmapStatus { 15 | active("active"), 16 | disabled("disabled"), 17 | frozen("frozen"), 18 | locked("locked"), 19 | __UNKNOWN(""); 20 | 21 | private final java.lang.String jsonValue; 22 | 23 | /* pp */ DirtyBitmapStatus(@Nonnull java.lang.String jsonValue) { 24 | this.jsonValue = jsonValue; 25 | } 26 | 27 | @JsonValue 28 | public java.lang.String getJsonValue() { 29 | return jsonValue; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/DisplayType.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=DisplayType, data=[default, none, gtk, sdl, egl-headless, curses, cocoa], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=DisplayType, data=[default, none, gtk, sdl, egl-headless, curses, cocoa], fields=null} 14 | public enum DisplayType { 15 | _default("default"), 16 | none("none"), 17 | gtk("gtk"), 18 | sdl("sdl"), 19 | egl_headless("egl-headless"), 20 | curses("curses"), 21 | cocoa("cocoa"), 22 | __UNKNOWN(""); 23 | 24 | private final java.lang.String jsonValue; 25 | 26 | /* pp */ DisplayType(@Nonnull java.lang.String jsonValue) { 27 | this.jsonValue = jsonValue; 28 | } 29 | 30 | @JsonValue 31 | public java.lang.String getJsonValue() { 32 | return jsonValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/DriveBackupCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=drive-backup, returns=null, data=DriveBackup}
14 | */ 15 | // QApiCommandDescriptor{name=drive-backup, returns=null, data=DriveBackup} 16 | public class DriveBackupCommand extends QApiCommand { 17 | 18 | /** Response to a DriveBackupCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new DriveBackupCommand. */ 23 | public DriveBackupCommand(@Nonnull DriveBackup argument) { 24 | super("drive-backup", Response.class, argument); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/DriveMirrorCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=drive-mirror, returns=null, data=DriveMirror}
14 | */ 15 | // QApiCommandDescriptor{name=drive-mirror, returns=null, data=DriveMirror} 16 | public class DriveMirrorCommand extends QApiCommand { 17 | 18 | /** Response to a DriveMirrorCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new DriveMirrorCommand. */ 23 | public DriveMirrorCommand(@Nonnull DriveMirror argument) { 24 | super("drive-mirror", Response.class, argument); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/DumpCompletedEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=DUMP_COMPLETED, data={result=DumpQueryResult, *error=str}}
13 | */ 14 | // QApiEventDescriptor{name=DUMP_COMPLETED, data={result=DumpQueryResult, *error=str}} 15 | public class DumpCompletedEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("result") 20 | @Nonnull 21 | public DumpQueryResult result; 22 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 23 | @JsonProperty("error") 24 | @CheckForNull 25 | public java.lang.String error; 26 | } 27 | 28 | @JsonProperty("data") 29 | public Data data; 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/DumpGuestMemoryFormat.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=DumpGuestMemoryFormat, data=[elf, kdump-zlib, kdump-lzo, kdump-snappy], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=DumpGuestMemoryFormat, data=[elf, kdump-zlib, kdump-lzo, kdump-snappy], fields=null} 14 | public enum DumpGuestMemoryFormat { 15 | elf("elf"), 16 | kdump_zlib("kdump-zlib"), 17 | kdump_lzo("kdump-lzo"), 18 | kdump_snappy("kdump-snappy"), 19 | __UNKNOWN(""); 20 | 21 | private final java.lang.String jsonValue; 22 | 23 | /* pp */ DumpGuestMemoryFormat(@Nonnull java.lang.String jsonValue) { 24 | this.jsonValue = jsonValue; 25 | } 26 | 27 | @JsonValue 28 | public java.lang.String getJsonValue() { 29 | return jsonValue; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/DumpStatus.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=DumpStatus, data=[none, active, completed, failed], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=DumpStatus, data=[none, active, completed, failed], fields=null} 14 | public enum DumpStatus { 15 | none("none"), 16 | active("active"), 17 | completed("completed"), 18 | failed("failed"), 19 | __UNKNOWN(""); 20 | 21 | private final java.lang.String jsonValue; 22 | 23 | /* pp */ DumpStatus(@Nonnull java.lang.String jsonValue) { 24 | this.jsonValue = jsonValue; 25 | } 26 | 27 | @JsonValue 28 | public java.lang.String getJsonValue() { 29 | return jsonValue; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/FailoverStatus.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=FailoverStatus, data=[none, require, active, completed, relaunch], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=FailoverStatus, data=[none, require, active, completed, relaunch], fields=null} 14 | public enum FailoverStatus { 15 | none("none"), 16 | require("require"), 17 | active("active"), 18 | completed("completed"), 19 | relaunch("relaunch"), 20 | __UNKNOWN(""); 21 | 22 | private final java.lang.String jsonValue; 23 | 24 | /* pp */ FailoverStatus(@Nonnull java.lang.String jsonValue) { 25 | this.jsonValue = jsonValue; 26 | } 27 | 28 | @JsonValue 29 | public java.lang.String getJsonValue() { 30 | return jsonValue; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/FloppyDriveType.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=FloppyDriveType, data=[144, 288, 120, none, auto], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=FloppyDriveType, data=[144, 288, 120, none, auto], fields=null} 14 | public enum FloppyDriveType { 15 | VAL_144("144"), 16 | VAL_288("288"), 17 | VAL_120("120"), 18 | none("none"), 19 | auto("auto"), 20 | __UNKNOWN(""); 21 | 22 | private final java.lang.String jsonValue; 23 | 24 | /* pp */ FloppyDriveType(@Nonnull java.lang.String jsonValue) { 25 | this.jsonValue = jsonValue; 26 | } 27 | 28 | @JsonValue 29 | public java.lang.String getJsonValue() { 30 | return jsonValue; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/GuestPanicAction.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=GuestPanicAction, data=[pause, poweroff], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=GuestPanicAction, data=[pause, poweroff], fields=null} 14 | public enum GuestPanicAction { 15 | pause("pause"), 16 | poweroff("poweroff"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ GuestPanicAction(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/GuestPanicInformationType.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=GuestPanicInformationType, data=[hyper-v, s390], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=GuestPanicInformationType, data=[hyper-v, s390], fields=null} 14 | public enum GuestPanicInformationType { 15 | hyper_v("hyper-v"), 16 | s390("s390"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ GuestPanicInformationType(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/GuestPanickedEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=GUEST_PANICKED, data={action=GuestPanicAction, *info=GuestPanicInformation}}
13 | */ 14 | // QApiEventDescriptor{name=GUEST_PANICKED, data={action=GuestPanicAction, *info=GuestPanicInformation}} 15 | public class GuestPanickedEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("action") 20 | @Nonnull 21 | public GuestPanicAction action; 22 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 23 | @JsonProperty("info") 24 | @CheckForNull 25 | public GuestPanicInformation info; 26 | } 27 | 28 | @JsonProperty("data") 29 | public Data data; 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/HostMemPolicy.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=HostMemPolicy, data=[default, preferred, bind, interleave], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=HostMemPolicy, data=[default, preferred, bind, interleave], fields=null} 14 | public enum HostMemPolicy { 15 | _default("default"), 16 | preferred("preferred"), 17 | bind("bind"), 18 | interleave("interleave"), 19 | __UNKNOWN(""); 20 | 21 | private final java.lang.String jsonValue; 22 | 23 | /* pp */ HostMemPolicy(@Nonnull java.lang.String jsonValue) { 24 | this.jsonValue = jsonValue; 25 | } 26 | 27 | @JsonValue 28 | public java.lang.String getJsonValue() { 29 | return jsonValue; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/InjectNmiCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=inject-nmi, returns=null, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=inject-nmi, returns=null, data=null} 16 | public class InjectNmiCommand extends QApiCommand { 17 | 18 | /** Response to a InjectNmiCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new InjectNmiCommand. */ 23 | public InjectNmiCommand() { 24 | super("inject-nmi", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/InputAxis.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=InputAxis, data=[x, y], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=InputAxis, data=[x, y], fields=null} 14 | public enum InputAxis { 15 | x("x"), 16 | y("y"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ InputAxis(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/InputButton.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=InputButton, data=[left, middle, right, wheel-up, wheel-down, side, extra], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=InputButton, data=[left, middle, right, wheel-up, wheel-down, side, extra], fields=null} 14 | public enum InputButton { 15 | left("left"), 16 | middle("middle"), 17 | right("right"), 18 | wheel_up("wheel-up"), 19 | wheel_down("wheel-down"), 20 | side("side"), 21 | extra("extra"), 22 | __UNKNOWN(""); 23 | 24 | private final java.lang.String jsonValue; 25 | 26 | /* pp */ InputButton(@Nonnull java.lang.String jsonValue) { 27 | this.jsonValue = jsonValue; 28 | } 29 | 30 | @JsonValue 31 | public java.lang.String getJsonValue() { 32 | return jsonValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/IoOperationType.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=IoOperationType, data=[read, write], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=IoOperationType, data=[read, write], fields=null} 14 | public enum IoOperationType { 15 | read("read"), 16 | write("write"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ IoOperationType(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/IscsiHeaderDigest.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=IscsiHeaderDigest, data=[crc32c, none, crc32c-none, none-crc32c], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=IscsiHeaderDigest, data=[crc32c, none, crc32c-none, none-crc32c], fields=null} 14 | public enum IscsiHeaderDigest { 15 | crc32c("crc32c"), 16 | none("none"), 17 | crc32c_none("crc32c-none"), 18 | none_crc32c("none-crc32c"), 19 | __UNKNOWN(""); 20 | 21 | private final java.lang.String jsonValue; 22 | 23 | /* pp */ IscsiHeaderDigest(@Nonnull java.lang.String jsonValue) { 24 | this.jsonValue = jsonValue; 25 | } 26 | 27 | @JsonValue 28 | public java.lang.String getJsonValue() { 29 | return jsonValue; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/IscsiTransport.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=IscsiTransport, data=[tcp, iser], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=IscsiTransport, data=[tcp, iser], fields=null} 14 | public enum IscsiTransport { 15 | tcp("tcp"), 16 | iser("iser"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ IscsiTransport(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/JSONType.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=JSONType, data=[string, number, int, boolean, null, object, array, value], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=JSONType, data=[string, number, int, boolean, null, object, array, value], fields=null} 14 | public enum JSONType { 15 | string("string"), 16 | number("number"), 17 | _int("int"), 18 | _boolean("boolean"), 19 | _null("null"), 20 | object("object"), 21 | array("array"), 22 | value("value"), 23 | __UNKNOWN(""); 24 | 25 | private final java.lang.String jsonValue; 26 | 27 | /* pp */ JSONType(@Nonnull java.lang.String jsonValue) { 28 | this.jsonValue = jsonValue; 29 | } 30 | 31 | @JsonValue 32 | public java.lang.String getJsonValue() { 33 | return jsonValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/LostTickPolicy.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=LostTickPolicy, data=[discard, delay, merge, slew], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=LostTickPolicy, data=[discard, delay, merge, slew], fields=null} 14 | public enum LostTickPolicy { 15 | discard("discard"), 16 | delay("delay"), 17 | merge("merge"), 18 | slew("slew"), 19 | __UNKNOWN(""); 20 | 21 | private final java.lang.String jsonValue; 22 | 23 | /* pp */ LostTickPolicy(@Nonnull java.lang.String jsonValue) { 24 | this.jsonValue = jsonValue; 25 | } 26 | 27 | @JsonValue 28 | public java.lang.String getJsonValue() { 29 | return jsonValue; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/MemUnplugErrorEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=MEM_UNPLUG_ERROR, data={device=str, msg=str}}
13 | */ 14 | // QApiEventDescriptor{name=MEM_UNPLUG_ERROR, data={device=str, msg=str}} 15 | public class MemUnplugErrorEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("device") 20 | @Nonnull 21 | public java.lang.String device; 22 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 23 | @JsonProperty("msg") 24 | @Nonnull 25 | public java.lang.String msg; 26 | } 27 | 28 | @JsonProperty("data") 29 | public Data data; 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/MigrateCancelCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=migrate_cancel, returns=null, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=migrate_cancel, returns=null, data=null} 16 | public class MigrateCancelCommand extends QApiCommand { 17 | 18 | /** Response to a MigrateCancelCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new MigrateCancelCommand. */ 23 | public MigrateCancelCommand() { 24 | super("migrate_cancel", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/MigrateStartPostcopyCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=migrate-start-postcopy, returns=null, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=migrate-start-postcopy, returns=null, data=null} 16 | public class MigrateStartPostcopyCommand extends QApiCommand { 17 | 18 | /** Response to a MigrateStartPostcopyCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new MigrateStartPostcopyCommand. */ 23 | public MigrateStartPostcopyCommand() { 24 | super("migrate-start-postcopy", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/MigrationEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=MIGRATION, data={status=MigrationStatus}}
13 | */ 14 | // QApiEventDescriptor{name=MIGRATION, data={status=MigrationStatus}} 15 | public class MigrationEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("status") 20 | @Nonnull 21 | public MigrationStatus status; 22 | } 23 | 24 | @JsonProperty("data") 25 | public Data data; 26 | } 27 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/MigrationPassEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=MIGRATION_PASS, data={pass=int}}
13 | */ 14 | // QApiEventDescriptor{name=MIGRATION_PASS, data={pass=int}} 15 | public class MigrationPassEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("pass") 20 | @Nonnull 21 | public long pass; 22 | } 23 | 24 | @JsonProperty("data") 25 | public Data data; 26 | } 27 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/MirrorSyncMode.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=MirrorSyncMode, data=[top, full, none, incremental], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=MirrorSyncMode, data=[top, full, none, incremental], fields=null} 14 | public enum MirrorSyncMode { 15 | top("top"), 16 | full("full"), 17 | none("none"), 18 | incremental("incremental"), 19 | __UNKNOWN(""); 20 | 21 | private final java.lang.String jsonValue; 22 | 23 | /* pp */ MirrorSyncMode(@Nonnull java.lang.String jsonValue) { 24 | this.jsonValue = jsonValue; 25 | } 26 | 27 | @JsonValue 28 | public java.lang.String getJsonValue() { 29 | return jsonValue; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/NFSTransport.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=NFSTransport, data=[inet], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=NFSTransport, data=[inet], fields=null} 14 | public enum NFSTransport { 15 | inet("inet"), 16 | __UNKNOWN(""); 17 | 18 | private final java.lang.String jsonValue; 19 | 20 | /* pp */ NFSTransport(@Nonnull java.lang.String jsonValue) { 21 | this.jsonValue = jsonValue; 22 | } 23 | 24 | @JsonValue 25 | public java.lang.String getJsonValue() { 26 | return jsonValue; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/NbdServerRemoveMode.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=NbdServerRemoveMode, data=[safe, hard], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=NbdServerRemoveMode, data=[safe, hard], fields=null} 14 | public enum NbdServerRemoveMode { 15 | safe("safe"), 16 | hard("hard"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ NbdServerRemoveMode(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/NbdServerStopCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=nbd-server-stop, returns=null, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=nbd-server-stop, returns=null, data=null} 16 | public class NbdServerStopCommand extends QApiCommand { 17 | 18 | /** Response to a NbdServerStopCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new NbdServerStopCommand. */ 23 | public NbdServerStopCommand() { 24 | super("nbd-server-stop", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/NetFilterDirection.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=NetFilterDirection, data=[all, rx, tx], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=NetFilterDirection, data=[all, rx, tx], fields=null} 14 | public enum NetFilterDirection { 15 | all("all"), 16 | rx("rx"), 17 | tx("tx"), 18 | __UNKNOWN(""); 19 | 20 | private final java.lang.String jsonValue; 21 | 22 | /* pp */ NetFilterDirection(@Nonnull java.lang.String jsonValue) { 23 | this.jsonValue = jsonValue; 24 | } 25 | 26 | @JsonValue 27 | public java.lang.String getJsonValue() { 28 | return jsonValue; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/NetworkAddressFamily.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=NetworkAddressFamily, data=[ipv4, ipv6, unix, vsock, unknown], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=NetworkAddressFamily, data=[ipv4, ipv6, unix, vsock, unknown], fields=null} 14 | public enum NetworkAddressFamily { 15 | ipv4("ipv4"), 16 | ipv6("ipv6"), 17 | unix("unix"), 18 | vsock("vsock"), 19 | unknown("unknown"), 20 | __UNKNOWN(""); 21 | 22 | private final java.lang.String jsonValue; 23 | 24 | /* pp */ NetworkAddressFamily(@Nonnull java.lang.String jsonValue) { 25 | this.jsonValue = jsonValue; 26 | } 27 | 28 | @JsonValue 29 | public java.lang.String getJsonValue() { 30 | return jsonValue; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/NewImageMode.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=NewImageMode, data=[existing, absolute-paths], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=NewImageMode, data=[existing, absolute-paths], fields=null} 14 | public enum NewImageMode { 15 | existing("existing"), 16 | absolute_paths("absolute-paths"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ NewImageMode(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/NicRxFilterChangedEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=NIC_RX_FILTER_CHANGED, data={*name=str, path=str}}
13 | */ 14 | // QApiEventDescriptor{name=NIC_RX_FILTER_CHANGED, data={*name=str, path=str}} 15 | public class NicRxFilterChangedEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("name") 20 | @CheckForNull 21 | public java.lang.String name; 22 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 23 | @JsonProperty("path") 24 | @Nonnull 25 | public java.lang.String path; 26 | } 27 | 28 | @JsonProperty("data") 29 | public Data data; 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/NumaOptionsType.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=NumaOptionsType, data=[node, dist, cpu], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=NumaOptionsType, data=[node, dist, cpu], fields=null} 14 | public enum NumaOptionsType { 15 | node("node"), 16 | dist("dist"), 17 | cpu("cpu"), 18 | __UNKNOWN(""); 19 | 20 | private final java.lang.String jsonValue; 21 | 22 | /* pp */ NumaOptionsType(@Nonnull java.lang.String jsonValue) { 23 | this.jsonValue = jsonValue; 24 | } 25 | 26 | @JsonValue 27 | public java.lang.String getJsonValue() { 28 | return jsonValue; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/OffAutoPCIBAR.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=OffAutoPCIBAR, data=[off, auto, bar0, bar1, bar2, bar3, bar4, bar5], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=OffAutoPCIBAR, data=[off, auto, bar0, bar1, bar2, bar3, bar4, bar5], fields=null} 14 | public enum OffAutoPCIBAR { 15 | off("off"), 16 | auto("auto"), 17 | bar0("bar0"), 18 | bar1("bar1"), 19 | bar2("bar2"), 20 | bar3("bar3"), 21 | bar4("bar4"), 22 | bar5("bar5"), 23 | __UNKNOWN(""); 24 | 25 | private final java.lang.String jsonValue; 26 | 27 | /* pp */ OffAutoPCIBAR(@Nonnull java.lang.String jsonValue) { 28 | this.jsonValue = jsonValue; 29 | } 30 | 31 | @JsonValue 32 | public java.lang.String getJsonValue() { 33 | return jsonValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/OnOffAuto.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=OnOffAuto, data=[auto, on, off], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=OnOffAuto, data=[auto, on, off], fields=null} 14 | public enum OnOffAuto { 15 | auto("auto"), 16 | on("on"), 17 | off("off"), 18 | __UNKNOWN(""); 19 | 20 | private final java.lang.String jsonValue; 21 | 22 | /* pp */ OnOffAuto(@Nonnull java.lang.String jsonValue) { 23 | this.jsonValue = jsonValue; 24 | } 25 | 26 | @JsonValue 27 | public java.lang.String getJsonValue() { 28 | return jsonValue; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/OnOffSplit.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=OnOffSplit, data=[on, off, split], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=OnOffSplit, data=[on, off, split], fields=null} 14 | public enum OnOffSplit { 15 | on("on"), 16 | off("off"), 17 | split("split"), 18 | __UNKNOWN(""); 19 | 20 | private final java.lang.String jsonValue; 21 | 22 | /* pp */ OnOffSplit(@Nonnull java.lang.String jsonValue) { 23 | this.jsonValue = jsonValue; 24 | } 25 | 26 | @JsonValue 27 | public java.lang.String getJsonValue() { 28 | return jsonValue; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/PowerdownEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=POWERDOWN, data=null}
13 | */ 14 | // QApiEventDescriptor{name=POWERDOWN, data=null} 15 | public class PowerdownEvent extends QApiEvent { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/PreallocMode.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=PreallocMode, data=[off, metadata, falloc, full], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=PreallocMode, data=[off, metadata, falloc, full], fields=null} 14 | public enum PreallocMode { 15 | off("off"), 16 | metadata("metadata"), 17 | falloc("falloc"), 18 | full("full"), 19 | __UNKNOWN(""); 20 | 21 | private final java.lang.String jsonValue; 22 | 23 | /* pp */ PreallocMode(@Nonnull java.lang.String jsonValue) { 24 | this.jsonValue = jsonValue; 25 | } 26 | 27 | @JsonValue 28 | public java.lang.String getJsonValue() { 29 | return jsonValue; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QCryptoBlockFormat.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=QCryptoBlockFormat, data=[qcow, luks], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=QCryptoBlockFormat, data=[qcow, luks], fields=null} 14 | public enum QCryptoBlockFormat { 15 | qcow("qcow"), 16 | luks("luks"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ QCryptoBlockFormat(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QCryptoCipherMode.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=QCryptoCipherMode, data=[ecb, cbc, xts, ctr], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=QCryptoCipherMode, data=[ecb, cbc, xts, ctr], fields=null} 14 | public enum QCryptoCipherMode { 15 | ecb("ecb"), 16 | cbc("cbc"), 17 | xts("xts"), 18 | ctr("ctr"), 19 | __UNKNOWN(""); 20 | 21 | private final java.lang.String jsonValue; 22 | 23 | /* pp */ QCryptoCipherMode(@Nonnull java.lang.String jsonValue) { 24 | this.jsonValue = jsonValue; 25 | } 26 | 27 | @JsonValue 28 | public java.lang.String getJsonValue() { 29 | return jsonValue; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QCryptoHashAlgorithm.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=QCryptoHashAlgorithm, data=[md5, sha1, sha224, sha256, sha384, sha512, ripemd160], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=QCryptoHashAlgorithm, data=[md5, sha1, sha224, sha256, sha384, sha512, ripemd160], fields=null} 14 | public enum QCryptoHashAlgorithm { 15 | md5("md5"), 16 | sha1("sha1"), 17 | sha224("sha224"), 18 | sha256("sha256"), 19 | sha384("sha384"), 20 | sha512("sha512"), 21 | ripemd160("ripemd160"), 22 | __UNKNOWN(""); 23 | 24 | private final java.lang.String jsonValue; 25 | 26 | /* pp */ QCryptoHashAlgorithm(@Nonnull java.lang.String jsonValue) { 27 | this.jsonValue = jsonValue; 28 | } 29 | 30 | @JsonValue 31 | public java.lang.String getJsonValue() { 32 | return jsonValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QCryptoIVGenAlgorithm.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=QCryptoIVGenAlgorithm, data=[plain, plain64, essiv], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=QCryptoIVGenAlgorithm, data=[plain, plain64, essiv], fields=null} 14 | public enum QCryptoIVGenAlgorithm { 15 | plain("plain"), 16 | plain64("plain64"), 17 | essiv("essiv"), 18 | __UNKNOWN(""); 19 | 20 | private final java.lang.String jsonValue; 21 | 22 | /* pp */ QCryptoIVGenAlgorithm(@Nonnull java.lang.String jsonValue) { 23 | this.jsonValue = jsonValue; 24 | } 25 | 26 | @JsonValue 27 | public java.lang.String getJsonValue() { 28 | return jsonValue; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QCryptoSecretFormat.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=QCryptoSecretFormat, data=[raw, base64], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=QCryptoSecretFormat, data=[raw, base64], fields=null} 14 | public enum QCryptoSecretFormat { 15 | raw("raw"), 16 | base64("base64"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ QCryptoSecretFormat(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QCryptoTLSCredsEndpoint.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=QCryptoTLSCredsEndpoint, data=[client, server], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=QCryptoTLSCredsEndpoint, data=[client, server], fields=null} 14 | public enum QCryptoTLSCredsEndpoint { 15 | client("client"), 16 | server("server"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ QCryptoTLSCredsEndpoint(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QMPCapability.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=QMPCapability, data=[oob], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=QMPCapability, data=[oob], fields=null} 14 | public enum QMPCapability { 15 | oob("oob"), 16 | __UNKNOWN(""); 17 | 18 | private final java.lang.String jsonValue; 19 | 20 | /* pp */ QMPCapability(@Nonnull java.lang.String jsonValue) { 21 | this.jsonValue = jsonValue; 22 | } 23 | 24 | @JsonValue 25 | public java.lang.String getJsonValue() { 26 | return jsonValue; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/Qcow2OverlapCheckMode.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=Qcow2OverlapCheckMode, data=[none, constant, cached, all], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=Qcow2OverlapCheckMode, data=[none, constant, cached, all], fields=null} 14 | public enum Qcow2OverlapCheckMode { 15 | none("none"), 16 | constant("constant"), 17 | cached("cached"), 18 | all("all"), 19 | __UNKNOWN(""); 20 | 21 | private final java.lang.String jsonValue; 22 | 23 | /* pp */ Qcow2OverlapCheckMode(@Nonnull java.lang.String jsonValue) { 24 | this.jsonValue = jsonValue; 25 | } 26 | 27 | @JsonValue 28 | public java.lang.String getJsonValue() { 29 | return jsonValue; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryAcpiOspmStatusCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-acpi-ospm-status, returns=[ACPIOSTInfo], data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-acpi-ospm-status, returns=[ACPIOSTInfo], data=null} 16 | public class QueryAcpiOspmStatusCommand extends QApiCommand { 17 | 18 | /** Response to a QueryAcpiOspmStatusCommand. */ 19 | public static class Response extends QApiResponse> { 20 | } 21 | 22 | /** Constructs a new QueryAcpiOspmStatusCommand. */ 23 | public QueryAcpiOspmStatusCommand() { 24 | super("query-acpi-ospm-status", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryBalloonCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-balloon, returns=BalloonInfo, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-balloon, returns=BalloonInfo, data=null} 16 | public class QueryBalloonCommand extends QApiCommand { 17 | 18 | /** Response to a QueryBalloonCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new QueryBalloonCommand. */ 23 | public QueryBalloonCommand() { 24 | super("query-balloon", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryBlockCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-block, returns=[BlockInfo], data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-block, returns=[BlockInfo], data=null} 16 | public class QueryBlockCommand extends QApiCommand { 17 | 18 | /** Response to a QueryBlockCommand. */ 19 | public static class Response extends QApiResponse> { 20 | } 21 | 22 | /** Constructs a new QueryBlockCommand. */ 23 | public QueryBlockCommand() { 24 | super("query-block", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryBlockJobsCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-block-jobs, returns=[BlockJobInfo], data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-block-jobs, returns=[BlockJobInfo], data=null} 16 | public class QueryBlockJobsCommand extends QApiCommand { 17 | 18 | /** Response to a QueryBlockJobsCommand. */ 19 | public static class Response extends QApiResponse> { 20 | } 21 | 22 | /** Constructs a new QueryBlockJobsCommand. */ 23 | public QueryBlockJobsCommand() { 24 | super("query-block-jobs", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryChardevCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-chardev, returns=[ChardevInfo], data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-chardev, returns=[ChardevInfo], data=null} 16 | public class QueryChardevCommand extends QApiCommand { 17 | 18 | /** Response to a QueryChardevCommand. */ 19 | public static class Response extends QApiResponse> { 20 | } 21 | 22 | /** Constructs a new QueryChardevCommand. */ 23 | public QueryChardevCommand() { 24 | super("query-chardev", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryCommandsCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-commands, returns=[CommandInfo], data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-commands, returns=[CommandInfo], data=null} 16 | public class QueryCommandsCommand extends QApiCommand { 17 | 18 | /** Response to a QueryCommandsCommand. */ 19 | public static class Response extends QApiResponse> { 20 | } 21 | 22 | /** Constructs a new QueryCommandsCommand. */ 23 | public QueryCommandsCommand() { 24 | super("query-commands", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryCpusCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-cpus, returns=[CpuInfo], data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-cpus, returns=[CpuInfo], data=null} 16 | public class QueryCpusCommand extends QApiCommand { 17 | 18 | /** Response to a QueryCpusCommand. */ 19 | public static class Response extends QApiResponse> { 20 | } 21 | 22 | /** Constructs a new QueryCpusCommand. */ 23 | public QueryCpusCommand() { 24 | super("query-cpus", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryCpusFastCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-cpus-fast, returns=[CpuInfoFast], data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-cpus-fast, returns=[CpuInfoFast], data=null} 16 | public class QueryCpusFastCommand extends QApiCommand { 17 | 18 | /** Response to a QueryCpusFastCommand. */ 19 | public static class Response extends QApiResponse> { 20 | } 21 | 22 | /** Constructs a new QueryCpusFastCommand. */ 23 | public QueryCpusFastCommand() { 24 | super("query-cpus-fast", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryDumpCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-dump, returns=DumpQueryResult, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-dump, returns=DumpQueryResult, data=null} 16 | public class QueryDumpCommand extends QApiCommand { 17 | 18 | /** Response to a QueryDumpCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new QueryDumpCommand. */ 23 | public QueryDumpCommand() { 24 | super("query-dump", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryEventsCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-events, returns=[EventInfo], data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-events, returns=[EventInfo], data=null} 16 | public class QueryEventsCommand extends QApiCommand { 17 | 18 | /** Response to a QueryEventsCommand. */ 19 | public static class Response extends QApiResponse> { 20 | } 21 | 22 | /** Constructs a new QueryEventsCommand. */ 23 | public QueryEventsCommand() { 24 | super("query-events", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryFdsetsCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-fdsets, returns=[FdsetInfo], data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-fdsets, returns=[FdsetInfo], data=null} 16 | public class QueryFdsetsCommand extends QApiCommand { 17 | 18 | /** Response to a QueryFdsetsCommand. */ 19 | public static class Response extends QApiResponse> { 20 | } 21 | 22 | /** Constructs a new QueryFdsetsCommand. */ 23 | public QueryFdsetsCommand() { 24 | super("query-fdsets", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryGicCapabilitiesCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-gic-capabilities, returns=[GICCapability], data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-gic-capabilities, returns=[GICCapability], data=null} 16 | public class QueryGicCapabilitiesCommand extends QApiCommand { 17 | 18 | /** Response to a QueryGicCapabilitiesCommand. */ 19 | public static class Response extends QApiResponse> { 20 | } 21 | 22 | /** Constructs a new QueryGicCapabilitiesCommand. */ 23 | public QueryGicCapabilitiesCommand() { 24 | super("query-gic-capabilities", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryIothreadsCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-iothreads, returns=[IOThreadInfo], data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-iothreads, returns=[IOThreadInfo], data=null} 16 | public class QueryIothreadsCommand extends QApiCommand { 17 | 18 | /** Response to a QueryIothreadsCommand. */ 19 | public static class Response extends QApiResponse> { 20 | } 21 | 22 | /** Constructs a new QueryIothreadsCommand. */ 23 | public QueryIothreadsCommand() { 24 | super("query-iothreads", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryKvmCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-kvm, returns=KvmInfo, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-kvm, returns=KvmInfo, data=null} 16 | public class QueryKvmCommand extends QApiCommand { 17 | 18 | /** Response to a QueryKvmCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new QueryKvmCommand. */ 23 | public QueryKvmCommand() { 24 | super("query-kvm", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryMachinesCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-machines, returns=[MachineInfo], data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-machines, returns=[MachineInfo], data=null} 16 | public class QueryMachinesCommand extends QApiCommand { 17 | 18 | /** Response to a QueryMachinesCommand. */ 19 | public static class Response extends QApiResponse> { 20 | } 21 | 22 | /** Constructs a new QueryMachinesCommand. */ 23 | public QueryMachinesCommand() { 24 | super("query-machines", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryMemdevCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-memdev, returns=[Memdev], data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-memdev, returns=[Memdev], data=null} 16 | public class QueryMemdevCommand extends QApiCommand { 17 | 18 | /** Response to a QueryMemdevCommand. */ 19 | public static class Response extends QApiResponse> { 20 | } 21 | 22 | /** Constructs a new QueryMemdevCommand. */ 23 | public QueryMemdevCommand() { 24 | super("query-memdev", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryMemoryDevicesCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-memory-devices, returns=[MemoryDeviceInfo], data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-memory-devices, returns=[MemoryDeviceInfo], data=null} 16 | public class QueryMemoryDevicesCommand extends QApiCommand { 17 | 18 | /** Response to a QueryMemoryDevicesCommand. */ 19 | public static class Response extends QApiResponse> { 20 | } 21 | 22 | /** Constructs a new QueryMemoryDevicesCommand. */ 23 | public QueryMemoryDevicesCommand() { 24 | super("query-memory-devices", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryMemorySizeSummaryCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-memory-size-summary, returns=MemoryInfo, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-memory-size-summary, returns=MemoryInfo, data=null} 16 | public class QueryMemorySizeSummaryCommand extends QApiCommand { 17 | 18 | /** Response to a QueryMemorySizeSummaryCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new QueryMemorySizeSummaryCommand. */ 23 | public QueryMemorySizeSummaryCommand() { 24 | super("query-memory-size-summary", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryMiceCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-mice, returns=[MouseInfo], data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-mice, returns=[MouseInfo], data=null} 16 | public class QueryMiceCommand extends QApiCommand { 17 | 18 | /** Response to a QueryMiceCommand. */ 19 | public static class Response extends QApiResponse> { 20 | } 21 | 22 | /** Constructs a new QueryMiceCommand. */ 23 | public QueryMiceCommand() { 24 | super("query-mice", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryMigrateCacheSizeCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-migrate-cache-size, returns=int, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-migrate-cache-size, returns=int, data=null} 16 | public class QueryMigrateCacheSizeCommand extends QApiCommand { 17 | 18 | /** Response to a QueryMigrateCacheSizeCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new QueryMigrateCacheSizeCommand. */ 23 | public QueryMigrateCacheSizeCommand() { 24 | super("query-migrate-cache-size", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryMigrateCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-migrate, returns=MigrationInfo, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-migrate, returns=MigrationInfo, data=null} 16 | public class QueryMigrateCommand extends QApiCommand { 17 | 18 | /** Response to a QueryMigrateCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new QueryMigrateCommand. */ 23 | public QueryMigrateCommand() { 24 | super("query-migrate", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryNameCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-name, returns=NameInfo, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-name, returns=NameInfo, data=null} 16 | public class QueryNameCommand extends QApiCommand { 17 | 18 | /** Response to a QueryNameCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new QueryNameCommand. */ 23 | public QueryNameCommand() { 24 | super("query-name", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryPciCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-pci, returns=[PciInfo], data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-pci, returns=[PciInfo], data=null} 16 | public class QueryPciCommand extends QApiCommand { 17 | 18 | /** Response to a QueryPciCommand. */ 19 | public static class Response extends QApiResponse> { 20 | } 21 | 22 | /** Constructs a new QueryPciCommand. */ 23 | public QueryPciCommand() { 24 | super("query-pci", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryQmpSchemaCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-qmp-schema, returns=[SchemaInfo], data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-qmp-schema, returns=[SchemaInfo], data=null} 16 | public class QueryQmpSchemaCommand extends QApiCommand { 17 | 18 | /** Response to a QueryQmpSchemaCommand. */ 19 | public static class Response extends QApiResponse> { 20 | } 21 | 22 | /** Constructs a new QueryQmpSchemaCommand. */ 23 | public QueryQmpSchemaCommand() { 24 | super("query-qmp-schema", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QuerySevCapabilitiesCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-sev-capabilities, returns=SevCapability, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-sev-capabilities, returns=SevCapability, data=null} 16 | public class QuerySevCapabilitiesCommand extends QApiCommand { 17 | 18 | /** Response to a QuerySevCapabilitiesCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new QuerySevCapabilitiesCommand. */ 23 | public QuerySevCapabilitiesCommand() { 24 | super("query-sev-capabilities", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QuerySevCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-sev, returns=SevInfo, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-sev, returns=SevInfo, data=null} 16 | public class QuerySevCommand extends QApiCommand { 17 | 18 | /** Response to a QuerySevCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new QuerySevCommand. */ 23 | public QuerySevCommand() { 24 | super("query-sev", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QuerySpiceCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-spice, returns=SpiceInfo, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-spice, returns=SpiceInfo, data=null} 16 | public class QuerySpiceCommand extends QApiCommand { 17 | 18 | /** Response to a QuerySpiceCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new QuerySpiceCommand. */ 23 | public QuerySpiceCommand() { 24 | super("query-spice", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryStatusCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-status, returns=StatusInfo, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-status, returns=StatusInfo, data=null} 16 | public class QueryStatusCommand extends QApiCommand { 17 | 18 | /** Response to a QueryStatusCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new QueryStatusCommand. */ 23 | public QueryStatusCommand() { 24 | super("query-status", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryTargetCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-target, returns=TargetInfo, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-target, returns=TargetInfo, data=null} 16 | public class QueryTargetCommand extends QApiCommand { 17 | 18 | /** Response to a QueryTargetCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new QueryTargetCommand. */ 23 | public QueryTargetCommand() { 24 | super("query-target", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryTpmCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-tpm, returns=[TPMInfo], data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-tpm, returns=[TPMInfo], data=null} 16 | public class QueryTpmCommand extends QApiCommand { 17 | 18 | /** Response to a QueryTpmCommand. */ 19 | public static class Response extends QApiResponse> { 20 | } 21 | 22 | /** Constructs a new QueryTpmCommand. */ 23 | public QueryTpmCommand() { 24 | super("query-tpm", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryTpmModelsCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-tpm-models, returns=[TpmModel], data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-tpm-models, returns=[TpmModel], data=null} 16 | public class QueryTpmModelsCommand extends QApiCommand { 17 | 18 | /** Response to a QueryTpmModelsCommand. */ 19 | public static class Response extends QApiResponse> { 20 | } 21 | 22 | /** Constructs a new QueryTpmModelsCommand. */ 23 | public QueryTpmModelsCommand() { 24 | super("query-tpm-models", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryTpmTypesCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-tpm-types, returns=[TpmType], data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-tpm-types, returns=[TpmType], data=null} 16 | public class QueryTpmTypesCommand extends QApiCommand { 17 | 18 | /** Response to a QueryTpmTypesCommand. */ 19 | public static class Response extends QApiResponse> { 20 | } 21 | 22 | /** Constructs a new QueryTpmTypesCommand. */ 23 | public QueryTpmTypesCommand() { 24 | super("query-tpm-types", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryUuidCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-uuid, returns=UuidInfo, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-uuid, returns=UuidInfo, data=null} 16 | public class QueryUuidCommand extends QApiCommand { 17 | 18 | /** Response to a QueryUuidCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new QueryUuidCommand. */ 23 | public QueryUuidCommand() { 24 | super("query-uuid", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryVersionCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-version, returns=VersionInfo, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-version, returns=VersionInfo, data=null} 16 | public class QueryVersionCommand extends QApiCommand { 17 | 18 | /** Response to a QueryVersionCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new QueryVersionCommand. */ 23 | public QueryVersionCommand() { 24 | super("query-version", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryVmGenerationIdCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-vm-generation-id, returns=GuidInfo, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-vm-generation-id, returns=GuidInfo, data=null} 16 | public class QueryVmGenerationIdCommand extends QApiCommand { 17 | 18 | /** Response to a QueryVmGenerationIdCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new QueryVmGenerationIdCommand. */ 23 | public QueryVmGenerationIdCommand() { 24 | super("query-vm-generation-id", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryVncCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-vnc, returns=VncInfo, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-vnc, returns=VncInfo, data=null} 16 | public class QueryVncCommand extends QApiCommand { 17 | 18 | /** Response to a QueryVncCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new QueryVncCommand. */ 23 | public QueryVncCommand() { 24 | super("query-vnc", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QueryVncServersCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=query-vnc-servers, returns=[VncInfo2], data=null}
14 | */ 15 | // QApiCommandDescriptor{name=query-vnc-servers, returns=[VncInfo2], data=null} 16 | public class QueryVncServersCommand extends QApiCommand { 17 | 18 | /** Response to a QueryVncServersCommand. */ 19 | public static class Response extends QApiResponse> { 20 | } 21 | 22 | /** Constructs a new QueryVncServersCommand. */ 23 | public QueryVncServersCommand() { 24 | super("query-vnc-servers", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QuitCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=quit, returns=null, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=quit, returns=null, data=null} 16 | public class QuitCommand extends QApiCommand { 17 | 18 | /** Response to a QuitCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new QuitCommand. */ 23 | public QuitCommand() { 24 | super("quit", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QuorumOpType.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=QuorumOpType, data=[read, write, flush], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=QuorumOpType, data=[read, write, flush], fields=null} 14 | public enum QuorumOpType { 15 | read("read"), 16 | write("write"), 17 | flush("flush"), 18 | __UNKNOWN(""); 19 | 20 | private final java.lang.String jsonValue; 21 | 22 | /* pp */ QuorumOpType(@Nonnull java.lang.String jsonValue) { 23 | this.jsonValue = jsonValue; 24 | } 25 | 26 | @JsonValue 27 | public java.lang.String getJsonValue() { 28 | return jsonValue; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/QuorumReadPattern.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=QuorumReadPattern, data=[quorum, fifo], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=QuorumReadPattern, data=[quorum, fifo], fields=null} 14 | public enum QuorumReadPattern { 15 | quorum("quorum"), 16 | fifo("fifo"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ QuorumReadPattern(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/ReplayMode.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=ReplayMode, data=[none, record, play], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=ReplayMode, data=[none, record, play], fields=null} 14 | public enum ReplayMode { 15 | none("none"), 16 | record("record"), 17 | play("play"), 18 | __UNKNOWN(""); 19 | 20 | private final java.lang.String jsonValue; 21 | 22 | /* pp */ ReplayMode(@Nonnull java.lang.String jsonValue) { 23 | this.jsonValue = jsonValue; 24 | } 25 | 26 | @JsonValue 27 | public java.lang.String getJsonValue() { 28 | return jsonValue; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/ReplicationMode.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=ReplicationMode, data=[primary, secondary], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=ReplicationMode, data=[primary, secondary], fields=null} 14 | public enum ReplicationMode { 15 | primary("primary"), 16 | secondary("secondary"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ ReplicationMode(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/ResetEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=RESET, data={guest=bool}}
13 | */ 14 | // QApiEventDescriptor{name=RESET, data={guest=bool}} 15 | public class ResetEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("guest") 20 | @Nonnull 21 | public boolean guest; 22 | } 23 | 24 | @JsonProperty("data") 25 | public Data data; 26 | } 27 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/ResumeEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=RESUME, data=null}
13 | */ 14 | // QApiEventDescriptor{name=RESUME, data=null} 15 | public class ResumeEvent extends QApiEvent { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/RockerPortAutoneg.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=RockerPortAutoneg, data=[off, on], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=RockerPortAutoneg, data=[off, on], fields=null} 14 | public enum RockerPortAutoneg { 15 | off("off"), 16 | on("on"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ RockerPortAutoneg(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/RockerPortDuplex.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=RockerPortDuplex, data=[half, full], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=RockerPortDuplex, data=[half, full], fields=null} 14 | public enum RockerPortDuplex { 15 | half("half"), 16 | full("full"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ RockerPortDuplex(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/RtcChangeEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=RTC_CHANGE, data={offset=int}}
13 | */ 14 | // QApiEventDescriptor{name=RTC_CHANGE, data={offset=int}} 15 | public class RtcChangeEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("offset") 20 | @Nonnull 21 | public long offset; 22 | } 23 | 24 | @JsonProperty("data") 25 | public Data data; 26 | } 27 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/RtcResetReinjectionCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=rtc-reset-reinjection, returns=null, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=rtc-reset-reinjection, returns=null, data=null} 16 | public class RtcResetReinjectionCommand extends QApiCommand { 17 | 18 | /** Response to a RtcResetReinjectionCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new RtcResetReinjectionCommand. */ 23 | public RtcResetReinjectionCommand() { 24 | super("rtc-reset-reinjection", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/RxState.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=RxState, data=[normal, none, all], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=RxState, data=[normal, none, all], fields=null} 14 | public enum RxState { 15 | normal("normal"), 16 | none("none"), 17 | all("all"), 18 | __UNKNOWN(""); 19 | 20 | private final java.lang.String jsonValue; 21 | 22 | /* pp */ RxState(@Nonnull java.lang.String jsonValue) { 23 | this.jsonValue = jsonValue; 24 | } 25 | 26 | @JsonValue 27 | public java.lang.String getJsonValue() { 28 | return jsonValue; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/S390CrashReason.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=S390CrashReason, data=[unknown, disabled-wait, extint-loop, pgmint-loop, opint-loop], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=S390CrashReason, data=[unknown, disabled-wait, extint-loop, pgmint-loop, opint-loop], fields=null} 14 | public enum S390CrashReason { 15 | unknown("unknown"), 16 | disabled_wait("disabled-wait"), 17 | extint_loop("extint-loop"), 18 | pgmint_loop("pgmint-loop"), 19 | opint_loop("opint-loop"), 20 | __UNKNOWN(""); 21 | 22 | private final java.lang.String jsonValue; 23 | 24 | /* pp */ S390CrashReason(@Nonnull java.lang.String jsonValue) { 25 | this.jsonValue = jsonValue; 26 | } 27 | 28 | @JsonValue 29 | public java.lang.String getJsonValue() { 30 | return jsonValue; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/SchemaMetaType.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=SchemaMetaType, data=[builtin, enum, array, object, alternate, command, event], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=SchemaMetaType, data=[builtin, enum, array, object, alternate, command, event], fields=null} 14 | public enum SchemaMetaType { 15 | builtin("builtin"), 16 | _enum("enum"), 17 | array("array"), 18 | object("object"), 19 | alternate("alternate"), 20 | command("command"), 21 | event("event"), 22 | __UNKNOWN(""); 23 | 24 | private final java.lang.String jsonValue; 25 | 26 | /* pp */ SchemaMetaType(@Nonnull java.lang.String jsonValue) { 27 | this.jsonValue = jsonValue; 28 | } 29 | 30 | @JsonValue 31 | public java.lang.String getJsonValue() { 32 | return jsonValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/SheepdogRedundancyType.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=SheepdogRedundancyType, data=[full, erasure-coded], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=SheepdogRedundancyType, data=[full, erasure-coded], fields=null} 14 | public enum SheepdogRedundancyType { 15 | full("full"), 16 | erasure_coded("erasure-coded"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ SheepdogRedundancyType(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/ShutdownEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=SHUTDOWN, data={guest=bool}}
13 | */ 14 | // QApiEventDescriptor{name=SHUTDOWN, data={guest=bool}} 15 | public class ShutdownEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("guest") 20 | @Nonnull 21 | public boolean guest; 22 | } 23 | 24 | @JsonProperty("data") 25 | public Data data; 26 | } 27 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/SocketAddressType.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=SocketAddressType, data=[inet, unix, vsock, fd], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=SocketAddressType, data=[inet, unix, vsock, fd], fields=null} 14 | public enum SocketAddressType { 15 | inet("inet"), 16 | unix("unix"), 17 | vsock("vsock"), 18 | fd("fd"), 19 | __UNKNOWN(""); 20 | 21 | private final java.lang.String jsonValue; 22 | 23 | /* pp */ SocketAddressType(@Nonnull java.lang.String jsonValue) { 24 | this.jsonValue = jsonValue; 25 | } 26 | 27 | @JsonValue 28 | public java.lang.String getJsonValue() { 29 | return jsonValue; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/SpiceConnectedEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=SPICE_CONNECTED, data={server=SpiceBasicInfo, client=SpiceBasicInfo}}
13 | */ 14 | // QApiEventDescriptor{name=SPICE_CONNECTED, data={server=SpiceBasicInfo, client=SpiceBasicInfo}} 15 | public class SpiceConnectedEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("server") 20 | @Nonnull 21 | public SpiceBasicInfo server; 22 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 23 | @JsonProperty("client") 24 | @Nonnull 25 | public SpiceBasicInfo client; 26 | } 27 | 28 | @JsonProperty("data") 29 | public Data data; 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/SpiceDisconnectedEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=SPICE_DISCONNECTED, data={server=SpiceBasicInfo, client=SpiceBasicInfo}}
13 | */ 14 | // QApiEventDescriptor{name=SPICE_DISCONNECTED, data={server=SpiceBasicInfo, client=SpiceBasicInfo}} 15 | public class SpiceDisconnectedEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("server") 20 | @Nonnull 21 | public SpiceBasicInfo server; 22 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 23 | @JsonProperty("client") 24 | @Nonnull 25 | public SpiceBasicInfo client; 26 | } 27 | 28 | @JsonProperty("data") 29 | public Data data; 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/SpiceInitializedEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=SPICE_INITIALIZED, data={server=SpiceServerInfo, client=SpiceChannel}}
13 | */ 14 | // QApiEventDescriptor{name=SPICE_INITIALIZED, data={server=SpiceServerInfo, client=SpiceChannel}} 15 | public class SpiceInitializedEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("server") 20 | @Nonnull 21 | public SpiceServerInfo server; 22 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 23 | @JsonProperty("client") 24 | @Nonnull 25 | public SpiceChannel client; 26 | } 27 | 28 | @JsonProperty("data") 29 | public Data data; 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/SpiceMigrateCompletedEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=SPICE_MIGRATE_COMPLETED, data=null}
13 | */ 14 | // QApiEventDescriptor{name=SPICE_MIGRATE_COMPLETED, data=null} 15 | public class SpiceMigrateCompletedEvent extends QApiEvent { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/SpiceQueryMouseMode.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=SpiceQueryMouseMode, data=[client, server, unknown], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=SpiceQueryMouseMode, data=[client, server, unknown], fields=null} 14 | public enum SpiceQueryMouseMode { 15 | client("client"), 16 | server("server"), 17 | unknown("unknown"), 18 | __UNKNOWN(""); 19 | 20 | private final java.lang.String jsonValue; 21 | 22 | /* pp */ SpiceQueryMouseMode(@Nonnull java.lang.String jsonValue) { 23 | this.jsonValue = jsonValue; 24 | } 25 | 26 | @JsonValue 27 | public java.lang.String getJsonValue() { 28 | return jsonValue; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/SshHostKeyCheckHashType.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=SshHostKeyCheckHashType, data=[md5, sha1], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=SshHostKeyCheckHashType, data=[md5, sha1], fields=null} 14 | public enum SshHostKeyCheckHashType { 15 | md5("md5"), 16 | sha1("sha1"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ SshHostKeyCheckHashType(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/SshHostKeyCheckMode.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=SshHostKeyCheckMode, data=[none, hash, known_hosts], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=SshHostKeyCheckMode, data=[none, hash, known_hosts], fields=null} 14 | public enum SshHostKeyCheckMode { 15 | none("none"), 16 | hash("hash"), 17 | known_hosts("known_hosts"), 18 | __UNKNOWN(""); 19 | 20 | private final java.lang.String jsonValue; 21 | 22 | /* pp */ SshHostKeyCheckMode(@Nonnull java.lang.String jsonValue) { 23 | this.jsonValue = jsonValue; 24 | } 25 | 26 | @JsonValue 27 | public java.lang.String getJsonValue() { 28 | return jsonValue; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/StopCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=stop, returns=null, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=stop, returns=null, data=null} 16 | public class StopCommand extends QApiCommand { 17 | 18 | /** Response to a StopCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new StopCommand. */ 23 | public StopCommand() { 24 | super("stop", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/StopEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=STOP, data=null}
13 | */ 14 | // QApiEventDescriptor{name=STOP, data=null} 15 | public class StopEvent extends QApiEvent { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/SuspendDiskEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=SUSPEND_DISK, data=null}
13 | */ 14 | // QApiEventDescriptor{name=SUSPEND_DISK, data=null} 15 | public class SuspendDiskEvent extends QApiEvent { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/SuspendEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=SUSPEND, data=null}
13 | */ 14 | // QApiEventDescriptor{name=SUSPEND, data=null} 15 | public class SuspendEvent extends QApiEvent { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/SystemPowerdownCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=system_powerdown, returns=null, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=system_powerdown, returns=null, data=null} 16 | public class SystemPowerdownCommand extends QApiCommand { 17 | 18 | /** Response to a SystemPowerdownCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new SystemPowerdownCommand. */ 23 | public SystemPowerdownCommand() { 24 | super("system_powerdown", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/SystemResetCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=system_reset, returns=null, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=system_reset, returns=null, data=null} 16 | public class SystemResetCommand extends QApiCommand { 17 | 18 | /** Response to a SystemResetCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new SystemResetCommand. */ 23 | public SystemResetCommand() { 24 | super("system_reset", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/SystemWakeupCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=system_wakeup, returns=null, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=system_wakeup, returns=null, data=null} 16 | public class SystemWakeupCommand extends QApiCommand { 17 | 18 | /** Response to a SystemWakeupCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new SystemWakeupCommand. */ 23 | public SystemWakeupCommand() { 24 | super("system_wakeup", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/TpmModel.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=TpmModel, data=[tpm-tis, tpm-crb], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=TpmModel, data=[tpm-tis, tpm-crb], fields=null} 14 | public enum TpmModel { 15 | tpm_tis("tpm-tis"), 16 | tpm_crb("tpm-crb"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ TpmModel(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/TpmType.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=TpmType, data=[passthrough, emulator], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=TpmType, data=[passthrough, emulator], fields=null} 14 | public enum TpmType { 15 | passthrough("passthrough"), 16 | emulator("emulator"), 17 | __UNKNOWN(""); 18 | 19 | private final java.lang.String jsonValue; 20 | 21 | /* pp */ TpmType(@Nonnull java.lang.String jsonValue) { 22 | this.jsonValue = jsonValue; 23 | } 24 | 25 | @JsonValue 26 | public java.lang.String getJsonValue() { 27 | return jsonValue; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/TraceEventState.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=TraceEventState, data=[unavailable, disabled, enabled], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=TraceEventState, data=[unavailable, disabled, enabled], fields=null} 14 | public enum TraceEventState { 15 | unavailable("unavailable"), 16 | disabled("disabled"), 17 | enabled("enabled"), 18 | __UNKNOWN(""); 19 | 20 | private final java.lang.String jsonValue; 21 | 22 | /* pp */ TraceEventState(@Nonnull java.lang.String jsonValue) { 23 | this.jsonValue = jsonValue; 24 | } 25 | 26 | @JsonValue 27 | public java.lang.String getJsonValue() { 28 | return jsonValue; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/VncConnectedEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=VNC_CONNECTED, data={server=VncServerInfo, client=VncBasicInfo}}
13 | */ 14 | // QApiEventDescriptor{name=VNC_CONNECTED, data={server=VncServerInfo, client=VncBasicInfo}} 15 | public class VncConnectedEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("server") 20 | @Nonnull 21 | public VncServerInfo server; 22 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 23 | @JsonProperty("client") 24 | @Nonnull 25 | public VncBasicInfo client; 26 | } 27 | 28 | @JsonProperty("data") 29 | public Data data; 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/VncDisconnectedEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=VNC_DISCONNECTED, data={server=VncServerInfo, client=VncClientInfo}}
13 | */ 14 | // QApiEventDescriptor{name=VNC_DISCONNECTED, data={server=VncServerInfo, client=VncClientInfo}} 15 | public class VncDisconnectedEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("server") 20 | @Nonnull 21 | public VncServerInfo server; 22 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 23 | @JsonProperty("client") 24 | @Nonnull 25 | public VncClientInfo client; 26 | } 27 | 28 | @JsonProperty("data") 29 | public Data data; 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/VncInitializedEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=VNC_INITIALIZED, data={server=VncServerInfo, client=VncClientInfo}}
13 | */ 14 | // QApiEventDescriptor{name=VNC_INITIALIZED, data={server=VncServerInfo, client=VncClientInfo}} 15 | public class VncInitializedEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("server") 20 | @Nonnull 21 | public VncServerInfo server; 22 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 23 | @JsonProperty("client") 24 | @Nonnull 25 | public VncClientInfo client; 26 | } 27 | 28 | @JsonProperty("data") 29 | public Data data; 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/VncPrimaryAuth.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=VncPrimaryAuth, data=[none, vnc, ra2, ra2ne, tight, ultra, tls, vencrypt, sasl], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=VncPrimaryAuth, data=[none, vnc, ra2, ra2ne, tight, ultra, tls, vencrypt, sasl], fields=null} 14 | public enum VncPrimaryAuth { 15 | none("none"), 16 | vnc("vnc"), 17 | ra2("ra2"), 18 | ra2ne("ra2ne"), 19 | tight("tight"), 20 | ultra("ultra"), 21 | tls("tls"), 22 | vencrypt("vencrypt"), 23 | sasl("sasl"), 24 | __UNKNOWN(""); 25 | 26 | private final java.lang.String jsonValue; 27 | 28 | /* pp */ VncPrimaryAuth(@Nonnull java.lang.String jsonValue) { 29 | this.jsonValue = jsonValue; 30 | } 31 | 32 | @JsonValue 33 | public java.lang.String getJsonValue() { 34 | return jsonValue; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/VserportChangeEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=VSERPORT_CHANGE, data={id=str, open=bool}}
13 | */ 14 | // QApiEventDescriptor{name=VSERPORT_CHANGE, data={id=str, open=bool}} 15 | public class VserportChangeEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("id") 20 | @Nonnull 21 | public java.lang.String id; 22 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 23 | @JsonProperty("open") 24 | @Nonnull 25 | public boolean open; 26 | } 27 | 28 | @JsonProperty("data") 29 | public Data data; 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/WakeupEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=WAKEUP, data=null}
13 | */ 14 | // QApiEventDescriptor{name=WAKEUP, data=null} 15 | public class WakeupEvent extends QApiEvent { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/WatchdogAction.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=WatchdogAction, data=[reset, shutdown, poweroff, pause, debug, none, inject-nmi], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=WatchdogAction, data=[reset, shutdown, poweroff, pause, debug, none, inject-nmi], fields=null} 14 | public enum WatchdogAction { 15 | reset("reset"), 16 | shutdown("shutdown"), 17 | poweroff("poweroff"), 18 | pause("pause"), 19 | debug("debug"), 20 | none("none"), 21 | inject_nmi("inject-nmi"), 22 | __UNKNOWN(""); 23 | 24 | private final java.lang.String jsonValue; 25 | 26 | /* pp */ WatchdogAction(@Nonnull java.lang.String jsonValue) { 27 | this.jsonValue = jsonValue; 28 | } 29 | 30 | @JsonValue 31 | public java.lang.String getJsonValue() { 32 | return jsonValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/WatchdogEvent.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | import org.anarres.qemu.qapi.common.*; 8 | 9 | /** 10 | * Autogenerated class. 11 | * 12 | *
QApiEventDescriptor{name=WATCHDOG, data={action=WatchdogAction}}
13 | */ 14 | // QApiEventDescriptor{name=WATCHDOG, data={action=WatchdogAction}} 15 | public class WatchdogEvent extends QApiEvent { 16 | 17 | public static class Data { 18 | @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 19 | @JsonProperty("action") 20 | @Nonnull 21 | public WatchdogAction action; 22 | } 23 | 24 | @JsonProperty("data") 25 | public Data data; 26 | } 27 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/X86CPURegister32.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonProperty; 4 | import com.fasterxml.jackson.annotation.JsonValue; 5 | import javax.annotation.CheckForNull; 6 | import javax.annotation.Nonnull; 7 | 8 | /** 9 | * Autogenerated class. 10 | * 11 | *
QApiEnumDescriptor{name=X86CPURegister32, data=[EAX, EBX, ECX, EDX, ESP, EBP, ESI, EDI], fields=null}
12 | */ 13 | // QApiEnumDescriptor{name=X86CPURegister32, data=[EAX, EBX, ECX, EDX, ESP, EBP, ESI, EDI], fields=null} 14 | public enum X86CPURegister32 { 15 | EAX("EAX"), 16 | EBX("EBX"), 17 | ECX("ECX"), 18 | EDX("EDX"), 19 | ESP("ESP"), 20 | EBP("EBP"), 21 | ESI("ESI"), 22 | EDI("EDI"), 23 | __UNKNOWN(""); 24 | 25 | private final java.lang.String jsonValue; 26 | 27 | /* pp */ X86CPURegister32(@Nonnull java.lang.String jsonValue) { 28 | this.jsonValue = jsonValue; 29 | } 30 | 31 | @JsonValue 32 | public java.lang.String getJsonValue() { 33 | return jsonValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/XColoLostHeartbeatCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=x-colo-lost-heartbeat, returns=null, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=x-colo-lost-heartbeat, returns=null, data=null} 16 | public class XColoLostHeartbeatCommand extends QApiCommand { 17 | 18 | /** Response to a XColoLostHeartbeatCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new XColoLostHeartbeatCommand. */ 23 | public XColoLostHeartbeatCommand() { 24 | super("x-colo-lost-heartbeat", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/api/XenColoDoCheckpointCommand.java: -------------------------------------------------------------------------------- 1 | package org.anarres.qemu.qapi.api; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 6 | import javax.annotation.CheckForNull; 7 | import javax.annotation.Nonnull; 8 | import org.anarres.qemu.qapi.common.*; 9 | 10 | /** 11 | * Autogenerated class. 12 | * 13 | *
QApiCommandDescriptor{name=xen-colo-do-checkpoint, returns=null, data=null}
14 | */ 15 | // QApiCommandDescriptor{name=xen-colo-do-checkpoint, returns=null, data=null} 16 | public class XenColoDoCheckpointCommand extends QApiCommand { 17 | 18 | /** Response to a XenColoDoCheckpointCommand. */ 19 | public static class Response extends QApiResponse { 20 | } 21 | 22 | /** Constructs a new XenColoDoCheckpointCommand. */ 23 | public XenColoDoCheckpointCommand() { 24 | super("xen-colo-do-checkpoint", Response.class, null); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/common/QApiError.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.qapi.common; 6 | 7 | import com.fasterxml.jackson.annotation.JsonProperty; 8 | 9 | /** 10 | * 11 | * @author shevek 12 | */ 13 | public class QApiError extends QApiObject { 14 | 15 | @JsonProperty("class") 16 | public String _class; 17 | @JsonProperty 18 | public String desc; 19 | // Emitted by QEmu 1.0. Later versions too? 20 | @JsonProperty 21 | public Object data; 22 | } 23 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/common/QApiEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.qapi.common; 6 | 7 | import com.fasterxml.jackson.annotation.JsonProperty; 8 | 9 | /** 10 | * 11 | * @author shevek 12 | */ 13 | public abstract class QApiEvent extends QApiObject { 14 | 15 | // Event looks like: 16 | // <<<{"timestamp": {"seconds": 1424208361, "microseconds": 993842}, "event": "POWERDOWN"} 17 | public static class Timestamp { 18 | 19 | @JsonProperty 20 | public long seconds; 21 | @JsonProperty 22 | public long microseconds; 23 | } 24 | 25 | @JsonProperty 26 | public String event; 27 | @JsonProperty 28 | public Timestamp timestamp; 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/common/QApiException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.qapi.common; 6 | 7 | /** 8 | * 9 | * @author shevek 10 | */ 11 | public class QApiException extends Exception { 12 | 13 | public QApiException() { 14 | } 15 | 16 | public QApiException(String message) { 17 | super(message); 18 | } 19 | 20 | public QApiException(String message, Throwable cause) { 21 | super(message, cause); 22 | } 23 | 24 | public QApiException(Throwable cause) { 25 | super(cause); 26 | } 27 | } -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/common/QApiGreeting.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.qapi.common; 6 | 7 | import com.fasterxml.jackson.annotation.JsonProperty; 8 | import java.util.List; 9 | import org.anarres.qemu.qapi.api.VersionInfo; 10 | 11 | /** 12 | * The QEmu version and capability information. 13 | * 14 | * This information is sent to the client on connection. 15 | * 16 | * @author shevek 17 | */ 18 | public class QApiGreeting extends QApiObject { 19 | 20 | public static class QMPVersion extends QApiObject { 21 | 22 | @JsonProperty 23 | public VersionInfo version; 24 | @JsonProperty 25 | public List capabilities; 26 | } 27 | @JsonProperty 28 | public QMPVersion QMP; 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/common/QApiObject.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.qapi.common; 6 | 7 | import com.fasterxml.jackson.core.JsonProcessingException; 8 | import com.fasterxml.jackson.databind.ObjectMapper; 9 | 10 | /** 11 | * The base of all QApi objects. 12 | * 13 | * @author shevek 14 | */ 15 | public abstract class QApiObject { 16 | 17 | @Override 18 | public String toString() { 19 | try { 20 | ObjectMapper mapper = new ObjectMapper(); 21 | return mapper.writeValueAsString(this); 22 | } catch (JsonProcessingException e) { 23 | return String.valueOf(e); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/common/QApiResponse.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.qapi.common; 6 | 7 | import com.fasterxml.jackson.annotation.JsonProperty; 8 | 9 | /** 10 | * 11 | * @author shevek 12 | */ 13 | public class QApiResponse extends QApiObject { 14 | 15 | @JsonProperty("return") 16 | public V _return; 17 | @JsonProperty 18 | public QApiError error; 19 | 20 | public boolean isError() { 21 | return error != null; 22 | } 23 | 24 | public V getResult() throws QApiException { 25 | if (isError()) 26 | throw new QApiException(error.desc); 27 | return _return; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/common/QApiType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.qapi.common; 6 | 7 | import com.fasterxml.jackson.annotation.JsonIgnore; 8 | import java.util.ArrayList; 9 | import java.util.List; 10 | import javax.annotation.CheckForNull; 11 | import javax.annotation.Nonnull; 12 | 13 | /** 14 | * A QApi Type, essentially a structure. 15 | * 16 | * @author shevek 17 | */ 18 | public abstract class QApiType extends QApiObject { 19 | 20 | @JsonIgnore 21 | @Nonnull 22 | public List getFieldNames() { 23 | return new ArrayList(); 24 | } 25 | 26 | @CheckForNull 27 | public Object getFieldByName(String name) throws NoSuchFieldException { 28 | throw new NoSuchFieldException(name); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/common/QApiUnion.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.qapi.common; 6 | 7 | /** 8 | * A QApi Union. 9 | * 10 | * @author shevek 11 | */ 12 | public interface QApiUnion { 13 | 14 | /** 15 | * Returns true if this is a valid union. 16 | * 17 | * i.e. exactly one field is set. 18 | */ 19 | boolean isValidUnion(); 20 | } 21 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/common/QmpCapabilitiesCommand.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.qapi.common; 6 | 7 | /** 8 | * 9 | * @author shevek 10 | */ 11 | public class QmpCapabilitiesCommand extends QApiCommand { 12 | 13 | public static class Response extends QApiResponse { 14 | } 15 | 16 | public QmpCapabilitiesCommand() { 17 | super("qmp_capabilities", Response.class, null); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /qemu-qapi/src/main/java/org/anarres/qemu/qapi/common/package-info.java: -------------------------------------------------------------------------------- 1 | /** Base and connection classes for the QApi protocol. */ 2 | package org.anarres.qemu.qapi.common; 3 | -------------------------------------------------------------------------------- /qemu-qapi/src/test/java/org/anarres/qemu/qapi/common/QApiTestUtils.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this template, choose Tools | Templates 3 | * and open the template in the editor. 4 | */ 5 | package org.anarres.qemu.qapi.common; 6 | 7 | import com.fasterxml.jackson.databind.ObjectMapper; 8 | import java.io.IOException; 9 | import javax.annotation.CheckForNull; 10 | import javax.annotation.Nonnull; 11 | 12 | /** 13 | * 14 | * @author shevek 15 | */ 16 | public class QApiTestUtils { 17 | 18 | @Nonnull 19 | public static String toJson(@CheckForNull Object o) throws IOException { 20 | return getConfiguredObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(o); 21 | } 22 | 23 | @Nonnull 24 | public static T fromJson(@Nonnull String text, @Nonnull Class type) throws IOException { 25 | return getConfiguredObjectMapper().readValue(text, type); 26 | } 27 | 28 | public static ObjectMapper getConfiguredObjectMapper() { 29 | return new ObjectMapper().findAndRegisterModules(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /qemu-qapi/src/test/java/org/anarres/qemu/qapi/scratch/ScratchTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package org.anarres.qemu.qapi.scratch; 7 | 8 | import java.net.InetSocketAddress; 9 | import org.anarres.qemu.exec.QEmuTestUtils; 10 | import org.anarres.qemu.qapi.common.QApiConnection; 11 | import org.junit.Ignore; 12 | import org.junit.Test; 13 | 14 | /** 15 | * 16 | * @author shevek 17 | */ 18 | public class ScratchTest { 19 | 20 | @Ignore 21 | @Test 22 | public void testScratch() throws Exception { 23 | InetSocketAddress address = new InetSocketAddress("localhost", 4444); 24 | QApiConnection connection = new QApiConnection(address); 25 | QEmuTestUtils.inspect(connection); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name='qemu-java' 2 | include 'qemu-qapi','qemu-exec', 'qemu-image', 'qemu-manager', 'qemu-examples' 3 | -------------------------------------------------------------------------------- /src/main/ghpages/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Javadoc 4 | 5 | 6 | --------------------------------------------------------------------------------