Repository URL to install this package:
|
Version:
4.0.112 ▾
|
contego
/
home
/
tvault
/
.virtenv
/
lib
/
python2.7
/
site-packages
/
oslo_messaging
/
notify
/
messaging.pyc
|
|---|
ó
čEYc @ s d Z d d l Z d d l Z d d l m Z d d l m Z e j e Z d e j
f d YZ d e f d YZ d S( s
Notification drivers for sending notifications via messaging.
The messaging drivers publish notification messages to notification
listeners.
The driver will block the notifier's thread until the notification message has
been passed to the messaging transport. There is no guarantee that the
notification message will be consumed by a notification listener.
Notification messages are sent 'at-most-once' - ensuring that they are not
duplicated.
If the connection to the messaging service is not active when a notification is
sent this driver will block waiting for the connection to complete. If the
connection fails to complete, the driver will try to re-establish that
connection. By default this will continue indefinitely until the connection
completes. However, the retry parameter can be used to have the notification
send fail with a MessageDeliveryFailure after the given number of retries.
iÿÿÿÿN( t _LE( t notifiert MessagingDriverc B s# e Z d Z d d Z d Z RS( sW Send notifications using the 1.0 message format.
This driver sends notifications over the configured messaging transport,
but without any message envelope (also known as message format 1.0).
This driver should only be used in cases where there are existing consumers
deployed which do not support the 2.0 message format.
g ð?c C s) t t | j | | | | | _ d S( N( t superR t __init__t version( t selft conft topicst transportR ( ( sT /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_messaging/notify/messaging.pyR ; s c C s¢ | j } x | j D] } t j d d | | f } y) | j j | | | d | j d | Wq t k
r t j t
d t d | d | q Xq Wd S( Nt topics %s.%sR t retrys= Could not send notification to %(topic)s. Payload=%(message)st message( t lowerR t oslo_messagingt TargetR t _send_notificationR t Exceptiont LOGt exceptionR t dict( R t ctxtR t priorityR R
t target( ( sT /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_messaging/notify/messaging.pyt notify? s
( t __name__t
__module__t __doc__R R ( ( ( sT /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_messaging/notify/messaging.pyR 0 s t MessagingV2Driverc B s e Z d Z d Z RS( s0 Send notifications using the 2.0 message format.c K s# t t | j | d d | d S( NR g @( R R R ( R R t kwargs( ( sT /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_messaging/notify/messaging.pyR Q s ( R R R R ( ( ( sT /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_messaging/notify/messaging.pyR M s (
R t loggingR t oslo_messaging._i18nR t oslo_messaging.notifyR t getLoggerR R t DriverR R ( ( ( sT /home/tvault/.virtenv/lib/python2.7/site-packages/oslo_messaging/notify/messaging.pyt <module>% s