@Override public void cleanUp() { CloseableUtils.closeQuietly(coreDomains); if (legacy != null) { legacy.close(); } if (client != null) { client.close(); } }
@Override protected void started() { try { coreDomains.start(); if (legacy != null) { legacy.start(); LOGGER.info("Server Setup Done"); } if (client != null) { client.start(); } } catch (InterruptedException e) { Thread.currentThread().interrupt(); } catch (ExecutionException e) { LOGGER.error("Failed to start location manager: {}", e.getCause().toString()); kill(); } catch (RuntimeException e) { LOGGER.error("Failed to start location manager", e); kill(); } catch (Exception e) { LOGGER.error("Failed to start location manager: {}", e.toString()); kill(); } }