Package org.apache.stanbol.commons.solr.SolrServerAdapter

Examples of org.apache.stanbol.commons.solr.SolrServerAdapter.SolrCoreProperties


     * @throws SAXException On any error while parsing the core configuration files
     * @throws IllegalStateException if a {@link ParserConfigurationException}
     * is thrown by the server.
     */
    protected final void activateCore(IndexMetadata metadata, SolrServerAdapter server) throws IOException, SAXException {
        SolrCoreProperties coreConfig = new SolrCoreProperties(metadata.getIndexName());
        coreConfig.setCoreDir(new File(managedSolrDir,metadata.getDirectory()));
        Object token = new Object();
        synchronized (serverInUser) {
            //prevent shutting down the server while we initialise a core
            serverInUser.add(token);
        }
View Full Code Here


     * @throws SAXException On any error while parsing the core configuration files
     * @throws IllegalStateException if a {@link ParserConfigurationException}
     * is thrown by the server.
     */
    protected final void activateCore(IndexMetadata metadata, SolrServerAdapter server) throws IOException, SAXException {
        SolrCoreProperties coreConfig = new SolrCoreProperties(metadata.getIndexName());
        coreConfig.setCoreDir(new File(managedSolrDir,metadata.getDirectory()));
        Object token = new Object();
        synchronized (serverInUser) {
            //prevent shutting down the server while we initialise a core
            serverInUser.add(token);
        }
View Full Code Here

     * @throws SAXException On any error while parsing the core configuration files
     * @throws IllegalStateException if a {@link ParserConfigurationException}
     * is thrown by the server.
     */
    protected final void activateCore(IndexMetadata metadata, SolrServerAdapter server) throws IOException, SAXException {
        SolrCoreProperties coreConfig = new SolrCoreProperties(metadata.getIndexName());
        coreConfig.setCoreDir(new File(managedSolrDir,metadata.getDirectory()));
        Object token = new Object();
        synchronized (serverInUser) {
            //prevent shutting down the server while we initialise a core
            serverInUser.add(token);
        }
View Full Code Here

TOP

Related Classes of org.apache.stanbol.commons.solr.SolrServerAdapter.SolrCoreProperties

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.