Class AbstractConfigLongRunningTask
- java.lang.Object
-
- com.atlassian.core.task.longrunning.AbstractLongRunningTask
-
- com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask
-
- com.atlassian.confluence.plugins.synchrony.tasks.AbstractConfigLongRunningTask
-
- All Implemented Interfaces:
com.atlassian.core.task.longrunning.LongRunningTask
,Runnable
- Direct Known Subclasses:
DisableTask
,EnableTask
,RestartSynchronyTask
public abstract class AbstractConfigLongRunningTask extends ConfluenceAbstractLongRunningTask
Abstract class for long running tasks which change Collaborative Editing configuration Usually, this is a change to the collaborative editing mode (on, limited, off) as well as restart.- Since:
- 6.0.1
-
-
Field Summary
Fields Modifier and Type Field Description protected com.atlassian.cache.CacheManager
cacheManager
protected com.atlassian.confluence.plugins.synchrony.config.SynchronyConfigurationManager
configManager
protected com.atlassian.event.api.EventPublisher
eventPublisher
protected static org.slf4j.Logger
log
protected SynchronyProcessManager
processManager
protected SynchronyMonitor
processMonitor
-
Constructor Summary
Constructors Constructor Description AbstractConfigLongRunningTask(com.atlassian.confluence.plugins.synchrony.config.SynchronyConfigurationManager configManager, SynchronyProcessManager processManager, SynchronyMonitor processMonitor, com.atlassian.cache.CacheManager cacheManager, SynchronyConfigTaskTracker taskTracker, com.atlassian.event.api.EventPublisher eventPublisher, CollaborativeEditingModeDuration collaborativeEditingModeDuration)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
execute()
protected void
runInternal()
Run the long running process.-
Methods inherited from class com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask
getResourceBundle, run
-
Methods inherited from class com.atlassian.core.task.longrunning.AbstractLongRunningTask
getCurrentStatus, getElapsedTime, getEstimatedTimeRemaining, getNameKey, getPercentageComplete, getPrettyElapsedTime, getPrettyTimeRemaining, isComplete, isSuccessful, stopTimer
-
-
-
-
Field Detail
-
log
protected static final org.slf4j.Logger log
-
configManager
protected final com.atlassian.confluence.plugins.synchrony.config.SynchronyConfigurationManager configManager
-
processManager
protected final SynchronyProcessManager processManager
-
processMonitor
protected final SynchronyMonitor processMonitor
-
cacheManager
protected final com.atlassian.cache.CacheManager cacheManager
-
eventPublisher
protected final com.atlassian.event.api.EventPublisher eventPublisher
-
-
Constructor Detail
-
AbstractConfigLongRunningTask
public AbstractConfigLongRunningTask(com.atlassian.confluence.plugins.synchrony.config.SynchronyConfigurationManager configManager, SynchronyProcessManager processManager, SynchronyMonitor processMonitor, com.atlassian.cache.CacheManager cacheManager, SynchronyConfigTaskTracker taskTracker, com.atlassian.event.api.EventPublisher eventPublisher, CollaborativeEditingModeDuration collaborativeEditingModeDuration)
-
-
Method Detail
-
runInternal
protected void runInternal()
Description copied from class:ConfluenceAbstractLongRunningTask
Run the long running process. When this method exits, the process should be complete.- Specified by:
runInternal
in classConfluenceAbstractLongRunningTask
-
-