Repository URL to install this package:
|
Version:
3.4.52 ▾
|
ó
±EYc @ sÍ d Z d d l Z d d l m Z d Z d Z d Z d Z d Z i e d e 6e d
e 6e d e 6e d e 6e d
e 6Z d e
f d YZ d e f d YZ d e f d YZ
d S( sÂ
Asynchronous event notifications from virtualization drivers.
This module defines a set of classes representing data for
various asynchronous events that can occur in a virtualization
driver.
iÿÿÿÿN( t _i i i i i t Startedt Stoppedt Pausedt Resumedt Suspendedt Eventc B s, e Z d Z d d Z d Z d Z RS( sU Base class for all events emitted by a hypervisor.
All events emitted by a virtualization driver are
subclasses of this base object. The only generic
information recorded in the base class is a timestamp
indicating when the event first occurred. The timestamp
is recorded as fractional seconds since the UNIX epoch.
c C s+ | d k r t j | _ n | | _ d S( N( t Nonet timet timestamp( t selfR ( ( sD /home/tvault/.virtenv/lib/python2.7/site-packages/nova/virt/event.pyt __init__4 s c C s | j S( N( R ( R
( ( sD /home/tvault/.virtenv/lib/python2.7/site-packages/nova/virt/event.pyt
get_timestamp: s c C s d | j j | j f S( Ns <%s: %s>( t __class__t __name__R ( R
( ( sD /home/tvault/.virtenv/lib/python2.7/site-packages/nova/virt/event.pyt __repr__= s N( R t
__module__t __doc__R R R R ( ( ( sD /home/tvault/.virtenv/lib/python2.7/site-packages/nova/virt/event.pyR * s t
InstanceEventc B s, e Z d Z d d Z d Z d Z RS( sú Base class for all instance events.
All events emitted by a virtualization driver which
are associated with a virtual domain instance are
subclasses of this base object. This object records
the UUID associated with the instance.
c C s# t t | j | | | _ d S( N( t superR R t uuid( R
R R ( ( sD /home/tvault/.virtenv/lib/python2.7/site-packages/nova/virt/event.pyR L s c C s | j S( N( R ( R
( ( sD /home/tvault/.virtenv/lib/python2.7/site-packages/nova/virt/event.pyt get_instance_uuidQ s c C s d | j j | j | j f S( Ns <%s: %s, %s>( R
R R R ( R
( ( sD /home/tvault/.virtenv/lib/python2.7/site-packages/nova/virt/event.pyR T s N( R R R R R R R ( ( ( sD /home/tvault/.virtenv/lib/python2.7/site-packages/nova/virt/event.pyR C s t LifecycleEventc B s5 e Z d Z d d Z d Z d Z d Z RS( sD Class for instance lifecycle state change events.
When a virtual domain instance lifecycle state changes,
events of this class are emitted. The EVENT_LIFECYCLE_XX
constants defined why lifecycle change occurred. This
event allows detection of an instance starting/stopping
without need for polling.
c C s&