| 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/manager/ |
Upload File : |
}9Rc @ s d d l 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 Z d
S( i( t
namedClass( t LandscapeServicet run_landscape_service( t ManagerConfiguration( t RemoteBrokerConnector( t ComponentPublisher( t Managert ManagerServicec B s; e Z d Z e j Z d Z d Z d Z d Z RS( sm
The core Twisted Service which creates and runs all necessary managing
components when started.
c C s_ t t | j | | j | _ t | j | j | _ t | j | j | j | _
d S( N( t superR t __init__t get_pluginst pluginsR t reactort configt managerR t publisher( t selfR
( ( s= /usr/lib/python2.7/dist-packages/landscape/manager/service.pyR s
c C s6 g | j j D]% } t d | j | f ^ q
S( sA Return instances of all the plugins enabled in the configuration.s landscape.manager.%s.%s( R
t plugin_factoriesR t lower( R t plugin_name( ( s= /usr/lib/python2.7/dist-packages/landscape/manager/service.pyR
s c sc t t j j j f d } t j j _ j j } | j
| S( s Start the manager service.
This method does 3 things, in this order:
- Start listening for connections on the manager socket.
- Connect to the broker.
- Add all configured plugins, that will in turn register themselves.
c sL | _ | j _ x! j D] } j j | q W j j j S( N( t brokerR R t addt register_clientt service_name( R t plugin( R ( s= /usr/lib/python2.7/dist-packages/landscape/manager/service.pyt
start_plugins+ s
( R R t startServiceR t startR R R
t connectort connectt addCallback( R R t connected( ( R s= /usr/lib/python2.7/dist-packages/landscape/manager/service.pyR s
c C s1 | j j | j j t t | j d S( s: Stop the manager and close the connection with the broker.N( R t
disconnectR t stopR R t stopService( R ( ( s= /usr/lib/python2.7/dist-packages/landscape/manager/service.pyR"