MCPcopy Create free account
hub / github.com/apache/impala / create_client

Method create_client

tests/common/impala_service.py:554–565  ·  view source on GitHub ↗

Creates a new client connection for given protocol to this impalad

(self, protocol)

Source from the content-addressed store, hash-verified

552 return self.is_port_open(self.external_interface, self.hs2_http_port)
553
554 def create_client(self, protocol):
555 """Creates a new client connection for given protocol to this impalad"""
556 port = self.hs2_port
557 if protocol == HS2_HTTP:
558 port = self.hs2_http_port
559 if protocol == BEESWAX:
560 LOG.warning('beeswax protocol is deprecated.')
561 port = self.beeswax_port
562 client = create_connection(to_host_port(self.external_interface, port),
563 protocol=protocol)
564 client.connect()
565 return client
566
567 def create_client_from_vector(self, vector):
568 """A shorthand for create_client with test vector as input.

Callers 1

Calls 3

create_connectionFunction · 0.90
to_host_portFunction · 0.90
connectMethod · 0.45

Tested by

no test coverage detected