public void close() throws IOException { shutdown(); } }
@Override public void close() throws IOException { if (cachedSolrServer != null) { try { cachedSolrServer.shutdown(); } catch (Exception e) { log.error("could not correctly shutdown Solr {} server {}", serverType, cachedSolrServer); } finally { cachedSolrServer = null; } } }
@Override public void close() throws IOException { if (cachedSolrServer != null) { try { cachedSolrServer.shutdown(); } catch (Exception e) { log.error("could not correctly shutdown Solr {} server {}", serverType, cachedSolrServer); } finally { cachedSolrServer = null; } } }
@Override protected void afterSuite() throws Exception { SolrClient solrServer = serverProvider.getSolrServer(); if (solrServer != null) { solrServer.shutdown(); } } }
public static void unregister(SolrServerConfiguration configuration, @NotNull Strategy strategy) { switch (strategy) { case INDEXING: synchronized (indexingServerRegistry) { SolrClient removed = indexingServerRegistry.remove(configuration.toString()); try { removed.shutdown(); } catch (Exception e) { // ignore } } break; case SEARCHING: synchronized (searchingServerRegistry) { SolrClient removed = searchingServerRegistry.remove(configuration.toString()); try { removed.shutdown(); } catch (Exception e) { // ignore } } break; } }
public static void unregister(SolrServerConfiguration configuration, @NotNull Strategy strategy) { switch (strategy) { case INDEXING: synchronized (indexingServerRegistry) { SolrClient removed = indexingServerRegistry.remove(configuration.toString()); try { removed.shutdown(); } catch (Exception e) { // ignore } } break; case SEARCHING: synchronized (searchingServerRegistry) { SolrClient removed = searchingServerRegistry.remove(configuration.toString()); try { removed.shutdown(); } catch (Exception e) { // ignore } } break; } }
@Override public void close() throws IOException { try { SolrClient solrServer = getSolrServer(); if (solrServer != null) { solrServer.shutdown(); } } catch (Exception e) { // do nothing } try { SolrClient indexingSolrServer = getIndexingSolrServer(); if (indexingSolrServer != null) { indexingSolrServer.shutdown(); } } catch (Exception e) { // do nothing } try { getSearchingSolrServer().shutdown(); } catch (Exception e) { // do nothing } } }
@Override public void close() throws IOException { try { SolrClient solrServer = getSolrServer(); if (solrServer != null) { solrServer.shutdown(); } } catch (Exception e) { // do nothing } try { SolrClient indexingSolrServer = getIndexingSolrServer(); if (indexingSolrServer != null) { indexingSolrServer.shutdown(); } } catch (Exception e) { // do nothing } try { getSearchingSolrServer().shutdown(); } catch (Exception e) { // do nothing } } }
solrServer.shutdown();