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
chainingClassLoader, commandName, configuration, coreConfigInjector, dumpConfig, dumpDefaultConfig, featureFlags, FILE_SEPARATOR, GRAYLOG_ENVIRONMENT_VAR_PREFIX, GRAYLOG_SYSTEM_PROP_PREFIX, injector, jadConfig, TMPDIR, version
-
Constructor Summary
ModifierConstructorDescriptionprotected
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
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, isDebug, isDumpConfig, isDumpDefaultConfig, isMigrationCommand, loadPlugins, onlyLogErrors, processConfiguration, run, setupCoreConfigInjector, 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
public void runMigrations() -
savePidFile
-
annotateProvisionException
protected void annotateProvisionException(com.google.inject.ProvisionException e) -
shutdownHook
-