crossbar.edge.node.management¶
Classes¶
The management bridge is a WAMP session that lives on the local management router, |
|
This session is used for the uplink connection to |
Module Contents¶
- class NodeManagementBridgeSession(config)[source]¶
Bases:
autobahn.twisted.wamp.ApplicationSessionThe management bridge is a WAMP session that lives on the local management router, but has access to a 2nd WAMP session that lives on the uplink CFC router.
The bridge is responsible for forwarding calls from CFC into the local node, and for forwarding events from the local node to CFC.
- _translate_uri(uri)[source]¶
Translate a local URI (one that is used on the local node management router) to a remote URI (one used on the uplink management session at the CFC router for the management realm).
Example
- crossbar.worker.worker-001.start_manhole
->
crossbarfabriccenter.node.<node_id>.worker.<worker_id>.start_manhole
- attach_manager(manager, management_realm, node_id)[source]¶
Attach management uplink session when the latter has been fully established and is ready to be used.
- Parameters:
manager (instance of autobahn.wamp.protocol.ApplicationSession) – uplink session.
management_realm (unicode) – The management realm that was assigned by CFC to this node.
node_id (unicode) – The node ID that was assigned by CFC to this node.
- onJoin(details)[source]¶
Implements
autobahn.wamp.interfaces.ISession.onJoin()
- class NodeManagementSession(runner, config=None)[source]¶
Bases:
autobahn.twisted.wamp.ApplicationSessionThis session is used for the uplink connection to Crossbar.io Master.
- onJoin(details)[source]¶
Implements
autobahn.wamp.interfaces.ISession.onJoin()
- onLeave(details)[source]¶
Implements
autobahn.wamp.interfaces.ISession.onLeave()