public class JournalCleaner extends Object implements com.atlassian.scheduler.JobRunner
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.
Constructor and Description |
---|
JournalCleaner(ClusterManager clusterManager,
com.atlassian.plugin.PluginAccessor pluginAccessor,
IndexRecoveryService indexRecoveryService,
JournalDao journalDao,
com.atlassian.core.util.Clock clock,
long defaultTimeToLiveMillis) |
JournalCleaner(ClusterManager clusterManager,
com.atlassian.plugin.PluginAccessor pluginAccessor,
IndexRecoveryService indexRecoveryService,
JournalDao journalDao,
long defaultTimeToLiveMillis) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.scheduler.JobRunnerResponse |
runJob(com.atlassian.scheduler.JobRunnerRequest request) |
public JournalCleaner(ClusterManager clusterManager, com.atlassian.plugin.PluginAccessor pluginAccessor, IndexRecoveryService indexRecoveryService, JournalDao journalDao, long defaultTimeToLiveMillis)
public JournalCleaner(ClusterManager clusterManager, com.atlassian.plugin.PluginAccessor pluginAccessor, IndexRecoveryService indexRecoveryService, JournalDao journalDao, com.atlassian.core.util.Clock clock, long defaultTimeToLiveMillis)
@Nullable public com.atlassian.scheduler.JobRunnerResponse runJob(com.atlassian.scheduler.JobRunnerRequest request)
runJob
in interface com.atlassian.scheduler.JobRunner
Copyright © 2003–2017 Atlassian. All rights reserved.