Class ServerBootstrap

java.lang.Object
org.graylog2.bootstrap.CmdLineTool
org.graylog2.bootstrap.ServerBootstrap
All Implemented Interfaces:
Runnable, CliCommand
Direct Known Subclasses:
Server

public abstract class ServerBootstrap extends CmdLineTool
  • Constructor Details

    • ServerBootstrap

      protected ServerBootstrap(String commandName, Configuration configuration)
  • Method Details

    • startNodeRegistration

      protected abstract void startNodeRegistration(com.google.inject.Injector injector)
    • getPidFile

      public String getPidFile()
    • isNoPidFile

      public boolean isNoPidFile()
    • beforeStart

      protected void beforeStart(TLSProtocolsConfiguration tlsProtocolsConfiguration, PathConfiguration pathConfiguration)
      Description copied from class: CmdLineTool
      Things that have to run before the CmdLineTool.startCommand() method is being called. Please note that this happens *before* the configuration file has been parsed.
      Overrides:
      beforeStart in class CmdLineTool
    • beforeInjectorCreation

      protected void beforeInjectorCreation(Set<Plugin> plugins)
      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 class CmdLineTool
      Parameters:
      plugins - The already loaded plugins
    • startCommand

      protected void startCommand()
      Specified by:
      startCommand in class CmdLineTool
    • runMigrations

      public void runMigrations(com.google.inject.Injector injector, MigrationType migrationType)
    • savePidFile

      protected void savePidFile(String pidFile)
    • getSharedBindingsModules

      protected List<com.google.inject.Module> getSharedBindingsModules()
      Overrides:
      getSharedBindingsModules in class CmdLineTool
    • annotateProvisionException

      protected void annotateProvisionException(com.google.inject.ProvisionException e)
    • shutdownHook

      protected abstract Class<? extends Runnable> shutdownHook()