@Override public String getName() { return service.getName(); }
private synchronized void stop(int numOfServicesStarted) { // stop in reserve order of start for (int i = numOfServicesStarted; i >= 0; i--) { Service service = serviceList.get(i); try { service.stop(); } catch (Throwable t) { LOG.info("Error stopping " + service.getName(), t); } } }
/** * Stop a service; if it is null do nothing. Exceptions are caught and * logged at warn level. (but not Throwables). This operation is intended to * be used in cleanup operations * * @param service a service; may be null * @return any exception that was caught; null if none was. */ public static Exception stopQuietly(Service service) { try { stop(service); } catch (Exception e) { LOG.warn("When stopping the service " + service.getName() + " : " + e, e); return e; } return null; }
@Override public String getName() { return service.getName(); }
@Override public String getName() { return service.getName(); }
@Override public String getName() { return service.getName(); }
@Override public String getName() { return service.getName(); }
@Override public String getName() { return service.getName(); }
private synchronized void stop(int numOfServicesStarted) { // stop in reserve order of start for (int i = numOfServicesStarted; i >= 0; i--) { Service service = serviceList.get(i); try { service.stop(); } catch (Throwable t) { LOG.info("Error stopping " + service.getName(), t); } } }
private synchronized void stop(int numOfServicesStarted) { // stop in reserve order of start for (int i = numOfServicesStarted; i >= 0; i--) { Service service = serviceList.get(i); try { service.stop(); } catch (Throwable t) { LOG.info("Error stopping " + service.getName(), t); } } }
private synchronized void stop(int numOfServicesStarted) { // stop in reserve order of start for (int i = numOfServicesStarted; i >= 0; i--) { Service service = serviceList.get(i); try { service.stop(); } catch (Throwable t) { LOG.info("Error stopping " + service.getName(), t); } } }
private synchronized void stop(int numOfServicesStarted) { // stop in reserve order of start for (int i = numOfServicesStarted; i >= 0; i--) { Service service = serviceList.get(i); try { service.stop(); } catch (Throwable t) { LOG.info("Error stopping " + service.getName(), t); } } }
private synchronized void stop(int numOfServicesStarted) { // stop in reserve order of start for (int i = numOfServicesStarted; i >= 0; i--) { Service service = serviceList.get(i); try { service.stop(); } catch (Throwable t) { LOG.info("Error stopping " + service.getName(), t); } } }
/** * Stop a service; if it is null do nothing. Exceptions are caught and * logged at warn level. (but not Throwables). This operation is intended to * be used in cleanup operations * * @param service a service; may be null * @return any exception that was caught; null if none was. */ public static Exception stopQuietly(Service service) { try { stop(service); } catch (Exception e) { LOG.warn("When stopping the service " + service.getName() + " : " + e, e); return e; } return null; }
/** * Stop a service; if it is null do nothing. Exceptions are caught and * logged at warn level. (but not Throwables). This operation is intended to * be used in cleanup operations * * @param service a service; may be null * @return any exception that was caught; null if none was. */ public static Exception stopQuietly(Service service) { try { stop(service); } catch (Exception e) { LOG.warn("When stopping the service " + service.getName() + " : " + e, e); return e; } return null; }
/** * Stop a service; if it is null do nothing. Exceptions are caught and * logged at warn level. (but not Throwables). This operation is intended to * be used in cleanup operations * * @param service a service; may be null * @return any exception that was caught; null if none was. */ public static Exception stopQuietly(Service service) { try { stop(service); } catch (Exception e) { LOG.warn("When stopping the service " + service.getName() + " : " + e, e); return e; } return null; }
/** * Stop a service; if it is null do nothing. Exceptions are caught and * logged at warn level. (but not Throwables). This operation is intended to * be used in cleanup operations * * @param service a service; may be null * @return any exception that was caught; null if none was. */ public static Exception stopQuietly(Service service) { try { stop(service); } catch (Exception e) { LOG.warn("When stopping the service " + service.getName() + " : " + e, e); return e; } return null; }
/** * Stop a service; if it is null do nothing. Exceptions are caught and * logged at warn level. (but not Throwables). This operation is intended to * be used in cleanup operations * * @param service a service; may be null * @return any exception that was caught; null if none was. */ public static Exception stopQuietly(Service service) { try { stop(service); } catch (Exception e) { LOG.warn("When stopping the service " + service.getName() + " : " + e, e); return e; } return null; }
services.put(svc.getName(), svc);