Class JournalCleaner
java.lang.Object
com.atlassian.confluence.impl.journal.JournalCleaner
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionJournalCleaner
(ClusterConfigurationHelper clusterConfigurationHelper, com.atlassian.plugin.PluginAccessor pluginAccessor, IndexRecoveryService indexRecoveryService, JournalServiceInternal journalServiceInternal, long defaultTimeToLiveMillis, List<IncrementalSyncCleaner> incrementalSyncCleaners) JournalCleaner
(ClusterConfigurationHelper clusterConfigurationHelper, com.atlassian.plugin.PluginAccessor pluginAccessor, IndexRecoveryService indexRecoveryService, JournalServiceInternal journalServiceInternal, com.atlassian.core.util.Clock clock, long defaultTimeToLiveMillis, List<IncrementalSyncCleaner> incrementalSyncCleaners) -
Method Summary
Modifier and TypeMethodDescription@Nullable com.atlassian.scheduler.JobRunnerResponse
runJob
(com.atlassian.scheduler.JobRunnerRequest request)
-
Constructor Details
-
JournalCleaner
public JournalCleaner(ClusterConfigurationHelper clusterConfigurationHelper, com.atlassian.plugin.PluginAccessor pluginAccessor, IndexRecoveryService indexRecoveryService, JournalServiceInternal journalServiceInternal, long defaultTimeToLiveMillis, List<IncrementalSyncCleaner> incrementalSyncCleaners) -
JournalCleaner
public JournalCleaner(ClusterConfigurationHelper clusterConfigurationHelper, com.atlassian.plugin.PluginAccessor pluginAccessor, IndexRecoveryService indexRecoveryService, JournalServiceInternal journalServiceInternal, com.atlassian.core.util.Clock clock, long defaultTimeToLiveMillis, List<IncrementalSyncCleaner> incrementalSyncCleaners)
-
-
Method Details
-
runJob
public @Nullable com.atlassian.scheduler.JobRunnerResponse runJob(com.atlassian.scheduler.JobRunnerRequest request) - Specified by:
runJob
in interfacecom.atlassian.scheduler.JobRunner
-