Package org.graylog2.commands
Class Server
java.lang.Object
org.graylog2.bootstrap.CmdLineTool
org.graylog2.bootstrap.ServerBootstrap
org.graylog2.commands.Server
- All Implemented Interfaces:
Runnable
,CliCommand
- Direct Known Subclasses:
MigrateCmd
@Command(name="server",
description="Start the Graylog server")
public class Server
extends ServerBootstrap
-
Field Summary
Fields inherited from class org.graylog2.bootstrap.CmdLineTool
chainingClassLoader, commandName, coreConfigInjector, dumpConfig, dumpDefaultConfig, featureFlags, FILE_SEPARATOR, GRAYLOG_ENVIRONMENT_VAR_PREFIX, GRAYLOG_SYSTEM_PROP_PREFIX, injector, jadConfig, TMPDIR, version
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
annotateInjectorExceptions
(Collection<com.google.inject.spi.Message> messages) protected Set<ServerStatus.Capability>
protected List<com.google.inject.Module>
getCommandBindings
(FeatureFlags featureFlags) boolean
isLocal()
protected void
startNodeRegistration
(com.google.inject.Injector injector) Methods inherited from class org.graylog2.bootstrap.ServerBootstrap
annotateProvisionException, beforeInjectorCreation, beforeStart, getPidFile, getSharedBindingsModules, isNoPidFile, runMigrations, savePidFile, startCommand
Methods inherited from class org.graylog2.bootstrap.CmdLineTool
annotateInjectorCreationException, applySecuritySettings, beforeStart, doRun, getConfigRepositories, installConfigRepositories, isDebug, isDumpConfig, isDumpDefaultConfig, isMigrationCommand, loadPlugins, onlyLogErrors, processConfiguration, run, setupCoreConfigInjector, setupInjector, setupLogger, validateConfiguration
-
Field Details
-
configuration
-
-
Constructor Details
-
Server
public Server() -
Server
-
-
Method Details
-
isLocal
public boolean isLocal() -
getCommandBindings
- Specified by:
getCommandBindings
in classCmdLineTool
-
getCommandConfigurationBeans
- Specified by:
getCommandConfigurationBeans
in classCmdLineTool
-
startNodeRegistration
protected void startNodeRegistration(com.google.inject.Injector injector) - Specified by:
startNodeRegistration
in classServerBootstrap
-
shutdownHook
- Specified by:
shutdownHook
in classServerBootstrap
-
annotateInjectorExceptions
- Overrides:
annotateInjectorExceptions
in classCmdLineTool
-
capabilities
- Overrides:
capabilities
in classCmdLineTool
-