/** * Required method that's called by Apache Commons procrun when * running as a service on Windows, when the service is stopped. * * http://commons.apache.org/proper/commons-daemon/procrun.html * * NOTE: If this method is renamed and/or moved, make sure to * update elasticsearch-service.bat! */ static void close(String[] args) throws IOException { Bootstrap.stop(); }
@Override public boolean handle(int code) { if (CTRL_CLOSE_EVENT == code) { logger.info("running graceful exit on windows"); try { Bootstrap.stop(); } catch (IOException e) { throw new ElasticsearchException("failed to stop node", e); } return true; } return false; } });
/** * Required method that's called by Apache Commons procrun when * running as a service on Windows, when the service is stopped. * * http://commons.apache.org/proper/commons-daemon/procrun.html * * NOTE: If this method is renamed and/or moved, make sure to * update elasticsearch-service.bat! */ static void close(String[] args) throws IOException { Bootstrap.stop(); }
/** * Required method that's called by Apache Commons procrun when * running as a service on Windows, when the service is stopped. * * http://commons.apache.org/proper/commons-daemon/procrun.html * * NOTE: If this method is renamed and/or moved, make sure to update service.bat! */ static void close(String[] args) { Bootstrap.stop(); }
/** * Required method that's called by Apache Commons procrun when * running as a service on Windows, when the service is stopped. * * http://commons.apache.org/proper/commons-daemon/procrun.html * * NOTE: If this method is renamed and/or moved, make sure to * update elasticsearch-service.bat! */ static void close(String[] args) throws IOException { Bootstrap.stop(); }
/** * Required method that's called by Apache Commons procrun when * running as a service on Windows, when the service is stopped. * * http://commons.apache.org/proper/commons-daemon/procrun.html * * NOTE: If this method is renamed and/or moved, make sure to * update elasticsearch-service.bat! */ static void close(String[] args) throws IOException { Bootstrap.stop(); }
@Override public boolean handle(int code) { if (CTRL_CLOSE_EVENT == code) { logger.info("running graceful exit on windows"); Bootstrap.stop(); return true; } return false; } });
@Override public boolean handle(int code) { if (CTRL_CLOSE_EVENT == code) { logger.info("running graceful exit on windows"); try { Bootstrap.stop(); } catch (IOException e) { throw new ElasticsearchException("failed to stop node", e); } return true; } return false; } });
@Override public boolean handle(int code) { if (CTRL_CLOSE_EVENT == code) { logger.info("running graceful exit on windows"); try { Bootstrap.stop(); } catch (IOException e) { throw new ElasticsearchException("failed to stop node", e); } return true; } return false; } });
@Override public boolean handle(int code) { if (CTRL_CLOSE_EVENT == code) { logger.info("running graceful exit on windows"); try { Bootstrap.stop(); } catch (IOException e) { throw new ElasticsearchException("failed to stop node", e); } return true; } return false; } });