public void stop() throws ServiceException { // Do our stuff // Then call the next guy next.stop(); }
@Override public void stop() throws ServiceException { service.stop(); }
public void stop() throws ServiceException { next.stop(); }
public void stop() throws ServiceException { service.stop(); }
public void stop() throws ServiceException { next.stop(); }
public void stop() { if (server != null) { try { server.stop(); } catch (Exception e) { logger.warning("Service Shutdown Failed: " + name + ". Exception: " + e.getMessage(), e); } } if (registration != null) { try { registration.unregister(); } catch (IllegalStateException ignore) {} } } }
public void stop() { if (server != null) { try { server.stop(); } catch (Exception e) { logger.warning("Service Shutdown Failed: " + name + ". Exception: " + e.getMessage(), e); } } if (registration != null) { try { registration.unregister(); } catch (IllegalStateException ignore) { } } } }
for (ServerService s : services) { try { s.stop(); } catch (ServiceException ignored) {
service.stop(); } catch (ServiceException e) { logger.fatal("Service Shutdown Failed: " + service.getName() + ". Exception: " + e.getMessage(), e);
public void stop() throws ServiceException { synchronized (this) { DiscoveryAgent agent = SystemInstance.get().getComponent(DiscoveryAgent.class); if (agent != null && discoveryUriFormat != null && uri != null) { try { agent.unregisterService(uri); } catch (IOException e) { log.error("Cannot unregister service '" + getName() + "' with DiscoveryAgent.", e); } } next.stop(); if (socketListener != null) { socketListener.stop(); socketListener = null; } } }
@Override public void stop() throws ServiceException { synchronized (this) { final DiscoveryAgent agent = SystemInstance.get().getComponent(DiscoveryAgent.class); if (agent != null && this.discoveryUriFormat != null && this.serviceUri != null) { try { agent.unregisterService(this.serviceUri); } catch (IOException e) { log.error("Cannot unregister service '" + this.getName() + "' with DiscoveryAgent.", e); } } this.next.stop(); if (this.socketListener != null) { this.socketListener.stop(); this.socketListener = null; } } }
for (final ServerService s : services) { try { s.stop(); } catch (final ServiceException ignored) {
daemons[i].stop(); } catch (ServiceException e) { logger.fatal("Service Shutdown Failed: "+daemons[i].getName()+". Exception: "+e.getMessage(), e);