@Override public void destroy() { if (transportClient != null) { transportClient.close(); } }
public void close() { client.close(); }
@Override public void cleanup() throws DBException { if (client != null) { client.close(); client = null; } }
@Override public void close() throws IOException { log.info("Got a close call in ElasticSearchTransportWriter"); super.close(); this.client.close(); }
@Override public void close() { super.close(); if (!NetworkModule.TRANSPORT_TYPE_SETTING.exists(settings) || NetworkModule.TRANSPORT_TYPE_SETTING.get(settings).equals(Netty4Plugin.NETTY_TRANSPORT_NAME)) { try { GlobalEventExecutor.INSTANCE.awaitInactivity(5, TimeUnit.SECONDS); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } try { ThreadDeathWatcher.awaitInactivity(5, TimeUnit.SECONDS); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } } }
@Override public void close() { super.close(); if (!NetworkModule.TRANSPORT_TYPE_SETTING.exists(settings) || NetworkModule.TRANSPORT_TYPE_SETTING.get(settings).equals(Netty4Plugin.NETTY_TRANSPORT_NAME)) { try { GlobalEventExecutor.INSTANCE.awaitInactivity(5, TimeUnit.SECONDS); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } try { ThreadDeathWatcher.awaitInactivity(5, TimeUnit.SECONDS); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } } }
@Override public void destroy() { this.externalProperties = null; Object connection = getConnectionPoolOrConnection(); if (connection != null) { ((TransportClient) connection).close(); } }
@Override protected void doDestroy() { if (client != null) { client.close(); client = null; } } }
@Override public void disconnect() throws IOException { if (client != null) { client.close(); } }
@Override public void destroy() throws Exception { if (transportClient != null) { transportClient.close(); } } }
@Override public void disconnect() throws IOException { if (client != null) { client.close(); } }
@Override public void shutdown() { client.close(); }
@Override public void stop() throws Exception { if (client != null) { client.close(); } } }
private void closeClient() { if (client != null) { try { client.close(); } finally { client = null; } } }
private void stopTransportClient() { if (client != null) client.close(); LOG.info("Disconnected from Elasticsearch cluster"); }
public void afterClass(Object testClass, Map<String, Object> context) throws Exception { // Closing all TransportClient for (Object obj : context.values()) { if (obj instanceof TransportClient) { TransportClient client = (TransportClient) obj; client.close(); } } } }
@Override public void destroy() throws Exception { try { logger.info("Closing elasticSearch client"); if (client != null) { client.close(); } } catch (final Exception e) { logger.error("Error closing ElasticSearch client: ", e); } }
@Override public void close() throws IOException { log.info("Got a close call in ElasticSearchTransportWriter"); super.close(); this.client.close(); }
@Override public void destroy() { this.externalProperties = null; Object connection = getConnectionPoolOrConnection(); if (connection != null) { ((TransportClient) connection).close(); } }
@Override public void destroy() { this.externalProperties = null; Object connection = getConnectionPoolOrConnection(); if(connection != null) { ((TransportClient) connection).close(); } }