java.lang.AutoCloseable, java.io.CloseableExhibitorEnsembleProvider, FixedEnsembleProviderpublic interface EnsembleProvider
extends java.io.Closeable
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Curator will call this method when
CuratorZookeeperClient.close() is called |
java.lang.String |
getConnectionString() |
Return the current connection string to use.
|
void |
setConnectionString(java.lang.String connectionString) |
A new connection string event was received
|
void |
start() |
Curator will call this method when
CuratorZookeeperClient.start() is
called |
boolean |
updateServerListEnabled() |
Return true if this ensemble provider supports
ZooKeeper.updateServerList(String) |
void start()
throws java.lang.Exception
CuratorZookeeperClient.start() is
calledjava.lang.Exception - errorsjava.lang.String getConnectionString()
ZooKeeper(String, int, Watcher) etc.)void close()
throws java.io.IOException
CuratorZookeeperClient.close() is calledclose in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOException - errorsvoid setConnectionString(java.lang.String connectionString)
connectionString - the new connection stringboolean updateServerListEnabled()
ZooKeeper.updateServerList(String)Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.