java.lang.Object |
↳ |
com.atlassian.confluence.search.didyoumean.BuildIndexTaskManager |
Class Overview
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.
Summary
Nested Classes |
class |
BuildIndexTaskManager.IndexProgress |
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
Public Methods
public
synchronized
String
getTaskElapsedTime
()
public
synchronized
int
getTaskPercentageComplete
()
Returns
- the progress (as a percentage) of the currently managed task (or 0 if no task has been assigned yet)
public
synchronized
boolean
isTaskInProgress
()
public
boolean
isTaskReady
()
public
synchronized
boolean
runTask
()
Spawns a separate thread to build the did-you-mean index asynchronously.
Checks first that a build is not currently in progress.
Returns
- true if a build of the index was successfully started, false otherwise (implying one is currently in progress).