crossbar.edge.worker.hostmonitor

Classes

HostMonitor

Gather resource usage statistics and feed them back to the client

HostMonitorProcess

Internal run-time representation of a native worker (router or

Module Contents

class HostMonitor(config=None, reactor=None, personality=None)[source]

Bases: crossbar.worker.controller.WorkerController

Gather resource usage statistics and feed them back to the client

WORKER_TITLE = 'HostMonitor'[source]
WORKER_TYPE = 'hostmonitor'[source]
_config = None[source]
_is_running = False[source]
_loop()[source]
_monitors[source]
_process[source]
_publish(hdata)[source]
_run = False[source]
get_monitoring(sensors=None, details=None)[source]
log[source]
onJoin(details)[source]

Called when worker process has joined the node management realm.

onLeave(details)[source]

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

start_monitoring(config, details=None)[source]

Start monitoring.

Parameters:

config (dict) – Monitoring configuration.

stop_monitoring(details=None)[source]
class HostMonitorProcess(controller, id, who=None, keeplog=None)[source]

Bases: crossbar.node.worker.NativeWorkerProcess

Internal run-time representation of a native worker (router or container currently) process.

LOGNAME = 'HostMon'[source]
TYPE = 'hostmonitor'[source]