File tree Expand file tree Collapse file tree
zookeeper-client-common/src/main/java/com/yahoo/vespa/zookeeper/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import com .yahoo .security .tls .TlsContext ;
55import com .yahoo .vespa .zookeeper .tls .VespaZookeeperTlsContextUtils ;
66import org .apache .zookeeper .client .ZKClientConfig ;
7- import org .apache .zookeeper .server . quorum . QuorumPeerConfig ;
7+ import org .apache .zookeeper .common . ConfigException ;
88
99import java .io .IOException ;
1010import java .nio .file .Files ;
@@ -41,13 +41,13 @@ public ZkClientConfigBuilder() {
4141 this .tlsContext = tlsContext ;
4242 }
4343
44- public ZKClientConfig toConfig (Path configFile ) throws IOException , QuorumPeerConfig . ConfigException {
44+ public ZKClientConfig toConfig (Path configFile ) throws IOException , ConfigException {
4545 String configString = toConfigString ();
4646 Files .createDirectories (configFile .getParent ());
4747 Path tempFile = Files .createTempFile (configFile .toAbsolutePath ().getParent (), "." + configFile .getFileName (), ".tmp" );
4848 Files .writeString (tempFile , configString );
4949 Files .move (tempFile , configFile , StandardCopyOption .ATOMIC_MOVE );
50- return new ZKClientConfig (configFile . toString () );
50+ return new ZKClientConfig (configFile );
5151 }
5252
5353 public ZKClientConfig toConfig () {
You can’t perform that action at this time.
0 commit comments