def onConnect(self): """ Called when the worker has connected to the node's management router. """ self._node_id = self.config.extra.node self._worker_id = self.config.extra.worker self._uri_prefix = u'crossbar.worker.{}'.format(self._worker_id) NativeProcessSession.onConnect(self, False) self._module_tracker = TrackingModuleReloader(snapshot=False) self._profiles = {} # flag indicating when worker is shutting down self._is_shutting_down = False # Jinja2 templates for Web (like WS status page et al) # templates_dir = os.path.abspath(pkg_resources.resource_filename("crossbar", "web/templates")) self.log.debug("Using Web templates from {templates_dir}", templates_dir=templates_dir) self._templates = jinja2.Environment(loader=jinja2.FileSystemLoader(templates_dir)) self.join(self.config.realm)
def onConnect(self): """ Called when the worker has connected to the node's management router. """ self._node_id = self.config.extra.node self._uri_prefix = 'crossbar.node.{}.worker.{}'.format( self.config.extra.node, self.config.extra.worker) NativeProcessSession.onConnect(self, False) self._module_tracker = TrackingModuleReloader() self._profiles = {} # flag indicating when worker is shutting down self._is_shutting_down = False # Jinja2 templates for Web (like WS status page et al) # templates_dir = os.path.abspath( pkg_resources.resource_filename("crossbar", "web/templates")) self.log.debug("Using Web templates from {templates_dir}", templates_dir=templates_dir) self._templates = jinja2.Environment( loader=jinja2.FileSystemLoader(templates_dir)) self.join(self.config.realm)
def onConnect(self): # self._uri_prefix = 'crossbar.node.{}'.format(self.config.extra.node) self._uri_prefix = 'crossbar.node.{}'.format(self._node_id) NativeProcessSession.onConnect(self, False) # self.join(self.config.realm) self.join(self._realm)
def onConnect(self): #self._uri_prefix = 'crossbar.node.{}'.format(self.config.extra.node) self._uri_prefix = 'crossbar.node.{}'.format(self._node_id) NativeProcessSession.onConnect(self, False) #self.join(self.config.realm) self.join(self._realm)
def onConnect(self): self.log.debug("Connected to node management router") NativeProcessSession.onConnect(self, False) # self.join(self.config.realm) self.join(self._realm)
def onConnect(self): self.log.debug("Connected to node management router") NativeProcessSession.onConnect(self, False) # self.join(self.config.realm) self.join(self._realm)
def onConnect(self): self.log.debug("Connected to node management router") # self._uri_prefix = u'crossbar.node.{}'.format(self.config.extra.node) self._uri_prefix = u'crossbar.node.{}'.format(self._node_id) NativeProcessSession.onConnect(self, False) # self.join(self.config.realm) self.join(self._realm)
def onConnect(self): self.log.debug("Connected to node management router") # self._uri_prefix = u'crossbar.node.{}'.format(self.config.extra.node) self._uri_prefix = u'crossbar.node.{}'.format(self._node_id) NativeProcessSession.onConnect(self, False) # self.join(self.config.realm) self.join(self._realm)
def onConnect(self): """ Called when the worker has connected to the node's management router. """ self._uri_prefix = 'crossbar.node.{}.worker.{}'.format(self.config.extra.node, self.config.extra.worker) NativeProcessSession.onConnect(self, False) self._module_tracker = TrackingModuleReloader(debug=True) self.join(self.config.realm)
def onConnect(self): """ Called when the worker has connected to the node's management router. """ self._uri_prefix = 'crossbar.node.{}.worker.{}'.format(self.config.extra.node, self.config.extra.worker) NativeProcessSession.onConnect(self, False) self._module_tracker = TrackingModuleReloader(debug=True) self.join(self.config.realm)
def onConnect(self): """ Called when the worker has connected to the node's management router. """ self._uri_prefix = 'crossbar.node.{}.worker.{}'.format(self.config.extra.node, self.config.extra.worker) NativeProcessSession.onConnect(self, False) self._module_tracker = TrackingModuleReloader(debug=True) self._profiles = {} # Jinja2 templates for Web (like WS status page et al) # templates_dir = os.path.abspath(pkg_resources.resource_filename("crossbar", "web/templates")) self.log.debug("Using Web templates from {templates_dir}", templates_dir=templates_dir) self._templates = jinja2.Environment(loader=jinja2.FileSystemLoader(templates_dir)) self.join(self.config.realm)