Class JournalCleaner
- java.lang.Object
-
- com.atlassian.confluence.impl.journal.JournalCleaner
-
- All Implemented Interfaces:
com.atlassian.scheduler.JobRunner
public class JournalCleaner extends Object implements com.atlassian.scheduler.JobRunner
Creates index backups and removes old index journal entries.Takes a snapshot of the index to use as a backup, but only for clustered confluence. This can be overridden with create.index.backups system property.
By default entries older than two days are removed, but the life time of entries can be overriden with com.atlassian.confluence.journal.timeToLiveInMillis system property.
- Since:
- 5.6
-
-
Constructor Summary
Constructors Constructor Description JournalCleaner(ClusterConfigurationHelper clusterConfigurationHelper, com.atlassian.plugin.PluginAccessor pluginAccessor, IndexRecoveryService indexRecoveryService, JournalDao journalDao, long defaultTimeToLiveMillis)
JournalCleaner(ClusterConfigurationHelper clusterConfigurationHelper, com.atlassian.plugin.PluginAccessor pluginAccessor, IndexRecoveryService indexRecoveryService, JournalDao journalDao, com.atlassian.core.util.Clock clock, long defaultTimeToLiveMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable com.atlassian.scheduler.JobRunnerResponse
runJob(com.atlassian.scheduler.JobRunnerRequest request)
-
-
-
Constructor Detail
-
JournalCleaner
public JournalCleaner(ClusterConfigurationHelper clusterConfigurationHelper, com.atlassian.plugin.PluginAccessor pluginAccessor, IndexRecoveryService indexRecoveryService, JournalDao journalDao, long defaultTimeToLiveMillis)
-
JournalCleaner
public JournalCleaner(ClusterConfigurationHelper clusterConfigurationHelper, com.atlassian.plugin.PluginAccessor pluginAccessor, IndexRecoveryService indexRecoveryService, JournalDao journalDao, com.atlassian.core.util.Clock clock, long defaultTimeToLiveMillis)
-
-