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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultConnectionStrategy
public DefaultConnectionStrategy()
connect
public void connect(String serverAddress,
int timeout,
org.apache.zookeeper.Watcher watcher,
ZkClientConnectionStrategy.ZkUpdate updater)
throws IOException,
InterruptedException,
TimeoutException
- Specified by:
connect
in class ZkClientConnectionStrategy
- Throws:
IOException
InterruptedException
TimeoutException
reconnect
public void reconnect(String serverAddress,
int zkClientTimeout,
org.apache.zookeeper.Watcher watcher,
ZkClientConnectionStrategy.ZkUpdate updater)
throws IOException
- Specified by:
reconnect
in class ZkClientConnectionStrategy
- Throws:
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.