Package org.apache.solr.cloud

Examples of org.apache.solr.cloud.ZkController


  }

  protected void uploadConfigDirToZk(String collectionConfigDir) throws Exception {
    SolrDispatchFilter dispatchFilter =
      (SolrDispatchFilter) jettys.get(0).getDispatchFilter().getFilter();
    ZkController zkController = dispatchFilter.getCores().getZkController();
    // conf1 is the config used by AbstractFullDistribZkTestBase
    zkController.uploadConfigDir(new File(collectionConfigDir), "conf1");
  }
View Full Code Here


      (SolrDispatchFilter) miniSolrCloudCluster.getJettySolrRunners().get(0).getDispatchFilter().getFilter();
    return dispatchFilter.getCores().getZkController();
  }

  protected void uploadConfigDirToZk(String collectionConfigDir) throws Exception {
    ZkController zkController = getZkController();
    // conf1 is the config used by AbstractFullDistribZkTestBase
    zkController.uploadConfigDir(new File(collectionConfigDir),
      CONF_DIR_IN_ZK);
  }
View Full Code Here

    zkController.uploadConfigDir(new File(collectionConfigDir),
      CONF_DIR_IN_ZK);
  }

  protected void uploadConfigFileToZk(String file, String nameInZk) throws Exception {
    ZkController zkController = getZkController();
    zkController.getZkClient().makePath(ZkController.CONFIGS_ZKNODE + "/"
      + CONF_DIR_IN_ZK + "/" + nameInZk, new File(file), false, true);
  }
View Full Code Here

TOP

Related Classes of org.apache.solr.cloud.ZkController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.