def __init__(self, next_connection_selector, n_retries=3, timeout=0.5, n_channels=1, intermediate_channel_waits=0): AbstractProcess.__init__(self) self._scp_request_pipe_lines = dict() self._n_retries = n_retries self._timeout = timeout self._n_channels = n_channels self._intermediate_channel_waits = intermediate_channel_waits self._next_connection_selector = next_connection_selector
def __init__(self, connections, next_connection_selector=None, n_retries=3, timeout=0.5, n_channels=4, intermediate_channel_waits=2): AbstractProcess.__init__(self) self._scp_request_sets = list() for connection in connections: scp_request_set = SCPRequestSet( connection, n_retries=n_retries, packet_timeout=timeout, n_channels=n_channels, intermediate_channel_waits=intermediate_channel_waits) self._scp_request_sets.append(scp_request_set) self._next_connection_selector = next_connection_selector if next_connection_selector is None: self._next_connection_selector = \ MultiConnectionProcessDefaultConnectionSelector(connections) self._connections_used = set()
def __init__(self, connection): AbstractProcess.__init__(self) self._scp_request_set = SCPRequestSet(connection)
def __init__(self, connection_selector): AbstractProcess.__init__(self) self._scp_request_pipeline = None self._connection_selector = connection_selector