public abstract class ServerBootstrap extends CmdLineTool
chainingClassLoader, commandName, configuration, coreConfigInjector, dumpConfig, dumpDefaultConfig, featureFlags, FILE_SEPARATOR, GRAYLOG_ENVIRONMENT_VAR_PREFIX, GRAYLOG_SYSTEM_PROP_PREFIX, injector, jadConfig, TMPDIR, version| Modifier | Constructor and Description |
|---|---|
protected |
ServerBootstrap(String commandName,
Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
annotateProvisionException(com.google.inject.ProvisionException e) |
protected void |
beforeInjectorCreation(Set<Plugin> plugins)
Things that have to run before the guice injector is created.
|
protected void |
beforeStart(TLSProtocolsConfiguration tlsProtocolsConfiguration,
PathConfiguration pathConfiguration)
Things that have to run before the
CmdLineTool.startCommand() method is being called. |
String |
getPidFile() |
protected List<com.google.inject.Module> |
getSharedBindingsModules() |
boolean |
isNoPidFile() |
void |
runMigrations() |
protected void |
savePidFile(String pidFile) |
protected abstract Class<? extends Runnable> |
shutdownHook() |
protected void |
startCommand() |
protected abstract void |
startNodeRegistration(com.google.inject.Injector injector) |
annotateInjectorCreationException, annotateInjectorExceptions, applySecuritySettings, beforeStart, capabilities, getCommandBindings, getCommandConfigurationBeans, getConfigRepositories, isDebug, isDumpConfig, isDumpDefaultConfig, isMigrationCommand, loadPlugins, onlyLogErrors, processConfiguration, run, setupCoreConfigInjector, setupInjector, setupLogger, validateConfigurationprotected ServerBootstrap(String commandName, Configuration configuration)
protected abstract void startNodeRegistration(com.google.inject.Injector injector)
public String getPidFile()
public boolean isNoPidFile()
protected void beforeStart(TLSProtocolsConfiguration tlsProtocolsConfiguration, PathConfiguration pathConfiguration)
CmdLineToolCmdLineTool.startCommand() method is being called.
Please note that this happens *before* the configuration file has been parsed.beforeStart in class CmdLineToolprotected void beforeInjectorCreation(Set<Plugin> plugins)
CmdLineToolbeforeInjectorCreation in class CmdLineToolplugins - The already loaded pluginsprotected void startCommand()
startCommand in class CmdLineToolpublic void runMigrations()
protected void savePidFile(String pidFile)
protected List<com.google.inject.Module> getSharedBindingsModules()
getSharedBindingsModules in class CmdLineToolprotected void annotateProvisionException(com.google.inject.ProvisionException e)
Copyright © 2012–2022 Graylog, Inc.. All rights reserved.