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, kafkaJournalConfigurationFields 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
Constructors -
Method Summary
Methods inherited from class org.graylog2.commands.journal.AbstractJournalCommand
getCommandBindings, getCommandConfigurationBeans, loadPlugins, onlyLogErrors, startCommandMethods inherited from class org.graylog2.bootstrap.CmdLineTool
annotateInjectorCreationException, annotateInjectorExceptions, applySecuritySettings, beforeInjectorCreation, beforeStart, beforeStart, capabilities, doRun, getConfigRepositories, getSharedBindingsModules, installConfigRepositories, isDebug, isDumpConfig, isDumpDefaultConfig, isMigrationCommand, processConfiguration, run, setupCoreConfigInjector, setupInjector, setupLogger, validateConfiguration
-
Constructor Details
-
JournalTruncate
public JournalTruncate()
-
-
Method Details
-
runCommand
protected void runCommand()- Specified by:
runCommandin classAbstractJournalCommand
-