Package org.graylog2.commands.journal
Class AbstractJournalCommand
java.lang.Object
org.graylog2.bootstrap.CmdLineTool
org.graylog2.commands.journal.AbstractJournalCommand
- All Implemented Interfaces:
Runnable
,CliCommand
- Direct Known Subclasses:
JournalDecode
,JournalShow
,JournalTruncate
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final Configuration
protected LocalKafkaJournal
protected final KafkaJournalConfiguration
Fields inherited from class org.graylog2.bootstrap.CmdLineTool
bootstrapConfigInjector, chainingClassLoader, commandName, dumpConfig, dumpDefaultConfig, featureFlags, FILE_SEPARATOR, GRAYLOG_ENVIRONMENT_VAR_PREFIX, GRAYLOG_SYSTEM_PROP_PREFIX, injector, jadConfig, pluginLoader, TMPDIR, version
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected List<com.google.inject.Module>
getCommandBindings
(FeatureFlags featureFlags) protected boolean
protected abstract void
protected void
Methods inherited from class org.graylog2.bootstrap.CmdLineTool
annotateInjectorCreationException, annotateInjectorExceptions, applySecuritySettings, beforeInjectorCreation, beforeStart, beforeStart, capabilities, doRun, getConfigRepositories, getPluginLoader, getSharedBindingsModules, installConfigRepositories, isDebug, isDumpConfig, isDumpDefaultConfig, isMigrationCommand, processConfiguration, run, setupBootstrapConfigInjector, setupInjector, setupLogger, validateConfiguration
-
Field Details
-
configuration
-
kafkaJournalConfiguration
-
journal
-
-
Constructor Details
-
AbstractJournalCommand
public AbstractJournalCommand() -
AbstractJournalCommand
-
-
Method Details
-
getCommandBindings
- Specified by:
getCommandBindings
in classCmdLineTool
-
getCommandConfigurationBeans
- Specified by:
getCommandConfigurationBeans
in classCmdLineTool
-
onlyLogErrors
protected boolean onlyLogErrors()- Overrides:
onlyLogErrors
in classCmdLineTool
-
loadPlugins
- Overrides:
loadPlugins
in classCmdLineTool
-
startCommand
protected void startCommand()- Specified by:
startCommand
in classCmdLineTool
-
runCommand
protected abstract void runCommand()
-