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
ConstructorsModifierConstructorDescriptionprotectedServerBootstrap(String commandName, Configuration configuration) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidannotateProvisionException(com.google.inject.ProvisionException e) protected voidbeforeInjectorCreation(Set<Plugin> plugins) Things that have to run before the guice injector is created.protected voidbeforeStart(TLSProtocolsConfiguration tlsProtocolsConfiguration, PathConfiguration pathConfiguration) Things that have to run before theCmdLineTool.startCommand()method is being called.protected List<com.google.inject.Module>booleanvoidprotected voidsavePidFile(String pidFile) protected voidprotected abstract voidstartNodeRegistration(com.google.inject.Injector injector) Methods inherited from class org.graylog2.bootstrap.CmdLineTool
annotateInjectorCreationException, annotateInjectorExceptions, applySecuritySettings, beforeStart, capabilities, doRun, getCommandBindings, getCommandConfigurationBeans, getConfigRepositories, installConfigRepositories, 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:CmdLineToolThings that have to run before theCmdLineTool.startCommand()method is being called. Please note that this happens *before* the configuration file has been parsed.- Overrides:
beforeStartin classCmdLineTool
-
beforeInjectorCreation
Description copied from class:CmdLineToolThings that have to run before the guice injector is created. This call happens *after* the configuration file has been parsed.- Overrides:
beforeInjectorCreationin classCmdLineTool- Parameters:
plugins- The already loaded plugins
-
startCommand
protected void startCommand()- Specified by:
startCommandin classCmdLineTool
-
runMigrations
public void runMigrations() -
savePidFile
-
annotateProvisionException
protected void annotateProvisionException(com.google.inject.ProvisionException e) -
shutdownHook
-