public abstract class

AbstractLongRunningTask

extends Object
implements LongRunningTask
java.lang.Object
   ↳ com.atlassian.core.task.longrunning.AbstractLongRunningTask

Summary

Fields
public static final Category log
protected ProgressMeter progress
Protected Constructors
AbstractLongRunningTask()
Public Methods
String getCurrentStatus()
long getElapsedTime()
long getEstimatedTimeRemaining()
String getNameKey()
Internationalisation key for the name of the task, so that the task's name can be displayed in the User Interface.
int getPercentageComplete()
String getPrettyElapsedTime()
String getPrettyTimeRemaining()
boolean isComplete()
boolean isSuccessful()
void run()
Protected Methods
abstract ResourceBundle getResourceBundle()
void stopTimer()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.core.task.longrunning.LongRunningTask
From interface java.lang.Runnable

Fields

public static final Category log

protected ProgressMeter progress

Protected Constructors

protected AbstractLongRunningTask ()

Public Methods

public String getCurrentStatus ()

public long getElapsedTime ()

public long getEstimatedTimeRemaining ()

public String getNameKey ()

Internationalisation key for the name of the task, so that the task's name can be displayed in the User Interface. Default implementation returns null, since some uses of LongRunningTask may not require internationalisation of the name (eg if the name of the task is never displayed in the UI).

Returns
  • I18n key as a string, or null if no key defined. Null if not overridden.

public int getPercentageComplete ()

public String getPrettyElapsedTime ()

public String getPrettyTimeRemaining ()

public boolean isComplete ()

public boolean isSuccessful ()

public void run ()

Protected Methods

protected abstract ResourceBundle getResourceBundle ()

protected void stopTimer ()