org.apache.curator.ensemble
Interface EnsembleProvider

All Superinterfaces:
Closeable
All Known Implementing Classes:
ExhibitorEnsembleProvider, FixedEnsembleProvider

public interface EnsembleProvider
extends Closeable

Abstraction that provides the ZooKeeper connection string


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
 

Method Detail

start

void start()
           throws Exception
Curator will call this method when CuratorZookeeperClient.start() is called

Throws:
Exception - errors

getConnectionString

String getConnectionString()
Return the current connection string to use. Curator will call this each time it needs to create a ZooKeeper instance

Returns:
connection string (per ZooKeeper.ZooKeeper(String, int, Watcher) etc.)

close

void close()
           throws IOException
Curator will call this method when CuratorZookeeperClient.close() is called

Specified by:
close in interface Closeable
Throws:
IOException - errors


Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.