public abstract class StartStopTask extends Task
Task.State, Task.TypeerrorLogs, errorPrintStream, lastException, logs, outPrintStream, outputLogs, process, returnCode, state| Modifier | Constructor and Description |
|---|---|
protected |
StartStopTask(ControlPanelInfo info,
ProgressDialog progressDialog)
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.
|
Set<String> |
getBackends()
Returns the names of the backends that are affected by the task.
|
protected ArrayList<String> |
getCommandLineArguments()
Returns the list of command-line arguments.
|
protected void |
postCommandLine()
Method called just after calling the command-line.
|
void |
runTask()
Execute the task.
|
addConfigurationElementCreatedListener, displayBase64, executeCommandLine, getBinaryDir, getCommandLinePath, getCommandLinePath, getCommandLineToDisplay, getConfigCommandLineArguments, getConnectionCommandLineArguments, getConnectionCommandLineArguments, getEquivalentCommandLine, getErrorLogs, getErrorPrintStream, getIncompatibilityMessage, getInfo, getLastException, getLogs, getNoPropertiesFileArgument, getObfuscatedCommandLineArguments, getOutPrintStream, getOutputLogs, getProcess, getProgressDialog, getReturnCode, getServer, getState, getTaskDescription, getType, isServerRunning, notifyConfigurationElementCreated, obfuscateAttributeStringValue, obfuscateLDIFLine, postOperation, printEquivalentCommandLine, printEquivalentCommandToModify, printEquivalentCommandToModify, printEquivalentRenameCommand, regenerateDescriptor, removeConfigurationElementCreatedListener, runningOnSameServerprotected StartStopTask(ControlPanelInfo info, ProgressDialog progressDialog)
info - the control panel information.progressDialog - the progress dialog where the task progress will be
displayed.public Set<String> getBackends()
getBackends in class Taskpublic boolean canLaunch(Task taskToBeLaunched, Collection<LocalizableMessage> incompatibilityReasons)
true.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()
protected ArrayList<String> getCommandLineArguments()
getCommandLineArguments in class Taskprotected void postCommandLine()
Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.