crossbar.edge.node.management

Classes

NodeManagementBridgeSession

The management bridge is a WAMP session that lives on the local management router,

NodeManagementSession

This session is used for the uplink connection to

Module Contents

class NodeManagementBridgeSession(config)[source]

Bases: autobahn.twisted.wamp.ApplicationSession

The 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.

_authmethod = 'trusted'[source]
_authrole = 'trusted'[source]
_heartbeat = 0[source]
_heartbeat_call = None[source]
_heartbeat_time_ns = None[source]
_management_realm = None[source]
_manager = None[source]
_node_id = None[source]
_regs[source]
_send_heartbeat()[source]
_start_call_forwarding()[source]
_start_cfc_heartbeat()[source]
_start_event_forwarding()[source]
_stop_call_forwarding()[source]
_stop_cfc_heartbeat()[source]
_stop_event_forwarding()[source]
_sub_on_mgmt = None[source]
_sub_on_reg_create = None[source]
_sub_on_reg_delete = None[source]
_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.

detach_manager()[source]

Detach management uplink session (eg when that session has been lost).

log[source]
onJoin(details)[source]

Implements autobahn.wamp.interfaces.ISession.onJoin()

class NodeManagementSession(runner, config=None)[source]

Bases: autobahn.twisted.wamp.ApplicationSession

This session is used for the uplink connection to Crossbar.io Master.

_runner[source]
log[source]
onChallenge(challenge)[source]

Implements autobahn.wamp.interfaces.ISession.onChallenge()

onConnect()[source]

Implements autobahn.wamp.interfaces.ISession.onConnect()

onDisconnect()[source]

Implements autobahn.wamp.interfaces.ISession.onDisconnect()

onJoin(details)[source]

Implements autobahn.wamp.interfaces.ISession.onJoin()

onLeave(details)[source]

Implements autobahn.wamp.interfaces.ISession.onLeave()

onUserError(fail, msg)[source]

Implements autobahn.wamp.interfaces.ISession.onUserError()