public class RebuildIndexTask extends IndexTask
Task.State, Task.Type| Modifier and Type | Field and Description |
|---|---|
static String[] |
INDEXES_NOT_TO_SPECIFY
The indexes that must not be specified in the command-line.
|
backendSet, baseDNserrorLogs, errorPrintStream, lastException, logs, outPrintStream, outputLogs, process, returnCode, state| Constructor and Description |
|---|
RebuildIndexTask(ControlPanelInfo info,
ProgressDialog dlg,
Collection<String> baseDNs,
SortedSet<AbstractIndexDescriptor> indexes)
Constructor of the task.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLaunch(Task taskToBeLaunched,
Collection<LocalizableMessage> incompatibilityReasons)
Informs of whether the task to be launched can be launched or not.
|
protected List<String> |
getCommandLineArguments()
Returns the list of command-line arguments.
|
protected List<String> |
getCommandLineArguments(String baseDN)
Returns the command line arguments required to rebuild the indexes in the
specified base DN.
|
protected String |
getCommandLinePath()
Returns the full path of the command-line associated with this task or
null if there is not a command-line (or a single command-line)
associated with the task. |
LocalizableMessage |
getTaskDescription()
The description of the task.
|
Task.Type |
getType()
Returns the type of the task.
|
void |
runTask()
Execute the task.
|
getBackendsaddConfigurationElementCreatedListener, displayBase64, executeCommandLine, getBinaryDir, getCommandLinePath, getCommandLineToDisplay, getConfigCommandLineArguments, getConnectionCommandLineArguments, getConnectionCommandLineArguments, getEquivalentCommandLine, getErrorLogs, getErrorPrintStream, getIncompatibilityMessage, getInfo, getLastException, getLogs, getNoPropertiesFileArgument, getObfuscatedCommandLineArguments, getOutPrintStream, getOutputLogs, getProcess, getProgressDialog, getReturnCode, getServer, getState, isServerRunning, notifyConfigurationElementCreated, obfuscateAttributeStringValue, obfuscateLDIFLine, postOperation, printEquivalentCommandLine, printEquivalentCommandToModify, printEquivalentCommandToModify, printEquivalentRenameCommand, regenerateDescriptor, removeConfigurationElementCreatedListener, runningOnSameServerpublic static final String[] INDEXES_NOT_TO_SPECIFY
public RebuildIndexTask(ControlPanelInfo info, ProgressDialog dlg, Collection<String> baseDNs, SortedSet<AbstractIndexDescriptor> indexes)
info - the control panel information.dlg - the progress dialog where the task progress will be displayed.baseDNs - the baseDNs corresponding to the indexes.indexes - the indexes.public Task.Type getType()
Taskpublic LocalizableMessage getTaskDescription()
TaskgetTaskDescription in class Taskpublic boolean canLaunch(Task taskToBeLaunched, Collection<LocalizableMessage> incompatibilityReasons)
Tasktrue.canLaunch in class TasktaskToBeLaunched - the Task that we are trying to launch.incompatibilityReasons - the list of incompatibility reasons that
must be updated.true if the task that we are trying to launch can be
launched in parallel with this task and false otherwise.public void runTask()
Taskprotected List<String> getCommandLineArguments()
TaskgetCommandLineArguments in class Taskprotected List<String> getCommandLineArguments(String baseDN)
baseDN - the base DN.protected String getCommandLinePath()
Tasknull if there is not a command-line (or a single command-line)
associated with the task.getCommandLinePath in class TaskCopyright © 2010-2015 ForgeRock AS. All Rights Reserved.