public class FixedEnsembleProvider extends Object implements EnsembleProvider
| Constructor and Description |
|---|
FixedEnsembleProvider(String connectionString)
The connection string to use
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Curator will call this method when
CuratorZookeeperClient.close() is called |
String |
getConnectionString()
Return the current connection string to use.
|
void |
start()
Curator will call this method when
CuratorZookeeperClient.start() is
called |
public FixedEnsembleProvider(String connectionString)
connectionString - connection stringpublic void start()
throws Exception
EnsembleProviderCuratorZookeeperClient.start() is
calledstart in interface EnsembleProviderException - errorspublic void close()
throws IOException
EnsembleProviderCuratorZookeeperClient.close() is calledclose in interface Closeableclose in interface AutoCloseableclose in interface EnsembleProviderIOException - errorspublic String getConnectionString()
EnsembleProvidergetConnectionString in interface EnsembleProviderZooKeeper.ZooKeeper(String, int, Watcher) etc.)Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.