com.atlassian.confluence.util.longrunning
Class ConfluenceAbstractLongRunningTask

java.lang.Object
  extended by com.atlassian.core.task.longrunning.AbstractLongRunningTask
      extended by com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask
All Implemented Interfaces:
com.atlassian.core.task.longrunning.LongRunningTask, java.lang.Runnable
Direct Known Subclasses:
AttachmentMigrationLongRunningTask, ExportSpaceLongRunningTask, ImportLongRunningTask, MboxImporter, MigrateExternalMembershipsLongRunningTask, MigrateUserPropertyEntriesLongRunningTask, StartClusterLongRunningTask, StartClusterTask

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, progress
 
Constructor Summary
ConfluenceAbstractLongRunningTask()
           
 
Method Summary
protected  java.util.ResourceBundle getResourceBundle()
           
 void run()
          Starts the thread of the long running task.
protected abstract  void runInternal()
          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 Detail

ConfluenceAbstractLongRunningTask

public ConfluenceAbstractLongRunningTask()
Method Detail

run

public final void run()
Starts the thread of the long running task. Subclasses should override runInternal instead.

Specified by:
run in interface java.lang.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 java.util.ResourceBundle getResourceBundle()
Specified by:
getResourceBundle in class com.atlassian.core.task.longrunning.AbstractLongRunningTask


Copyright © 2003-2014 Atlassian. All Rights Reserved.