INSTANCE = new Bootstrap(); final SecureSettings keystore = loadSecureSettings(initialEnv); final Environment environment = createEnvironment(foreground, pidFile, keystore, initialEnv.settings(), initialEnv.configFile()); Loggers.removeAppender(rootLogger, maybeConsoleAppender); closeSystOut(); checkLucene(); INSTANCE.setup(true, environment); INSTANCE.start(); closeSysError();
void init(final boolean daemonize, final Path pidFile, final boolean quiet, Environment initialEnv) throws NodeValidationException, UserException { try { Bootstrap.init(!daemonize, pidFile, quiet, initialEnv); } catch (BootstrapException | RuntimeException e) { // format exceptions to the console in a special way // to avoid 2MB stacktraces from guice, etc. throw new StartupException(e); } }
initializeNatives( environment.tmpFile(), BootstrapSettings.MEMORY_LOCK_SETTING.get(settings), initializeProbes();
final Environment initialEnv) throws BootstrapException, NodeValidationException, UserException { initLoggerPrefix(); INSTANCE = new Bootstrap(); final SecureSettings keystore = loadSecureSettings(initialEnv); Environment environment = createEnvironment(foreground, pidFile, keystore, initialEnv.settings()); try { LogConfigurator.configure(environment); throw new BootstrapException(e); checkForCustomConfFile(); checkConfigExtension(environment.configExtension()); Loggers.removeAppender(rootLogger, maybeConsoleAppender); closeSystOut(); checkLucene(); INSTANCE.setup(true, environment); INSTANCE.start(); closeSysError();
exit(status.status()); INSTANCE = new Bootstrap(); Environment environment = initialSettings(foreground); Settings settings = environment.settings(); LogConfigurator.configure(settings, true); checkForCustomConfFile(); if (!foreground) { Loggers.disableConsoleLogging(); closeSystOut(); INSTANCE.setup(true, settings, environment); INSTANCE.start(); closeSysError();
/** * 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(); }
initializeNatives(environment.tmpFile(), memoryLock != null ? memoryLock : mlockall != null ? mlockall : false, settings.getAsBoolean("bootstrap.seccomp", true), initializeProbes(); setupSecurity(settings, environment);
@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; } });
INSTANCE = new Bootstrap(); final SecureSettings keystore = loadSecureSettings(initialEnv); final Environment environment = createEnvironment(foreground, pidFile, keystore, initialEnv.settings(), initialEnv.configFile()); try { LogConfigurator.configure(environment); Loggers.removeAppender(rootLogger, maybeConsoleAppender); closeSystOut(); checkLucene(); new ElasticsearchUncaughtExceptionHandler(() -> Node.NODE_NAME_SETTING.get(environment.settings()))); INSTANCE.setup(true, environment); INSTANCE.start(); closeSysError();
initializeNatives( environment.tmpFile(), BootstrapSettings.MEMORY_LOCK_SETTING.get(settings), initializeProbes();
/** * 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(); }
void init(final boolean daemonize, final Path pidFile, final boolean quiet, Environment initialEnv) throws NodeValidationException, UserException { try { Bootstrap.init(!daemonize, pidFile, quiet, initialEnv); } catch (BootstrapException | RuntimeException e) { // format exceptions to the console in a special way // to avoid 2MB stacktraces from guice, etc. throw new StartupException(e); } }
INSTANCE = new Bootstrap(); final SecureSettings keystore = loadSecureSettings(initialEnv); final Environment environment = createEnvironment(foreground, pidFile, keystore, initialEnv.settings(), initialEnv.configFile()); Loggers.removeAppender(rootLogger, maybeConsoleAppender); closeSystOut(); checkLucene(); INSTANCE.setup(true, environment); INSTANCE.start(); closeSysError();
org.elasticsearch.bootstrap.Bootstrap.initializeNatives( env.tmpFile(), settings.getAsBoolean("bootstrap.memory_lock", true), org.elasticsearch.bootstrap.Bootstrap.initializeProbes();
/** * 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(); }
void init(final boolean daemonize, final Path pidFile, final boolean quiet, Environment initialEnv) throws NodeValidationException, UserException { try { Bootstrap.init(!daemonize, pidFile, quiet, initialEnv); } catch (BootstrapException | RuntimeException e) { // format exceptions to the console in a special way // to avoid 2MB stacktraces from guice, etc. throw new StartupException(e); } }
initializeNatives( environment.tmpFile(), BootstrapSettings.MEMORY_LOCK_SETTING.get(settings), initializeProbes();
/** * 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(); }
void init(final boolean daemonize, final Path pidFile, final boolean quiet, Environment initialEnv) throws NodeValidationException, UserException { try { Bootstrap.init(!daemonize, pidFile, quiet, initialEnv); } catch (BootstrapException | RuntimeException e) { // format exceptions to the console in a special way // to avoid 2MB stacktraces from guice, etc. throw new StartupException(e); } }
initializeNatives( environment.tmpFile(), BootstrapSettings.MEMORY_LOCK_SETTING.get(settings), initializeProbes();