Package org.apache.solr.common.cloud
Class ConnectionManager
- java.lang.Object
- 
- org.apache.solr.common.cloud.ConnectionManager
 
- 
- All Implemented Interfaces:
- org.apache.zookeeper.Watcher
 
 public class ConnectionManager extends Object implements org.apache.zookeeper.Watcher 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classConnectionManager.IsClosed
 - 
Constructor SummaryConstructors Constructor Description ConnectionManager(String name, SolrZkClient client, String zkServerAddress, ZkClientConnectionStrategy strat, OnReconnect onConnect, BeforeReconnect beforeReconnect, ConnectionManager.IsClosed isClosed)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisConnected()booleanisConnectedAndNotClosed()booleanisLikelyExpired()voidprocess(org.apache.zookeeper.WatchedEvent event)voidwaitForConnected(long waitForConnection)voidwaitForDisconnected(long timeout)voidwaitSleep(long waitFor)
 
- 
- 
- 
Constructor Detail- 
ConnectionManagerpublic ConnectionManager(String name, SolrZkClient client, String zkServerAddress, ZkClientConnectionStrategy strat, OnReconnect onConnect, BeforeReconnect beforeReconnect, ConnectionManager.IsClosed isClosed) 
 
- 
 - 
Method Detail- 
processpublic void process(org.apache.zookeeper.WatchedEvent event) - Specified by:
- processin interface- org.apache.zookeeper.Watcher
 
 - 
isConnectedAndNotClosedpublic boolean isConnectedAndNotClosed() 
 - 
isConnectedpublic boolean isConnected() 
 - 
closepublic void close() 
 - 
isLikelyExpiredpublic boolean isLikelyExpired() 
 - 
waitSleeppublic void waitSleep(long waitFor) 
 - 
waitForConnectedpublic void waitForConnected(long waitForConnection) throws TimeoutException- Throws:
- TimeoutException
 
 - 
waitForDisconnectedpublic void waitForDisconnected(long timeout) throws InterruptedException, TimeoutException- Throws:
- InterruptedException
- TimeoutException
 
 
- 
 
-