public class JournalCleaner extends AbstractClusterAwareQuartzJobBean
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. 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.
Constructor and Description |
---|
JournalCleaner() |
JournalCleaner(com.atlassian.core.util.Clock clock) |
Modifier and Type | Method and Description |
---|---|
protected void |
executeJob(org.quartz.JobExecutionContext jobExecutionContext) |
void |
setClusterManager(ClusterManager clusterManager) |
void |
setDefaultTimeToLiveMillis(String defaultTimeToLiveMillis) |
void |
setIndexRecoveryService(IndexRecoveryService indexRecoveryService) |
void |
setJournalDao(JournalDao journalDao) |
void |
setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor) |
executeInternal, shouldExecuteOnNonCluster
public JournalCleaner()
public JournalCleaner(com.atlassian.core.util.Clock clock)
protected void executeJob(org.quartz.JobExecutionContext jobExecutionContext) throws org.quartz.JobExecutionException
executeJob
in class AbstractClusterAwareQuartzJobBean
org.quartz.JobExecutionException
public void setIndexRecoveryService(IndexRecoveryService indexRecoveryService)
public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
public void setJournalDao(JournalDao journalDao)
public void setDefaultTimeToLiveMillis(String defaultTimeToLiveMillis)
public void setClusterManager(ClusterManager clusterManager)
setClusterManager
in class AbstractClusterAwareQuartzJobBean
Copyright © 2003–2016 Atlassian. All rights reserved.