public static void dispose(Service service) { try { service.stop(); } catch (Exception e) { LOG.debug("Could not stop service: " + service + ". Reason: " + e, e); } }
/** * Stops the given service, catching any exceptions that are thrown. */ public void stop(Service service) { try { if (service != null) { service.stop(); } } catch (Exception e) { onException(service, e); } }
public static void dispose(Service service) { try { service.stop(); } catch (Exception e) { LOG.debug("Could not stop service: " + service + ". Reason: " + e, e); } }
public static void dispose(Service service) { try { service.stop(); } catch (Exception e) { LOG.debug("Could not stop service: " + service + ". Reason: " + e, e); } }
public static void dispose(Service service) { try { service.stop(); } catch (Exception e) { LOG.debug("Could not stop service: " + service + ". Reason: " + e, e); } }
public static void dispose(Service service) { try { service.stop(); } catch (Exception e) { LOG.debug("Could not stop service: " + service + ". Reason: " + e, e); } }
public void stop() throws Exception { if (startCounter.decrementAndGet() == 0) { running.set(false); if (thread != null) { thread.join(updateInterval * 3); thread = null; } if (jetty != null) { jetty.stop(); jetty = null; } } }
/** * Stops the given service, catching any exceptions that are thrown. */ public void stop(Service service) { try { if (service != null) { service.stop(); } } catch (Exception e) { onException(service, e); } }
/** * Stops the given service, catching any exceptions that are thrown. */ public void stop(Service service) { try { if (service != null) { service.stop(); } } catch (Exception e) { onException(service, e); } }
/** * Stops the given service, catching any exceptions that are thrown. */ public void stop(Service service) { try { if (service != null) { service.stop(); } } catch (Exception e) { onException(service, e); } }
/** * Stops the given service, catching any exceptions that are thrown. */ public void stop(Service service) { try { if (service != null) { service.stop(); } } catch (Exception e) { onException(service, e); } }
public void stop() throws Exception { if (startCounter.decrementAndGet() == 0) { resume(); running.set(false); if (thread != null) { thread.join(updateInterval * 3); thread = null; } if (jetty != null) { jetty.stop(); jetty = null; } } }
public void stop() throws Exception { if (startCounter.decrementAndGet() == 0) { resume(); running.set(false); if (thread != null) { thread.join(updateInterval * 3); thread = null; } if (jetty != null) { jetty.stop(); jetty = null; } } }
public void stop() throws Exception { if (startCounter.decrementAndGet() == 0) { resume(); running.set(false); if (thread != null) { thread.join(updateInterval * 3); thread = null; } if (jetty != null) { jetty.stop(); jetty = null; } } }
@Override protected void doStop() throws Exception { if (source != null) { source.stop(); source = null; } if (connection != null) { connection.close(); connection = null; } for (Service s : pooledConnectionFactoryServiceList) { s.stop(); } pooledConnectionFactoryServiceList.clear(); for (SingleConnectionFactory s : singleConnectionFactoryList) { s.destroy(); } singleConnectionFactoryList.clear(); super.doStop(); }
@Override protected void doStop() throws Exception { if (source != null) { source.stop(); source = null; } if (connection != null) { connection.close(); connection = null; } for (Service s : pooledConnectionFactoryServiceList) { s.stop(); } pooledConnectionFactoryServiceList.clear(); for (SingleConnectionFactory s : singleConnectionFactoryList) { s.destroy(); } singleConnectionFactoryList.clear(); super.doStop(); }