def _get_replica_stream_conn(self): protocol, endpoint = replica_tablet.update_stream_python_endpoint() return update_stream.connect(protocol, endpoint, 30)
def _get_master_stream_conn(self): protocol, endpoint = master_tablet.update_stream_python_endpoint() return update_stream.connect(protocol, endpoint, 30)
def _get_update_stream(tblt): protocol, endpoint = tblt.update_stream_python_endpoint() return update_stream.connect(protocol, endpoint, 30)