SpiceClientGLib.QmpPort¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Associated port channel |
||
r |
Whether the QMP port is ready |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Event emitted whenever a QMP event is received. |
Fields¶
- Inherited:
Class Details¶
- class SpiceClientGLib.QmpPort(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Opaque data structure.
New in version 0.36.
- classmethod get(channel)¶
- Parameters:
channel (
SpiceClientGLib.PortChannel
) – the QMP port channel- Returns:
a weak reference to the associated
SpiceClientGLib.QmpPort
- Return type:
Associate a QMP port helper to the given port channel. If there is already a helper associated with the channel, it is simply returned.
New in version 0.36.
- query_status_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
callback (
Gio.AsyncReadyCallback
orNone
) – The async callback.
Query the run status of all VCPUs.
New in version 0.36.
- query_status_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – The asyncGio.AsyncResult
result- Raises:
- Returns:
The
SpiceClientGLib.QmpStatus
result orNone
, in which case error will be set.- Return type:
Finish the asynchronous status query.
New in version 0.36.
- vm_action_async(action, cancellable, callback, *user_data)¶
- Parameters:
action (
SpiceClientGLib.QmpPortVmAction
) – a VM actioncancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
, orNone
callback (
Gio.AsyncReadyCallback
orNone
) – callback to call when the action is completeuser_data (
object
orNone
) – the data to pass to the callback function
Request the VM to perform an action.
New in version 0.36.
- vm_action_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – The asyncGio.AsyncResult
result- Raises:
- Return type:
Finishes asynchronous VM action and returns the result.
New in version 0.36.
Signal Details¶
- SpiceClientGLib.QmpPort.signals.event(qmp_port, name, node)¶
- Signal Name:
event
- Flags:
- Parameters:
qmp_port (
SpiceClientGLib.QmpPort
) – The object which received the signalname (
str
) – the QMP event name
Event emitted whenever a QMP event is received.
New in version 0.36.
Property Details¶
- SpiceClientGLib.QmpPort.props.channel¶
- Name:
channel
- Type:
- Default Value:
- Flags:
Associated port channel