Creates a new client connection for given protocol to this impalad
(self, protocol)
| 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. |
no test coverage detected