Package org.graylog2.bootstrap
Class ServerBootstrap
java.lang.Object
org.graylog2.bootstrap.CmdLineTool
org.graylog2.bootstrap.ServerBootstrap
- All Implemented Interfaces:
Runnable
,CliCommand
- Direct Known Subclasses:
Server
-
Field Summary
Fields inherited from class org.graylog2.bootstrap.CmdLineTool
bootstrapConfigInjector, chainingClassLoader, commandName, configuration, dumpConfig, dumpDefaultConfig, featureFlags, FILE_SEPARATOR, GRAYLOG_ENVIRONMENT_VAR_PREFIX, GRAYLOG_SYSTEM_PROP_PREFIX, injector, jadConfig, pluginLoader, TMPDIR, version
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ServerBootstrap
(String commandName, Configuration configuration) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 theCmdLineTool.startCommand()
method is being called.protected List<com.google.inject.Module>
boolean
void
runMigrations
(com.google.inject.Injector injector, MigrationType migrationType) protected void
savePidFile
(String pidFile) protected void
protected abstract void
startNodeRegistration
(com.google.inject.Injector injector) Methods inherited from class org.graylog2.bootstrap.CmdLineTool
annotateInjectorCreationException, annotateInjectorExceptions, applySecuritySettings, beforeStart, capabilities, doRun, getCommandBindings, getCommandConfigurationBeans, getConfigRepositories, getPluginLoader, installConfigRepositories, isDebug, isDumpConfig, isDumpDefaultConfig, isMigrationCommand, loadPlugins, onlyLogErrors, processConfiguration, run, setupBootstrapConfigInjector, setupInjector, setupLogger, validateConfiguration
-
Constructor Details
-
ServerBootstrap
-
-
Method Details
-
startNodeRegistration
protected abstract void startNodeRegistration(com.google.inject.Injector injector) -
getPidFile
-
isNoPidFile
public boolean isNoPidFile() -
beforeStart
protected void beforeStart(TLSProtocolsConfiguration tlsProtocolsConfiguration, PathConfiguration pathConfiguration) Description copied from class:CmdLineTool
Things that have to run before theCmdLineTool.startCommand()
method is being called. Please note that this happens *before* the configuration file has been parsed.- Overrides:
beforeStart
in classCmdLineTool
-
beforeInjectorCreation
Description copied from class:CmdLineTool
Things that have to run before the guice injector is created. This call happens *after* the configuration file has been parsed.- Overrides:
beforeInjectorCreation
in classCmdLineTool
- Parameters:
plugins
- The already loaded plugins
-
startCommand
protected void startCommand()- Specified by:
startCommand
in classCmdLineTool
-
runMigrations
-
savePidFile
-
annotateProvisionException
protected void annotateProvisionException(com.google.inject.ProvisionException e) -
shutdownHook
-