Package com.common.platform.solr.client.config

Examples of com.common.platform.solr.client.config.ConfigurationReader


     * 注册所有资源入库对象<p>
     *
     * 初始化时,注册所有入库类型
     */
    private static void registerSolrClient(){
        ConfigurationReader reader = ConfigurationReader.getInstance();
        String solrUrl = reader.getString(ConfigurationKey.SOLR_BASE_URL);
       
        // 配置默认索引库客户端
        SolrClientHolder solrClientHolder = new SolrClientHolder(solrUrl);
        solrClientHolderCache.put(DEFAULT_STORE_NAME, solrClientHolder);
       
        // 配置其他索引库客户端
        String indexStore = reader.getString(ConfigurationKey.SOLR_OTHERS_INDEX_STORE_LIST);
        if(null != indexStore && !"".equals(indexStore)){
            String[] storeList = indexStore.split("\\,");
            for (String storeName : storeList) {
                SolrClientHolder otherSolrClientHolder = new SolrClientHolder(solrUrl + storeName);
                solrClientHolderCache.put(storeName, otherSolrClientHolder);
View Full Code Here

TOP

Related Classes of com.common.platform.solr.client.config.ConfigurationReader

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.