Current Path : /usr/lib/python2.7/dist-packages/landscape/broker/ |
Current File : //usr/lib/python2.7/dist-packages/landscape/broker/amp.pyc |
ó ÍÿŠTc @ s d d l m Z m Z m Z d d l m Z m Z d d l m Z m Z d d l m Z d d l m Z d d l m Z d d l m Z d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d „ Z d S( iÿÿÿÿ( t maybeDeferredt executet succeed( t RemoteObjectt MethodCallArgument( t ComponentConnectort get_remote_methods( t BrokerServer( t BrokerClient( t Monitor( t Managert RemoteBrokerc B s e Z d „ Z d „ Z RS( c s2 | j ƒ } ‡ ‡ ‡ f d † } | j | ƒ | S( s8 Call C{callable} if C{type} is an accepted message type.c s ˆ | k r ˆ ˆ Œ Sd S( N( ( t result( t callablet argst type( s8 /usr/lib/python2.7/dist-packages/landscape/broker/amp.pyt got_accepted_types s ( t get_accepted_message_typest addCallback( t selfR R R t deferred_typesR ( ( R R R s8 /usr/lib/python2.7/dist-packages/landscape/broker/amp.pyt call_if_accepted s c s+ | j ˆ j ƒ ƒ } | j ‡ f d † ƒ S( sQ Call a given handler as soon as a certain event occurs. @param handlers: A dictionary mapping event types to callables, where an event type is string (the name of the event). When the first of the given event types occurs in the broker reactor, the associated callable will be fired. c s ˆ | ƒ S( N( ( t event_type( t handlers( s8 /usr/lib/python2.7/dist-packages/landscape/broker/amp.pyt <lambda> s ( t listen_eventst keysR ( R R R ( ( R s8 /usr/lib/python2.7/dist-packages/landscape/broker/amp.pyt call_on_event s ( t __name__t __module__R R ( ( ( s8 /usr/lib/python2.7/dist-packages/landscape/broker/amp.pyR s t FakeRemoteBrokerc B s) e Z d Z d „ Z d „ Z d „ Z RS( s@ Looks like L{RemoteBroker}, but actually talks to local objects.c C s | | _ | | _ | | _ d S( N( t exchangert message_storet broker_server( R R R R! ( ( s8 /usr/lib/python2.7/dist-packages/landscape/broker/amp.pyt __init__&