public class BuildIndexTaskManager
- extends Object
Class that manages a single did-you-mean index build task. Only one of these
tasks can run at any one time. All interactions with a task should go through this manager.
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BuildIndexTaskManager(IndexBuilder fullIndexBuilder,
public boolean runTask()
- Spawns a separate thread to build the did-you-mean index asynchronously.
Checks first that a build is not currently in progress.
- true if a build of the index was successfully started, false otherwise (implying one is currently in progress).
public boolean isTaskInProgress()
public boolean isTaskReady()
- true if
IndexBuilder.isReady() is true, false otherwise.
public int getTaskPercentageComplete()
- the progress (as a percentage) of the currently managed task (or 0 if no task has been assigned yet)
public String getTaskElapsedTime()
public BuildIndexTaskManager.IndexProgress getIndexProgress()
Copyright © 2003-2011 Atlassian. All Rights Reserved.