Package org.apache.solr.common.cloud
Class ZkClientConnectionStrategy
- java.lang.Object
- 
- org.apache.solr.common.cloud.ZkClientConnectionStrategy
 
- 
- Direct Known Subclasses:
- DefaultConnectionStrategy
 
 public abstract class ZkClientConnectionStrategy extends Object 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceZkClientConnectionStrategy.ConnectedListenerstatic interfaceZkClientConnectionStrategy.DisconnectedListenerstatic interfaceZkClientConnectionStrategy.ZkUpdate
 - 
Constructor SummaryConstructors Constructor Description ZkClientConnectionStrategy()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddConnectedListener(ZkClientConnectionStrategy.ConnectedListener listener)voidaddDisconnectedListener(ZkClientConnectionStrategy.DisconnectedListener listener)abstract voidconnect(String zkServerAddress, int zkClientTimeout, org.apache.zookeeper.Watcher watcher, ZkClientConnectionStrategy.ZkUpdate updater)voidconnected()protected SolrZooKeepercreateSolrZooKeeper(String serverAddress, int zkClientTimeout, org.apache.zookeeper.Watcher watcher)voiddisconnected()ZkCredentialsProvidergetZkCredentialsToAddAutomatically()booleanhasZkCredentialsToAddAutomatically()abstract voidreconnect(String serverAddress, int zkClientTimeout, org.apache.zookeeper.Watcher watcher, ZkClientConnectionStrategy.ZkUpdate updater)voidsetZkCredentialsToAddAutomatically(ZkCredentialsProvider zkCredentialsToAddAutomatically)
 
- 
- 
- 
Method Detail- 
connectpublic abstract void connect(String zkServerAddress, int zkClientTimeout, org.apache.zookeeper.Watcher watcher, ZkClientConnectionStrategy.ZkUpdate updater) throws IOException, InterruptedException, TimeoutException 
 - 
reconnectpublic abstract void reconnect(String serverAddress, int zkClientTimeout, org.apache.zookeeper.Watcher watcher, ZkClientConnectionStrategy.ZkUpdate updater) throws IOException, InterruptedException, TimeoutException 
 - 
disconnectedpublic void disconnected() 
 - 
connectedpublic void connected() 
 - 
addDisconnectedListenerpublic void addDisconnectedListener(ZkClientConnectionStrategy.DisconnectedListener listener) 
 - 
addConnectedListenerpublic void addConnectedListener(ZkClientConnectionStrategy.ConnectedListener listener) 
 - 
setZkCredentialsToAddAutomaticallypublic void setZkCredentialsToAddAutomatically(ZkCredentialsProvider zkCredentialsToAddAutomatically) 
 - 
hasZkCredentialsToAddAutomaticallypublic boolean hasZkCredentialsToAddAutomatically() 
 - 
getZkCredentialsToAddAutomaticallypublic ZkCredentialsProvider getZkCredentialsToAddAutomatically() 
 - 
createSolrZooKeeperprotected SolrZooKeeper createSolrZooKeeper(String serverAddress, int zkClientTimeout, org.apache.zookeeper.Watcher watcher) throws IOException - Throws:
- IOException
 
 
- 
 
-