Package org.graylog2.commands.journal
Class JournalTruncate
java.lang.Object
org.graylog2.bootstrap.CmdLineTool
org.graylog2.commands.journal.AbstractJournalCommand
org.graylog2.commands.journal.JournalTruncate
- All Implemented Interfaces:
Runnable
,CliCommand
@Command(name="truncate",
description="Truncates the journal to a given offset")
public class JournalTruncate
extends AbstractJournalCommand
-
Field Summary
Fields inherited from class org.graylog2.commands.journal.AbstractJournalCommand
configuration, journal, 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
Methods inherited from class org.graylog2.commands.journal.AbstractJournalCommand
getCommandBindings, getCommandConfigurationBeans, loadPlugins, onlyLogErrors, startCommand
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
-
Constructor Details
-
JournalTruncate
public JournalTruncate()
-
-
Method Details
-
runCommand
protected void runCommand()- Specified by:
runCommand
in classAbstractJournalCommand
-