diff options
author | Jon Bratseth <jonbratseth@yahoo.com> | 2017-07-03 18:17:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-03 18:17:46 +0200 |
commit | bef3f6e443e52daa62ec53deb213e201810dabf8 (patch) | |
tree | 5782cf07b97d2a371d6932e6db2013f93abc9dda /zkfacade/src | |
parent | 67e1f83b280d99fd0e476a4ce48cccb864edbe59 (diff) | |
parent | 58565e7ce1a6ce76e3e663472c5fd72f3fdd045a (diff) |
Merge pull request #2911 from yahoo/bratseth/expose-method
Expose method
Diffstat (limited to 'zkfacade/src')
-rw-r--r-- | zkfacade/src/main/java/com/yahoo/vespa/curator/Curator.java | 6 |
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; |