Class 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.NodeData, org.apache.solr.common.cloud.SolrZkClient.ZkMetrics
    • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Boolean exists​(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, 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
    • Constructor Detail

      • MockSolrZkClient

        public MockSolrZkClient()
    • Method Detail

      • exists

        public Boolean exists​(String path,
                              boolean retryOnConnLoss)
                       throws org.apache.zookeeper.KeeperException,
                              InterruptedException
        Overrides:
        exists in class org.apache.solr.common.cloud.SolrZkClient
        Throws:
        org.apache.zookeeper.KeeperException
        InterruptedException
      • 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:
        getData in class org.apache.solr.common.cloud.SolrZkClient
        Throws:
        org.apache.zookeeper.KeeperException
        InterruptedException