|
ZIO
Python and C++ interface to ZeroMQ and Zyre
|


Public Member Functions | |
| def | __init__ (self, socket_type=zmq.ROUTER, verbose=False) |
| def | mediate (self) |
| def | destroy (self) |
| def | process_client (self, sender, msg) |
| def | process_worker (self, sender, msg) |
| def | delete_worker (self, worker, disconnect) |
| def | require_worker (self, address) |
| def | require_service (self, name) |
| def | bind (self, endpoint) |
| def | service_internal (self, service, msg) |
| def | send_heartbeats (self) |
| def | purge_workers (self) |
| def | worker_waiting (self, worker) |
| def | dispatch (self, service, msg) |
| def | send_to_worker (self, worker, command, option, msg=None) |
Public Attributes | |
| verbose | |
Static Public Attributes | |
| string | INTERNAL_SERVICE_PREFIX = b"mmi." |
| int | HEARTBEAT_LIVENESS = 3 |
| int | HEARTBEAT_INTERVAL = 2500 |
| int | HEARTBEAT_EXPIRY = HEARTBEAT_INTERVAL * HEARTBEAT_LIVENESS |
| ctx = None | |
| socket = None | |
| poller = None | |
| heartbeat_at = None | |
| services = None | |
| workers = None | |
| waiting = None | |
| bool | verbose = False |
Majordomo Protocol broker A minimal implementation of http:#rfc.zeromq.org/spec:7 and spec:8
| def zio.domo.broker.Broker.__init__ | ( | self, | |
socket_type = zmq.ROUTER, |
|||
verbose = False |
|||
| ) |
| def zio.domo.broker.Broker.bind | ( | self, | |
| endpoint | |||
| ) |
| def zio.domo.broker.Broker.delete_worker | ( | self, | |
| worker, | |||
| disconnect | |||
| ) |
| def zio.domo.broker.Broker.destroy | ( | self | ) |
| def zio.domo.broker.Broker.dispatch | ( | self, | |
| service, | |||
| msg | |||
| ) |
| def zio.domo.broker.Broker.mediate | ( | self | ) |
| def zio.domo.broker.Broker.process_client | ( | self, | |
| sender, | |||
| msg | |||
| ) |
| def zio.domo.broker.Broker.process_worker | ( | self, | |
| sender, | |||
| msg | |||
| ) |
| def zio.domo.broker.Broker.purge_workers | ( | self | ) |
| def zio.domo.broker.Broker.require_service | ( | self, | |
| name | |||
| ) |
| def zio.domo.broker.Broker.require_worker | ( | self, | |
| address | |||
| ) |
| def zio.domo.broker.Broker.send_heartbeats | ( | self | ) |
| def zio.domo.broker.Broker.send_to_worker | ( | self, | |
| worker, | |||
| command, | |||
| option, | |||
msg = None |
|||
| ) |
| def zio.domo.broker.Broker.service_internal | ( | self, | |
| service, | |||
| msg | |||
| ) |
| def zio.domo.broker.Broker.worker_waiting | ( | self, | |
| worker | |||
| ) |
|
static |
|
static |
|
static |
1.8.13