| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/landscape/broker/ |
Upload File : |
ó
}9Rc @ sœ 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 S(
iÿÿÿÿ( t infot exception( t
maybeDeferred( t
format_object( t gather_results( t remotet HandlerNotFoundErrorc B s e Z d Z RS( s3 A handler for the given message type was not found.( t __name__t
__module__t __doc__( ( ( s; /usr/lib/python2.7/dist-packages/landscape/broker/client.pyR
s t BrokerClientPluginc B s; e Z d Z d Z e Z d „ Z e d „ ƒ Z d „ Z RS( s A convenience for writing L{BrokerClient} plugins.
This provides a register method which will set up a bunch of
reactor handlers in the idiomatic way.
If C{run} is defined on subclasses, it will be called every C{run_interval}
seconds after being registered.
@cvar run_interval: The interval, in seconds, to execute the C{run} method.
If set to C{None}, then C{run} will not be scheduled.
@cvar run_immediately: If C{True} the plugin will be run immediately after
it is registered.
i c C sl | | _ t | d d ƒ d k rh | j r7 | j ƒ n | j d k rh | j j j | j | j ƒ qh n d S( Nt run( t clientt getattrt Nonet run_immediatelyR t run_intervalt reactort
call_every( t selfR ( ( s; /usr/lib/python2.7/dist-packages/landscape/broker/client.pyt register s
c C s | j S( s% An alias for the C{client} attribute.( R ( R ( ( s; /usr/lib/python2.7/dist-packages/landscape/broker/client.pyt registry( s c s5 ‡ ‡ ‡ f d † } | j j j d | f | ƒ d S( sV
Register a callback fired upon a C{message-type-acceptance-changed}.
c s | r ˆ ˆ ˆ Ž Sd S( N( ( t
acceptance( t callablet argst kwargs( s; /usr/lib/python2.7/dist-packages/landscape/broker/client.pyt acceptance_changed2 s s message-type-acceptance-changedN( R R t call_on( R t typeR R R R ( ( R R R s; /usr/lib/python2.7/dist-packages/landscape/broker/client.pyt call_on_accepted- s (
R R R R t FalseR R t propertyR R ( ( ( s; /usr/lib/python2.7/dist-packages/landscape/broker/client.pyR
s
t BrokerClientc B s¡ e Z d Z d Z d „ Z e d „ ƒ Z d „ Z d „ Z d „ Z d „ Z
d „ Z e d „ ƒ Z d
„ Z
d „ Z e d „ ƒ Z d
„ Z e d „ ƒ Z RS( s Basic plugin registry for clients that have to deal with the broker.
This knows about the needs of a client when dealing with the Landscape
broker, including interest in messages of a particular type delivered
by the broker to the client.
@cvar name: The name used when registering to the broker, it must be
defined by sub-classes.
@ivar broker: A reference to a connected L{RemoteBroker}, it must be set
by the connecting machinery at service startup.
@param reactor: A L{LandscapeReactor}.
R c C sp t t | ƒ j ƒ | | _ d | _ i | _ g | _ i | _ | j j d | j
ƒ | j j d | j ƒ d S( Ns impending-exchanges broker-reconnect( t superR t __init__R R t brokert _registered_messagest _pluginst
_plugin_namesR t notify_exchanget handle_reconnect( R R ( ( s; /usr/lib/python2.7/dist-packages/landscape/broker/client.pyR"