summaryrefslogtreecommitdiffstats
path: root/zkfacade
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2017-07-03 18:16:31 +0200
committerJon Bratseth <bratseth@yahoo-inc.com>2017-07-03 18:16:31 +0200
commit58565e7ce1a6ce76e3e663472c5fd72f3fdd045a (patch)
tree459bc14e71fea236622b675b8e8763e342d1e761 /zkfacade
parentfbaa184957104b7e0e23a4fbf42e16afffd17a39 (diff)
Expose method
Diffstat (limited to 'zkfacade')
-rw-r--r--zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java6
1 files changed, 5 insertions, 1 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 80171337ad2..41c774f13c3 100644
--- a/zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java
+++ b/zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java
@@ -81,7 +81,11 @@ public class Curator {
return sb.toString();
}
- private Curator(String connectionSpec) {
+ /**
+ * Create a curator instance which connects to the zookeeper servers given by a connection spec
+ * on the format "hostname1:port,hostname2:port" ...
+ */
+ public Curator(String connectionSpec) {
Objects.requireNonNull(connectionSpec, "The curator connection spec cannot be null");
this.connectionSpec = connectionSpec;
this.serverCount = connectionSpec.split(",").length;