crossbar.master.node.node¶
Classes¶
Crossbar.io Master node personality. |
|
CFC Node manager. This is responsible for starting and stopping |
Module Contents¶
- class FabricCenterNode(personality, cbdir=None, reactor=None, native_workers=None, options=None)[source]¶
Bases:
crossbar.edge.node.node.FabricNodeCrossbar.io Master node personality.
- load_config(configfile=None)[source]¶
Load the node configuration of CFC itself. The base node configuration is built into CFC, but can be overridden (partially) and extended by providing a regular, local node configuration file.
When such a file exists:
and it contains a controller section, these take precedence over
the builtin values. - and it contains a workers section (a list of workers), these are _added_ to the builtin workers.
- start(node_id=None)[source]¶
Starts this node. This will start a node controller and then spawn new worker processes as needed.
The node keys (
load_keys) and configuration (load_config) has to be loaded before starting the node.This is the _third_ function being called after the Node has been instantiated.
- class FabricServiceNodeManager(config, reactor, personality, node)[source]¶
Bases:
autobahn.twisted.wamp.ApplicationSessionCFC Node manager. This is responsible for starting and stopping management realms
- async _initialize_mrealm(mrealm)[source]¶
Initializes a single management realm:
start a respective realm on the router worker of this master node. Currently there is only one router worker statically configured (named “cfrouter1”).
2. start a couple of roles on the management realm (see BUILTIN_ROLES) 3.
- Parameters:
mrealm (
cfxdb.mrealm.management_realm.ManagementRealm) – The management realm to initialize.- Returns:
- async onJoin(details: autobahn.wamp.types.ComponentConfig)[source]¶
Implements
autobahn.wamp.interfaces.ISession.onJoin()
- onLeave(details)[source]¶
Implements
autobahn.wamp.interfaces.ISession.onLeave()