Example #1
0
    def __init__(self,
                 stackParams: dict,
                 msgHandler: Callable,
                 registry: Dict[str, HA],
                 seed=None,
                 sighex: str = None,
                 config=None,
                 msgRejectHandler=None,
                 metrics=NullMetricsCollector(),
                 mt_incoming_size=None,
                 mt_outgoing_size=None):

        KITNetworkInterface.__init__(self, registry=registry)

        simple_zstack_class.__init__(self,
                                     stackParams,
                                     msgHandler,
                                     seed=seed,
                                     sighex=sighex,
                                     config=config,
                                     msgRejectHandler=msgRejectHandler,
                                     metrics=metrics,
                                     mt_incoming_size=mt_incoming_size,
                                     mt_outgoing_size=mt_outgoing_size)

        self._retry_connect = {}
Example #2
0
    def __init__(self,
                 stackParams: dict,
                 msgHandler: Callable,
                 registry: Dict[str, HA],
                 sighex: str = None):
        SimpleRStack.__init__(self, stackParams, msgHandler, sighex)
        KITNetworkInterface.__init__(self, registry=registry)

        # courteous bi-directional joins
        self.connectNicelyUntil = None

        self.reconnectToMissingIn = 6
        self.reconnectToDisconnectedIn = 6
Example #3
0
 def __init__(self,
              stackParams: dict,
              msgHandler: Callable,
              registry: Dict[str, HA],
              seed=None,
              sighex: str = None,
              listenerQuota=DEFAULT_LISTENER_QUOTA,
              remoteQuota=DEFAULT_REMOTE_QUOTA):
     SimpleZStack.__init__(self,
                           stackParams,
                           msgHandler,
                           seed=seed,
                           sighex=sighex,
                           listenerQuota=listenerQuota,
                           remoteQuota=remoteQuota)
     KITNetworkInterface.__init__(self, registry=registry)
Example #4
0
    def __init__(self,
                 stackParams: dict,
                 msgHandler: Callable,
                 registry: Dict[str, HA],
                 seed=None,
                 sighex: str = None,
                 config=None,
                 msgRejectHandler=None):

        KITNetworkInterface.__init__(self, registry=registry)

        simple_zstack_class.__init__(self, stackParams, msgHandler,
                                     seed=seed, sighex=sighex, config=config,
                                     msgRejectHandler=msgRejectHandler)

        self._retry_connect = {}
Example #5
0
    def __init__(self,
                 stackParams: dict,
                 msgHandler: Callable,
                 registry: Dict[str, HA],
                 seed=None,
                 sighex: str = None,
                 config=None):

        SimpleZStack.__init__(self,
                              stackParams,
                              msgHandler,
                              seed=seed,
                              sighex=sighex,
                              config=config)

        KITNetworkInterface.__init__(self, registry=registry)

        self._retry_connect = {}
Example #6
0
    def __init__(self,
                 stackParams: dict,
                 msgHandler: Callable,
                 registry: Dict[str, HA],
                 seed=None,
                 sighex: str = None,
                 config=None,
                 msgRejectHandler=None,
                 metrics=NullMetricsCollector(),
                 mt_incoming_size=None,
                 mt_outgoing_size=None):

        KITNetworkInterface.__init__(self, registry=registry)

        simple_zstack_class.__init__(self, stackParams, msgHandler,
                                     seed=seed, sighex=sighex, config=config,
                                     msgRejectHandler=msgRejectHandler,
                                     metrics=metrics,
                                     mt_incoming_size=mt_incoming_size,
                                     mt_outgoing_size=mt_outgoing_size)

        self._retry_connect = {}