crossbar.node.controller¶
Classes¶
A native Crossbar.io process (currently: controller, router or container). |
Functions¶
|
Create worker process environment dictionary. |
Module Contents¶
- class NodeController(node)[source]¶
Bases:
crossbar.common.process.NativeProcessA native Crossbar.io process (currently: controller, router or container).
- static _cleanup_worker(reactor, worker)[source]¶
This is called during reactor shutdown and ensures we wait for our subprocesses to shut down nicely.
- _start_guest_worker(worker_id, worker_config, details=None)[source]¶
Start a new guest process on this node.
- Parameters:
config (dict) – The guest process configuration.
- Returns:
The PID of the new process.
- _stop_guest_worker(worker_id, kill=False, details=None)[source]¶
Stops a currently running guest worker.
- Parameters:
worker_id (str) – The ID of the guest worker to stop.
- get_public_key(details: autobahn.wamp.types.CallDetails)[source]¶
- Parameters:
details
- Returns:
- get_status(details=None)[source]¶
Return basic information about this node.
- Parameters:
details (
autobahn.wamp.types.CallDetails) – Call details.- Returns:
Information on the Crossbar.io node.
- Return type:
- get_system_stats(details=None)[source]¶
Return system statistics on this node.
- Parameters:
details (
autobahn.wamp.types.CallDetails) – Call details.- Returns:
Current system statistics for this node.
- Return type:
- get_worker(worker_id, include_stats=False, details=None)[source]¶
Return detailed information about worker.
- get_workers(filter_types=[], details=None)[source]¶
Returns the list of workers currently running on this node.
- sign(data: bytes, details: autobahn.wamp.types.CallDetails)[source]¶
- Parameters:
data
details
- Returns:
- sign_challenge(challenge_method: str, challenge_extra: Dict[str, Any], channel_id_raw: bytes, channel_id_type: str, details: autobahn.wamp.types.CallDetails)[source]¶
- Parameters:
challenge_method
challenge_extra
channel_id_raw
channel_id_type
details
- Returns: