com.atlassian.confluence.it
Class DeferredLongRunningTask

java.lang.Object
  extended by com.atlassian.confluence.it.LongRunningTask
      extended by com.atlassian.confluence.it.DeferredLongRunningTask

public class DeferredLongRunningTask
extends LongRunningTask

Certain long running tasks (such as a site restore) are deferred until a subsequent call to the longrunningtaskxml action is made to indicate that it's safe to start the task. In this case, we want to query the longrunningtaskxml action instead of refreshing the status page to check progress.


Field Summary
static java.lang.String LONGRUNNINGTASKXML_ACTION
           
 
Fields inherited from class com.atlassian.confluence.it.LongRunningTask
LONGRUNNINGTASK_ACTION
 
Method Summary
static DeferredLongRunningTask getInstance(java.lang.String taskId)
           
static DeferredLongRunningTask getInstance(java.lang.String taskId, net.sourceforge.jwebunit.junit.WebTester webTester)
           
static DeferredLongRunningTask getInstanceForDisplayedTask()
           
static DeferredLongRunningTask getInstanceForDisplayedTask(net.sourceforge.jwebunit.junit.WebTester tester)
           
static DeferredLongRunningTask getInstanceForSetup(java.lang.String taskId)
           
static DeferredLongRunningTask getInstanceForSetup(java.lang.String taskId, net.sourceforge.jwebunit.junit.WebTester webTester)
           
 boolean waitToComplete(long timeout, java.util.concurrent.TimeUnit unit)
           
 boolean waitToComplete(long timeout, java.util.concurrent.TimeUnit unit, java.lang.String errorText)
           
 
Methods inherited from class com.atlassian.confluence.it.LongRunningTask
waitToComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LONGRUNNINGTASKXML_ACTION

public static final java.lang.String LONGRUNNINGTASKXML_ACTION
See Also:
Constant Field Values
Method Detail

getInstanceForSetup

public static DeferredLongRunningTask getInstanceForSetup(java.lang.String taskId)

getInstanceForSetup

public static DeferredLongRunningTask getInstanceForSetup(java.lang.String taskId,
                                                          net.sourceforge.jwebunit.junit.WebTester webTester)

getInstance

public static DeferredLongRunningTask getInstance(java.lang.String taskId)

getInstance

public static DeferredLongRunningTask getInstance(java.lang.String taskId,
                                                  net.sourceforge.jwebunit.junit.WebTester webTester)

getInstanceForDisplayedTask

public static DeferredLongRunningTask getInstanceForDisplayedTask()

getInstanceForDisplayedTask

public static DeferredLongRunningTask getInstanceForDisplayedTask(net.sourceforge.jwebunit.junit.WebTester tester)

waitToComplete

public boolean waitToComplete(long timeout,
                              java.util.concurrent.TimeUnit unit,
                              java.lang.String errorText)
Overrides:
waitToComplete in class LongRunningTask

waitToComplete

public boolean waitToComplete(long timeout,
                              java.util.concurrent.TimeUnit unit)


Copyright © 2003-2014 Atlassian. All Rights Reserved.