Package com.atlassian.confluence.it
Class DeferredLongRunningTask
- java.lang.Object
-
- com.atlassian.confluence.it.LongRunningTask
-
- 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
Fields Modifier and Type Field Description static String
LONGRUNNINGTASKXML_ACTION
-
Fields inherited from class com.atlassian.confluence.it.LongRunningTask
LONGRUNNINGTASK_ACTION
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeferredLongRunningTask
getInstance(String taskId)
static DeferredLongRunningTask
getInstance(String taskId, net.sourceforge.jwebunit.junit.WebTester webTester)
static DeferredLongRunningTask
getInstanceForDisplayedTask()
static DeferredLongRunningTask
getInstanceForDisplayedTask(net.sourceforge.jwebunit.junit.WebTester tester)
static DeferredLongRunningTask
getInstanceForSetup(String taskId)
static DeferredLongRunningTask
getInstanceForSetup(String taskId, net.sourceforge.jwebunit.junit.WebTester webTester)
boolean
waitToComplete(long timeout, TimeUnit unit)
boolean
waitToComplete(long timeout, TimeUnit unit, String errorText)
-
Methods inherited from class com.atlassian.confluence.it.LongRunningTask
waitToComplete
-
-
-
-
Field Detail
-
LONGRUNNINGTASKXML_ACTION
public static final String LONGRUNNINGTASKXML_ACTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstanceForSetup
public static DeferredLongRunningTask getInstanceForSetup(String taskId)
-
getInstanceForSetup
public static DeferredLongRunningTask getInstanceForSetup(String taskId, net.sourceforge.jwebunit.junit.WebTester webTester)
-
getInstance
public static DeferredLongRunningTask getInstance(String taskId)
-
getInstance
public static DeferredLongRunningTask getInstance(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, TimeUnit unit, String errorText)
- Overrides:
waitToComplete
in classLongRunningTask
-
waitToComplete
public boolean waitToComplete(long timeout, TimeUnit unit)
-
-