Package ganeti :: Package hypervisor :: Package hv_kvm :: Module monitor :: Class MonitorSocket
[hide private]
[frames] | no frames]

Class MonitorSocket

source code


Instance Methods [hide private]
 
__init__(self, monitor_filename)
Instantiates the MonitorSocket object.
source code
 
_check_socket(self) source code
 
_check_connection(self)
Make sure that the connection is established.
source code
 
connect(self)
Connects to the monitor.
source code
 
close(self)
Closes the socket
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _SOCKET_TIMEOUT = 5
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, monitor_filename)
(Constructor)

source code 

Instantiates the MonitorSocket object.

Parameters:
  • monitor_filename (string) - the filename of the UNIX raw socket on which the monitor (QMP or simple one) is listening
Overrides: object.__init__

connect(self)

source code 

Connects to the monitor.

Connects to the UNIX socket

Raises:

close(self)

source code 

Closes the socket

It cannot be used after this call.