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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.common.cloud.SolrZkClient
org.apache.solr.common.cloud.SolrZkClient.Builder, org.apache.solr.common.cloud.SolrZkClient.CuratorOpBuilder, org.apache.solr.common.cloud.SolrZkClient.IsClosed, org.apache.solr.common.cloud.SolrZkClient.NodeData, org.apache.solr.common.cloud.SolrZkClient.SupplierWithException<T> -
Field Summary
Fields inherited from class org.apache.solr.common.cloud.SolrZkClient
ZK_ACL_PROVIDER_CLASS_NAME_VM_PARAM_NAME, ZK_CRED_PROVIDER_CLASS_NAME_VM_PARAM_NAME, ZK_CREDENTIALS_INJECTOR_CLASS_NAME_VM_PARAM_NAME -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.solr.common.cloud.SolrZkClient
atomicUpdate, atomicUpdate, checkInterrupted, clean, clean, close, containsChroot, create, create, createACLProvider, createZkCredentialsInjector, createZkCredentialsToAddAutomatically, delete, downConfig, downloadFromZK, ensureExists, ensureExists, ensureExists, ensureExists, exists, getAbsolutePath, getACL, getChildren, getChildren, getChroot, getConfig, getCuratorFramework, getMetrics, getNode, getZkACLProvider, getZkClientTimeout, getZkServerAddress, getZkSessionId, getZkSessionTimeout, isClosed, isConnected, listZnode, makePath, makePath, makePath, makePath, makePath, makePath, makePath, makePath, makePath, makePath, makePath, moveZnode, multi, multi, printLayout, printLayoutToStream, runWithCorrectThrows, setACL, setData, setData, setData, upConfig, updateACLs, uploadToZK, wrapWatcher, zkTransfer
-
Constructor Details
-
MockSolrZkClient
public MockSolrZkClient()
-
-
Method Details
-
exists
public Boolean exists(String path) 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) throws org.apache.zookeeper.KeeperException, InterruptedException - Overrides:
getDatain classorg.apache.solr.common.cloud.SolrZkClient- Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-