diff options
author | Harald Musum <musum@yahooinc.com> | 2022-02-17 13:01:32 +0100 |
---|---|---|
committer | Harald Musum <musum@yahooinc.com> | 2022-02-17 13:01:32 +0100 |
commit | 29860079406de9843751214da61ddcc4c5d687f5 (patch) | |
tree | b3314b3010ca000107c915a476620913aacf8879 /zkfacade | |
parent | 78494eabeb01bb4f95d86b16c389850efc0fd7de (diff) |
Remove unused methods
This is not a public API anymore, can be removed
Diffstat (limited to 'zkfacade')
-rw-r--r-- | zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java b/zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java index b82978836d5..82d114ae540 100644 --- a/zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java +++ b/zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java @@ -2,7 +2,6 @@ package com.yahoo.vespa.curator; import com.google.inject.Inject; -import com.yahoo.cloud.config.ConfigserverConfig; import com.yahoo.cloud.config.CuratorConfig; import com.yahoo.path.Path; import com.yahoo.vespa.curator.api.VespaCurator; @@ -92,15 +91,6 @@ public class Curator implements VespaCurator, AutoCloseable { Optional.of(ZK_CLIENT_CONFIG_FILE)); } - // TODO: This can be removed when this package is no longer public API. - public Curator(ConfigserverConfig configserverConfig, @SuppressWarnings("unused") VespaZooKeeperServer server) { - this(ConnectionSpec.create(configserverConfig.zookeeperserver(), - ConfigserverConfig.Zookeeperserver::hostname, - ConfigserverConfig.Zookeeperserver::port, - configserverConfig.zookeeperLocalhostAffinity()), - Optional.of(ZK_CLIENT_CONFIG_FILE)); - } - protected Curator(String connectionSpec, String zooKeeperEnsembleConnectionSpec, Function<RetryPolicy, CuratorFramework> curatorFactory) { this(ConnectionSpec.create(connectionSpec, zooKeeperEnsembleConnectionSpec), curatorFactory.apply(DEFAULT_RETRY_POLICY)); } @@ -139,16 +129,6 @@ public class Curator implements VespaCurator, AutoCloseable { } } - /** - * Returns the ZooKeeper "connect string" used by curator: a comma-separated list of - * host:port of ZooKeeper endpoints to connect to. This may be a subset of - * zooKeeperEnsembleConnectionSpec() if there's some affinity, e.g. for - * performance reasons. - * - * This may be empty but never null - */ - public String connectionSpec() { return connectionSpec.local(); } - /** For internal use; prefer creating a {@link CuratorCounter} */ public DistributedAtomicLong createAtomicCounter(String path) { return new DistributedAtomicLong(curatorFramework, path, new ExponentialBackoffRetry((int) BASE_SLEEP_TIME.toMillis(), MAX_RETRIES)); |