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.ZkClientConnectionStrategy
ZkClientConnectionStrategy.ConnectedListener, ZkClientConnectionStrategy.DisconnectedListener, ZkClientConnectionStrategy.ZkUpdate
-
-
Constructor Summary
Constructors Constructor Description DefaultConnectionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connect(String serverAddress, int timeout, org.apache.zookeeper.Watcher watcher, ZkClientConnectionStrategy.ZkUpdate updater)
void
reconnect(String serverAddress, int zkClientTimeout, org.apache.zookeeper.Watcher watcher, ZkClientConnectionStrategy.ZkUpdate updater)
-
Methods inherited from class org.apache.solr.common.cloud.ZkClientConnectionStrategy
addConnectedListener, addDisconnectedListener, connected, createZooKeeper, disconnected, forName, getZkCredentialsToAddAutomatically, hasZkCredentialsToAddAutomatically, newZooKeeperInstance, removeDisconnectedListener, setZkCredentialsToAddAutomatically
-
-
-
-
Method Detail
-
connect
public void connect(String serverAddress, int timeout, org.apache.zookeeper.Watcher watcher, ZkClientConnectionStrategy.ZkUpdate updater) throws IOException, InterruptedException, TimeoutException
- Specified by:
connect
in classZkClientConnectionStrategy
- Throws:
IOException
InterruptedException
TimeoutException
-
reconnect
public void reconnect(String serverAddress, int zkClientTimeout, org.apache.zookeeper.Watcher watcher, ZkClientConnectionStrategy.ZkUpdate updater) throws IOException, InterruptedException, TimeoutException
- Specified by:
reconnect
in classZkClientConnectionStrategy
- Throws:
IOException
InterruptedException
TimeoutException
-
-