|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.curator.ensemble.fixed.FixedEnsembleProvider
public class FixedEnsembleProvider
Standard ensemble provider that wraps a fixed connection string
| Constructor Summary | |
|---|---|
FixedEnsembleProvider(String connectionString)
The connection string to use |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FixedEnsembleProvider(String connectionString)
connectionString - connection string| Method Detail |
|---|
public void start()
throws Exception
EnsembleProviderCuratorZookeeperClient.start() is
called
start in interface EnsembleProviderException - errors
public void close()
throws IOException
EnsembleProviderCuratorZookeeperClient.close() is called
close in interface Closeableclose in interface EnsembleProviderIOException - errorspublic String getConnectionString()
EnsembleProvider
getConnectionString in interface EnsembleProviderZooKeeper.ZooKeeper(String, int, Watcher) etc.)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||