com.atlassian.core.task.longrunning
Class AbstractLongRunningTask
java.lang.Object
com.atlassian.core.task.longrunning.AbstractLongRunningTask
- All Implemented Interfaces:
- LongRunningTask, Runnable
public abstract class AbstractLongRunningTask
- extends Object
- implements LongRunningTask
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static final org.apache.log4j.Category log
progress
protected ProgressMeter progress
AbstractLongRunningTask
protected AbstractLongRunningTask()
run
public void run()
- Specified by:
run in interface Runnable
getNameKey
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).
- Specified by:
getNameKey in interface LongRunningTask
- Returns:
- I18n key as a string, or null if no key defined. Null if not overridden.
getPercentageComplete
public int getPercentageComplete()
- Specified by:
getPercentageComplete in interface LongRunningTask
getCurrentStatus
public String getCurrentStatus()
- Specified by:
getCurrentStatus in interface LongRunningTask
getElapsedTime
public long getElapsedTime()
- Specified by:
getElapsedTime in interface LongRunningTask
getEstimatedTimeRemaining
public long getEstimatedTimeRemaining()
- Specified by:
getEstimatedTimeRemaining in interface LongRunningTask
isComplete
public boolean isComplete()
- Specified by:
isComplete in interface LongRunningTask
getPrettyElapsedTime
public String getPrettyElapsedTime()
- Specified by:
getPrettyElapsedTime in interface LongRunningTask
getResourceBundle
protected abstract ResourceBundle getResourceBundle()
getPrettyTimeRemaining
public String getPrettyTimeRemaining()
- Specified by:
getPrettyTimeRemaining in interface LongRunningTask
isSuccessful
public boolean isSuccessful()
- Specified by:
isSuccessful in interface LongRunningTask
stopTimer
protected void stopTimer()
Copyright © 2015 Atlassian. All rights reserved.