Package org.apache.solr.common.cloud
Class DefaultConnectionStrategy
- java.lang.Object
- 
- org.apache.solr.common.cloud.ZkClientConnectionStrategy
- 
- org.apache.solr.common.cloud.DefaultConnectionStrategy
 
 
- 
 public class DefaultConnectionStrategy extends ZkClientConnectionStrategy TODO: improve backoff retry impl
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.solr.common.cloud.ZkClientConnectionStrategyZkClientConnectionStrategy.ConnectedListener, ZkClientConnectionStrategy.DisconnectedListener, ZkClientConnectionStrategy.ZkUpdate
 
- 
 - 
Constructor SummaryConstructors Constructor Description DefaultConnectionStrategy()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect(String serverAddress, int timeout, org.apache.zookeeper.Watcher watcher, ZkClientConnectionStrategy.ZkUpdate updater)voidreconnect(String serverAddress, int zkClientTimeout, org.apache.zookeeper.Watcher watcher, ZkClientConnectionStrategy.ZkUpdate updater)- 
Methods inherited from class org.apache.solr.common.cloud.ZkClientConnectionStrategyaddConnectedListener, addDisconnectedListener, connected, createSolrZooKeeper, disconnected, getZkCredentialsToAddAutomatically, hasZkCredentialsToAddAutomatically, setZkCredentialsToAddAutomatically
 
- 
 
- 
- 
- 
Method Detail- 
connectpublic void connect(String serverAddress, int timeout, org.apache.zookeeper.Watcher watcher, ZkClientConnectionStrategy.ZkUpdate updater) throws IOException, InterruptedException, TimeoutException - Specified by:
- connectin class- ZkClientConnectionStrategy
- Throws:
- IOException
- InterruptedException
- TimeoutException
 
 - 
reconnectpublic void reconnect(String serverAddress, int zkClientTimeout, org.apache.zookeeper.Watcher watcher, ZkClientConnectionStrategy.ZkUpdate updater) throws IOException - Specified by:
- reconnectin class- ZkClientConnectionStrategy
- Throws:
- IOException
 
 
- 
 
-