public class SolrZooKeeper
extends org.apache.zookeeper.ZooKeeper
Constructor and Description |
---|
SolrZooKeeper(String connectString,
int sessionTimeout,
org.apache.zookeeper.Watcher watcher) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.apache.zookeeper.ClientCnxn |
getConnection() |
SocketAddress |
getSocketAddress() |
void |
pauseCnxn(long ms)
Cause this ZooKeeper object to stop receiving from the ZooKeeperServer
for the given number of milliseconds.
|
addAuthInfo, create, create, delete, delete, exists, exists, exists, exists, getACL, getACL, getChildren, getChildren, getChildren, getChildren, getChildren, getChildren, getChildren, getChildren, getData, getData, getData, getData, getSaslClient, getSessionId, getSessionPasswd, getSessionTimeout, getState, multi, multiInternal, register, setACL, setACL, setData, setData, sync, testableLocalSocketAddress, testableRemoteSocketAddress, testableWaitForShutdown, toString, transaction
public SolrZooKeeper(String connectString, int sessionTimeout, org.apache.zookeeper.Watcher watcher) throws IOException
IOException
public org.apache.zookeeper.ClientCnxn getConnection()
public SocketAddress getSocketAddress()
public void pauseCnxn(long ms)
ms
- the number of milliseconds to pause.public void close() throws InterruptedException
close
in class org.apache.zookeeper.ZooKeeper
InterruptedException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.