org.apache.solr.common.cloud
public class ConnectionManager extends Object implements org.apache.zookeeper.Watcher
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
ConnectionManager(String name,
SolrZkClient client,
String zkServerAddress,
int zkClientTimeout,
ZkClientConnectionStrategy strat,
OnReconnect onConnect) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
isConnected() |
boolean |
isLikelyExpired() |
void |
process(org.apache.zookeeper.WatchedEvent event) |
void |
waitForConnected(long waitForConnection) |
void |
waitForDisconnected(long timeout) |
public ConnectionManager(String name, SolrZkClient client, String zkServerAddress, int zkClientTimeout, ZkClientConnectionStrategy strat, OnReconnect onConnect)
public void process(org.apache.zookeeper.WatchedEvent event)
process
in interface org.apache.zookeeper.Watcher
public boolean isConnected()
public void close()
public boolean isLikelyExpired()
public void waitForConnected(long waitForConnection) throws TimeoutException
TimeoutException
public void waitForDisconnected(long timeout) throws InterruptedException, TimeoutException
InterruptedException
TimeoutException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.