@Override public void close() throws LifecycleException { try { if (this.mbean != null) { MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); mbs.unregisterMBean(this.mbean.getObjectName()); this.mbean = null; } if (this.pool != null) { pool.close(); this.pool = null; } } catch (Exception e) { throw new LifecycleException(e); } }
@Override public void dispose() { try { connectionPool.close(); } catch (Exception e) { } }
@Override public void dispose() { try { connectionPool.close(); } catch (Exception e) { } }
@Override public void dispose() { try { connectionPool.close(); } catch (Exception e) { } }
@Override public void dispose() { try { connectionPool.close(); } catch (Exception e) { } }
@Override public void dispose() { try { connectionPool.close(); } catch (Exception e) { } }
@Override public void dispose() { try { connectionPool.close(); } catch (Exception e) { } }
@Override public void close() throws Exception { super.close(); } }
@Override public void dispose() { try { connectionPool.close(); } catch (Exception e) { } }
@Override public void dispose() { try { connectionPool.close(); } catch (Exception e) { } }
@Override public void dispose() { try { connectionPool.close(); } catch (Exception e) { } }
@Override public void dispose() { try { connectionPool.close(); } catch (Exception e) { } }
@Override public void dispose() { try { connectionPool.close(); } catch (Exception e) { } }
public void destroy() throws Exception { try { this.keyedObjectPool.close(); } catch (Exception e) { this.logger.warn("An exception occured while closing the underlying pool.", e); } }
public void destroy() throws Exception { try { this.keyedObjectPool.close(); } catch (Exception e) { this.logger.warn("An exception occured while closing the underlying pool.", e); } }
@Override protected void doDispose() { try { dispatcherSocketsPool.close(); } catch (Exception e) { logger.warn("Failed to close dispatcher socket pool: " + e.getMessage()); } }
public void stop() throws Exception { if (started.get()) { channels.close(); serverGroup.shutdownGracefully(); clientGroup.shutdownGracefully(); started.set(false); } }
public synchronized void shutDown() throws DataEndpointException { for (DataPublisher dataPublisher : dataPublishers) { dataPublisher.shutdown(); } try { transportPool.close(); securedTransportPool.close(); } catch (Exception e) { throw new DataEndpointException("Error while closing the transport pool", e); } } }
/** * To shutdown Agent immediately */ public void shutdownNow() { try { threadPool.shutdown(); transportPool.close(); } catch (Exception e) { log.warn("Agent forceful shutdown failed",e); } AgentHolder.setAgent(null); }
public synchronized void shutDown() throws DataEndpointException { for (DataPublisher dataPublisher : dataPublishers) { dataPublisher.shutdown(); } try { transportPool.close(); securedTransportPool.close(); } catch (Exception e) { throw new DataEndpointException("Error while closing the transport pool", e); } } }