@Override public void run() { try { // Stop the Composite Service compositeService.stop(); } catch (Throwable t) { LOG.info("Error stopping " + compositeService.getName(), t); } } }
@Override public synchronized void start() { int i = 0; try { for (int n = serviceList.size(); i < n; i++) { Service service = serviceList.get(i); service.start(); } super.start(); } catch (Throwable e) { LOG.error("Error starting services " + getName(), e); // Note that the state of the failed service is still INITED and not // STARTED. Even though the last service is not started completely, still // call stop() on all services including failed service to make sure cleanup // happens. stop(i); throw new ServiceException("Failed to Start " + getName(), e); } }
@Override public void run() { try { // Stop the Composite Service compositeService.stop(); } catch (Throwable t) { LOG.info("Error stopping " + compositeService.getName(), t); } } }
@Override public void run() { try { // Stop the Composite Service compositeService.stop(); } catch (Throwable t) { LOG.info("Error stopping " + compositeService.getName(), t); } } }
@Override public void run() { try { // Stop the Composite Service compositeService.stop(); } catch (Throwable t) { LOG.info("Error stopping " + compositeService.getName(), t); } } }
@Override public void run() { try { // Stop the Composite Service compositeService.stop(); } catch (Throwable t) { LOG.info("Error stopping " + compositeService.getName(), t); } } }
@Override public void run() { try { // Stop the Composite Service compositeService.stop(); } catch (Throwable t) { LOG.info("Error stopping " + compositeService.getName(), t); } } }
@Override public synchronized void start() { int i = 0; try { for (int n = serviceList.size(); i < n; i++) { Service service = serviceList.get(i); service.start(); } super.start(); } catch (Throwable e) { LOG.error("Error starting services " + getName(), e); // Note that the state of the failed service is still INITED and not // STARTED. Even though the last service is not started completely, still // call stop() on all services including failed service to make sure cleanup // happens. stop(i); throw new ServiceException("Failed to Start " + getName(), e); } }
@Override public synchronized void start() { int i = 0; try { for (int n = serviceList.size(); i < n; i++) { Service service = serviceList.get(i); service.start(); } super.start(); } catch (Throwable e) { LOG.error("Error starting services " + getName(), e); // Note that the state of the failed service is still INITED and not // STARTED. Even though the last service is not started completely, still // call stop() on all services including failed service to make sure cleanup // happens. stop(i); throw new ServiceException("Failed to Start " + getName(), e); } }
@Override public synchronized void start() { int i = 0; try { for (int n = serviceList.size(); i < n; i++) { Service service = serviceList.get(i); service.start(); } super.start(); } catch (Throwable e) { LOG.error("Error starting services " + getName(), e); // Note that the state of the failed service is still INITED and not // STARTED. Even though the last service is not started completely, still // call stop() on all services including failed service to make sure cleanup // happens. stop(i); throw new ServiceException("Failed to Start " + getName(), e); } }
@Override public synchronized void start() { int i = 0; try { for (int n = serviceList.size(); i < n; i++) { Service service = serviceList.get(i); service.start(); } super.start(); } catch (Throwable e) { LOG.error("Error starting services " + getName(), e); // Note that the state of the failed service is still INITED and not // STARTED. Even though the last service is not started completely, still // call stop() on all services including failed service to make sure cleanup // happens. stop(i); throw new ServiceException("Failed to Start " + getName(), e); } }
@Override public synchronized void start() { int i = 0; try { for (int n = serviceList.size(); i < n; i++) { Service service = serviceList.get(i); service.start(); } super.start(); } catch (Throwable e) { LOG.error("Error starting services " + getName(), e); // Note that the state of the failed service is still INITED and not // STARTED. Even though the last service is not started completely, still // call stop() on all services including failed service to make sure cleanup // happens. stop(i); throw new ServiceException("Failed to Start " + getName(), e); } }