crossbar.edge.node¶
Submodules¶
Classes¶
Crossbar.io node personality. |
|
This is the central node controller for CF nodes. |
Package Contents¶
- class FabricNode(personality, cbdir=None, reactor=None, native_workers=None, options=None)[source]¶
Bases:
crossbar.node.node.NodeCrossbar.io node personality.
- DEFAULT_CONFIG_PATH = 'edge/node/config/bare.json'¶
- NODE_CONTROLLER¶
- _bridge_session = None¶
- _check_for_activation_file = None¶
- _displayed_pairing_message = False¶
- _enable_docker = None¶
- _has_management_config = False¶
- _local_config_applied = False¶
- _maker_no = 1¶
- _management_realm = None¶
- _management_url = None¶
- _manager = None¶
- _manager_runner = None¶
- _node_extra = None¶
- _node_id = None¶
- _realm = 'crossbar'¶
- _was_management_connected = False¶
- _watchdog_looper = None¶
- load_config(configfile=None)[source]¶
Check and load the node configuration from:
from
.crossbar/config.jsonorfrom built-in (empty) default configuration
This is the _second_ function being called after the Node has been instantiated.
IMPORTANT: this function is run _before_ start of Twisted reactor!
- 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 FabricNodeControllerSession(node)[source]¶
Bases:
crossbar.node.controller.NodeControllerThis is the central node controller for CF nodes.
It derives of the node controller base class in CB and adds the following functionality exposed to CFC:
can manage a host Docker daemon
- _docker_client = None¶
- get_status(details=None)[source]¶
Return basic information about this node.
- Returns:
Information on the Crossbar.io node.
- Return type:
- log¶
- request_docker_tty(id, details=None)[source]¶
https://github.com/crossbario/crossbar-fabric-public/blob/master/docs/api/Management-API.md#crossbarfabriccenterremotedockerrequest_tty`