Package org.apache.solr.cloud
Class MockSolrZkClient
- java.lang.Object
-
- org.apache.solr.common.cloud.SolrZkClient
-
- org.apache.solr.cloud.MockSolrZkClient
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class MockSolrZkClient extends org.apache.solr.common.cloud.SolrZkClient
-
-
Constructor Summary
Constructors Constructor Description MockSolrZkClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Booleanexists(String path, boolean retryOnConnLoss)byte[]getData(String path, org.apache.zookeeper.Watcher watcher, org.apache.zookeeper.data.Stat stat, boolean retryOnConnLoss)-
Methods inherited from class org.apache.solr.common.cloud.SolrZkClient
atomicUpdate, atomicUpdate, checkInterrupted, clean, clean, close, containsChroot, create, createZkACLProvider, createZkCredentialsInjector, createZkCredentialsToAddAutomatically, delete, downConfig, downloadFromZK, exists, getACL, getChildren, getChildren, getConfig, getConnectionManager, getMetrics, getNode, getZkACLProvider, getZkClientConnectionStrategy, getZkClientTimeout, getZkServerAddress, getZooKeeper, isClosed, isConnected, listZnode, makePath, makePath, makePath, makePath, makePath, makePath, makePath, makePath, makePath, makePath, makePath, moveZnode, multi, printLayout, printLayoutToStream, setACL, setData, setData, setData, upConfig, updateACLs, uploadToZK, wrapWatcher, zkTransfer
-
-
-
-
Method Detail
-
exists
public Boolean exists(String path, boolean retryOnConnLoss) throws org.apache.zookeeper.KeeperException, InterruptedException
- Overrides:
existsin classorg.apache.solr.common.cloud.SolrZkClient- Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-
getData
public byte[] getData(String path, org.apache.zookeeper.Watcher watcher, org.apache.zookeeper.data.Stat stat, boolean retryOnConnLoss) throws org.apache.zookeeper.KeeperException, InterruptedException
- Overrides:
getDatain classorg.apache.solr.common.cloud.SolrZkClient- Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-
-