com.atlassian.confluence.util.longrunning
Class DelegatingLongRunningTask

java.lang.Object
  extended by com.atlassian.confluence.util.longrunning.DelegatingLongRunningTask
All Implemented Interfaces:
com.atlassian.core.task.longrunning.LongRunningTask, Runnable
Direct Known Subclasses:
OpenTenantGateLongRunningTask

public abstract class DelegatingLongRunningTask
extends Object
implements com.atlassian.core.task.longrunning.LongRunningTask

Since:
5.6

Field Summary
protected  com.atlassian.core.task.longrunning.LongRunningTask delegate
           
 
Constructor Summary
protected DelegatingLongRunningTask(com.atlassian.core.task.longrunning.LongRunningTask delegate)
           
 
Method Summary
 String getCurrentStatus()
           
 long getElapsedTime()
           
 long getEstimatedTimeRemaining()
           
 String getName()
           
 String getNameKey()
           
 int getPercentageComplete()
           
 String getPrettyElapsedTime()
           
 String getPrettyTimeRemaining()
           
 boolean isComplete()
           
 boolean isSuccessful()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected final com.atlassian.core.task.longrunning.LongRunningTask delegate
Constructor Detail

DelegatingLongRunningTask

protected DelegatingLongRunningTask(com.atlassian.core.task.longrunning.LongRunningTask delegate)
Method Detail

getPercentageComplete

public int getPercentageComplete()
Specified by:
getPercentageComplete in interface com.atlassian.core.task.longrunning.LongRunningTask

getName

public String getName()
Specified by:
getName in interface com.atlassian.core.task.longrunning.LongRunningTask

getNameKey

public String getNameKey()
Specified by:
getNameKey in interface com.atlassian.core.task.longrunning.LongRunningTask

getCurrentStatus

public String getCurrentStatus()
Specified by:
getCurrentStatus in interface com.atlassian.core.task.longrunning.LongRunningTask

getElapsedTime

public long getElapsedTime()
Specified by:
getElapsedTime in interface com.atlassian.core.task.longrunning.LongRunningTask

getPrettyElapsedTime

public String getPrettyElapsedTime()
Specified by:
getPrettyElapsedTime in interface com.atlassian.core.task.longrunning.LongRunningTask

getEstimatedTimeRemaining

public long getEstimatedTimeRemaining()
Specified by:
getEstimatedTimeRemaining in interface com.atlassian.core.task.longrunning.LongRunningTask

getPrettyTimeRemaining

public String getPrettyTimeRemaining()
Specified by:
getPrettyTimeRemaining in interface com.atlassian.core.task.longrunning.LongRunningTask

isComplete

public boolean isComplete()
Specified by:
isComplete in interface com.atlassian.core.task.longrunning.LongRunningTask

isSuccessful

public boolean isSuccessful()
Specified by:
isSuccessful in interface com.atlassian.core.task.longrunning.LongRunningTask

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2003–2015 Atlassian. All rights reserved.