Пример #1
0
 def __init__(self, stackParams: dict, msgHandler: Callable,
              registry: Dict[str, HA], seed=None, sighex: str=None,
              config=None):
     config = config or getConfig()
     Batched.__init__(self)
     KITZStack.__init__(self, stackParams, msgHandler, registry=registry,
                        seed=seed, sighex=sighex, config=config)
     MessageProcessor.__init__(self, allowDictOnly=False)
Пример #2
0
 def __init__(self, stackParams: dict, msgHandler: Callable,
              registry: Dict[str, HA], seed=None, sighex: str=None):
     Batched.__init__(self)
     # TODO: Just to get around the restriction of port numbers changed on
     # Azure. Remove this soon to relax port numbers only but not IP.
     stackParams["mutable"] = stackParams.get("mutable", True)
     stackParams["messageTimeout"] = config.RAETMessageTimeout
     KITRStack.__init__(self, stackParams, msgHandler, registry, sighex)
     MessageProcessor.__init__(self, allowDictOnly=True)
Пример #3
0
 def __init__(self, stackParams: dict, msgHandler: Callable,
              registry: Dict[str, HA], seed=None, sighex: str=None,
              config=None, metrics=NullMetricsCollector()):
     config = config or getConfig()
     Batched.__init__(self, config=config, metrics=metrics)
     KITZStack.__init__(self, stackParams, msgHandler, registry=registry,
                        seed=seed, sighex=sighex, config=config,
                        metrics=metrics,
                        mt_incoming_size=MetricType.INCOMING_NODE_MESSAGE_SIZE,
                        mt_outgoing_size=MetricType.OUTGOING_NODE_MESSAGE_SIZE)
     MessageProcessor.__init__(self, allowDictOnly=False)
Пример #4
0
 def __init__(self,
              stackParams: dict,
              msgHandler: Callable,
              registry: Dict[str, HA],
              seed=None,
              sighex: str = None):
     Batched.__init__(self)
     KITZStack.__init__(self,
                        stackParams,
                        msgHandler,
                        registry=registry,
                        seed=seed,
                        sighex=sighex,
                        listenerQuota=config.LISTENER_MESSAGE_QUOTA,
                        remoteQuota=config.REMOTES_MESSAGE_QUOTA)
     MessageProcessor.__init__(self, allowDictOnly=False)