use of org.apache.pulsar.client.api.ClientBuilder in project incubator-pulsar by apache.
the class PulsarClientTool method updateConfig.
private void updateConfig() throws UnsupportedAuthenticationException, MalformedURLException {
ClientBuilder clientBuilder = PulsarClient.builder();
if (isNotBlank(this.authPluginClassName)) {
clientBuilder.authentication(authPluginClassName, authParams);
}
clientBuilder.enableTls(this.useTls);
clientBuilder.allowTlsInsecureConnection(this.tlsAllowInsecureConnection);
clientBuilder.tlsTrustCertsFilePath(this.tlsTrustCertsFilePath);
clientBuilder.serviceUrl(serviceURL);
this.produceCommand.updateConfig(clientBuilder);
this.consumeCommand.updateConfig(clientBuilder);
}
Aggregations