Class ConfluenceAbstractLongRunningTask

java.lang.Object
com.atlassian.core.task.longrunning.AbstractLongRunningTask
com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask
All Implemented Interfaces:
com.atlassian.core.task.longrunning.LongRunningTask, Runnable
Direct Known Subclasses:
AbstractConfigLongRunningTask, AttachmentMigratorToV4, DeleteUserLongRunningTask, ExportSpaceLongRunningTask, ImportLongRunningTask, LongRunningTaskMovePageCommandDecorator, SpaceRemovalLongRunningTask, StartClusterLongRunningTask

public abstract class ConfluenceAbstractLongRunningTask extends com.atlassian.core.task.longrunning.AbstractLongRunningTask
Base class for long running tasks in Confluence. Provides correct resource bundle
  • Field Summary

    Fields inherited from class com.atlassian.core.task.longrunning.AbstractLongRunningTask

    log, METRIC_NAME, progress, TASK_CLASSNAME_TAG, TASK_NAME_TAG
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected ResourceBundle
     
    void
    run()
    Starts the thread of the long running task.
    protected abstract void
    Run the long running process.

    Methods inherited from class com.atlassian.core.task.longrunning.AbstractLongRunningTask

    getCurrentStatus, getElapsedTime, getEstimatedTimeRemaining, getNameKey, getPercentageComplete, getPrettyElapsedTime, getPrettyTimeRemaining, isComplete, isSuccessful, stopTimer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.atlassian.core.task.longrunning.LongRunningTask

    getName
  • Constructor Details

    • ConfluenceAbstractLongRunningTask

      public ConfluenceAbstractLongRunningTask()
  • Method Details

    • run

      public void run()
      Starts the thread of the long running task. Subclasses should override runInternal instead.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class com.atlassian.core.task.longrunning.AbstractLongRunningTask
    • runInternal

      protected abstract void runInternal()
      Run the long running process. When this method exits, the process should be complete.
    • getResourceBundle

      protected ResourceBundle getResourceBundle()
      Specified by:
      getResourceBundle in class com.atlassian.core.task.longrunning.AbstractLongRunningTask