#NEWLINE# def start( self ) : #NEWLINE# #INDENT# ' Run once when main loop is started ' #NEWLINE# interfaces = _conf . get ( None , 'transports' ) #NEWLINE# self . network . register ( interfaces , [ 'json' ] ) #NEWLINE# self . network . start_listeners ( self . uri ) #NEWLINE# self . storage . start ( ) #NEWLINE# self . storage . add_node ( proxy_control_uri ) #NEWLINE# proxy_control_uri = _conf . get ( None , 'control_proxy' ) #NEWLINE# _log . debug ( ( 'Start control API on %s with uri: %s and proxy: %s' % ( self . id , self . control_uri , proxy_control_uri ) ) ) #NEWLINE# if ( proxy_control_uri is not None ) : #NEWLINE# #INDENT# self . control . start ( node = self , uri = proxy_control_uri , tunnel = True ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . control_uri is not None ) : #NEWLINE# #INDENT# self . control . start ( node = self , uri = self . control_uri )