@Override public void stop() { service.stop(); }
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. * <p/>Do nothing if the service is null or not * in a state in which it can be/needs to be stopped. * <p/> * The service state is checked <i>before</i> the operation begins. * This process is <i>not</i> thread safe. * @param service a service or null */ public static void stop(Service service) { if (service != null) { Service.STATE state = service.getServiceState(); if (state == Service.STATE.STARTED) { service.stop(); } } }
@Override public void stop() { service.stop(); }
@Override public void stop() { service.stop(); }
@Override public void stop() { service.stop(); }
@Override public void stop() { service.stop(); }
@Override public void stop() { service.stop(); }
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. * * Do nothing if the service is null or not in a state in which it can be/needs to be stopped. * * The service state is checked <i>before</i> the operation begins. * This process is <i>not</i> thread safe. * @param service a service or null */ public static void stop(Service service) { if (service != null) { Service.STATE state = service.getServiceState(); if (state == Service.STATE.STARTED) { service.stop(); } } }
/** * Stop a service. * <p/>Do nothing if the service is null or not * in a state in which it can be/needs to be stopped. * <p/> * The service state is checked <i>before</i> the operation begins. * This process is <i>not</i> thread safe. * @param service a service or null */ public static void stop(Service service) { if (service != null) { Service.STATE state = service.getServiceState(); if (state == Service.STATE.STARTED) { service.stop(); } } }
/** * Stop a service. * * Do nothing if the service is null or not in a state in which it can be/needs to be stopped. * * The service state is checked <i>before</i> the operation begins. * This process is <i>not</i> thread safe. * @param service a service or null */ public static void stop(Service service) { if (service != null) { Service.STATE state = service.getServiceState(); if (state == Service.STATE.STARTED) { service.stop(); } } }
/** * Stop a service. * <p/>Do nothing if the service is null or not * in a state in which it can be/needs to be stopped. * <p/> * The service state is checked <i>before</i> the operation begins. * This process is <i>not</i> thread safe. * @param service a service or null */ public static void stop(Service service) { if (service != null) { Service.STATE state = service.getServiceState(); if (state == Service.STATE.STARTED) { service.stop(); } } }
/** * Stop a service. * <p/>Do nothing if the service is null or not * in a state in which it can be/needs to be stopped. * <p/> * The service state is checked <i>before</i> the operation begins. * This process is <i>not</i> thread safe. * @param service a service or null */ public static void stop(Service service) { if (service != null) { Service.STATE state = service.getServiceState(); if (state == Service.STATE.STARTED) { service.stop(); } } }