public abstract class StartStopTask extends Task
Task.State, Task.Type
errorLogs, 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, runningOnSameServer
protected 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 Task
public boolean canLaunch(Task taskToBeLaunched, Collection<LocalizableMessage> incompatibilityReasons)
true
.canLaunch
in class Task
taskToBeLaunched
- 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 Task
protected void postCommandLine()
Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.