Trees | Indices | Help |
|
---|
|
Connection to the QEMU Monitor using the QEMU Monitor Protocol (QMP).
|
|||
|
|||
|
|||
|
|||
QmpMessage |
|
||
|
|||
dict |
|
||
Inherited from Inherited from Inherited from |
|
|||
_FIRST_MESSAGE_KEY = "QMP"
|
|||
_EVENT_KEY = "event"
|
|||
_ERROR_KEY = "error"
|
|||
RETURN_KEY = "return"
|
|||
_RETURN_KEY = "return"
|
|||
ACTUAL_KEY = "actual"
|
|||
_ACTUAL_KEY = "actual"
|
|||
_ERROR_CLASS_KEY = "class"
|
|||
_ERROR_DESC_KEY = "desc"
|
|||
_EXECUTE_KEY = "execute"
|
|||
_ARGUMENTS_KEY = "arguments"
|
|||
_CAPABILITIES_COMMAND = "qmp_capabilities"
|
|||
_MESSAGE_END_TOKEN = "\r\n"
|
|||
Inherited from |
|
|||
Inherited from |
|
Instantiates the MonitorSocket object.
|
Connects to the QMP monitor. Connects to the UNIX socket and makes sure that we can actually send and receive data to the kvm instance via QMP.
|
Extract and parse a QMP message from the given buffer. Seeks for a QMP message in the given buf. If found, it parses it and returns it together with the rest of the characters in the buf. If no message is found, returns None and the whole buffer.
|
Receives a message from QMP and decodes the received JSON object.
|
Encodes and sends a message to KVM using QMP.
|
Executes a QMP command and returns the response of the server.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jan 7 16:23:35 2016 | http://epydoc.sourceforge.net |