@Override public void close() { isClosed = true; IOUtils.closeQuietly(objectCache); }
public static void close(HttpClient httpClient) { if (httpClient instanceof CloseableHttpClient) { org.apache.solr.common.util.IOUtils.closeQuietly((CloseableHttpClient) httpClient); } else { httpClient.getConnectionManager().shutdown(); } }
public static void close(HttpClient httpClient) { org.apache.solr.common.util.IOUtils.closeQuietly((CloseableHttpClient) httpClient); assert ObjectReleaseTracker.release(httpClient); }
public void shutdownNow() { if (closed) { return; } closed = true; try { if (shutdownExecutor) { scheduler.shutdown(); interruptRunnerThreadsPolling(); scheduler.shutdownNow(); // Cancel currently executing tasks try { if (!scheduler.awaitTermination(30, TimeUnit.SECONDS)) log.error("ExecutorService did not terminate"); } catch (InterruptedException ie) { scheduler.shutdownNow(); Thread.currentThread().interrupt(); } } else { interruptRunnerThreadsPolling(); } } finally { if (internalHttpClient) IOUtils.closeQuietly(client); } }
if (internalHttpClient) IOUtils.closeQuietly(client); if (log.isDebugEnabled()) { log.debug("STATS pollInteruppts={} pollExists={} blockLoops={} emptyQueueLoops={}", pollInterrupts.get(), pollExits.get(), blockLoops.get(), emptyQueueLoops.get());
try { IOUtils.closeQuietly(solrClient);
protected void finish(final String chain) throws IOException { SolrCore core = h.getCore(); UpdateRequestProcessorChain pc = core.getUpdateProcessingChain(chain); assertNotNull("No Chain named: " + chain, pc); SolrQueryResponse rsp = new SolrQueryResponse(); SolrQueryRequest req = new LocalSolrQueryRequest(core, new ModifiableSolrParams()); UpdateRequestProcessor processor = pc.createProcessor(req, rsp); try { processor.finish(); } finally { IOUtils.closeQuietly(processor); req.close(); } }