public class StartServerTask extends Task
Task.State, Task.TypeerrorPrintStream, lastException, outPrintStream, returnCode, state| Constructor and Description |
|---|
StartServerTask(ControlPanelInfo info,
ProgressDialog dlg)
Constructor of the task.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLaunch(Task taskToBeLaunched,
Collection<org.forgerock.i18n.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 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. |
org.forgerock.i18n.LocalizableMessage |
getTaskDescription()
The description of the task.
|
Task.Type |
getType()
Returns the type of the task.
|
protected void |
postCommandLine()
Method called just after calling the command-line.
|
void |
runTask()
Execute the task.
|
addConfigurationElementCreatedListener, executeCommandLine, getCommandLinePath, getCommandLineToDisplay, getConfigCommandLineArguments, getConnectionCommandLineArguments, getConnectionCommandLineArguments, getEquivalentCommandLine, getErrorLogs, getErrorPrintStream, getIncompatibilityMessage, getInfo, getLastException, getLogs, getNoPropertiesFileArgument, getObfuscatedCommandLineArguments, getOutPrintStream, getOutputLogs, getProcess, getProgressDialog, getReturnCode, getServer, getState, isServerRunning, notifyConfigurationElementCreated, obfuscateLDIFLine, postOperation, printEquivalentCommandLine, printEquivalentCommandToModify, printEquivalentRenameCommand, regenerateDescriptor, removeConfigurationElementCreatedListener, runningOnSameServer, startPoolingAndInitializeConfiguration, stopPoolingAndInitializeConfigurationpublic StartServerTask(ControlPanelInfo info, ProgressDialog dlg)
info - the control panel information.dlg - the progress dialog where the task progress will be displayed.public Task.Type getType()
Taskpublic org.forgerock.i18n.LocalizableMessage getTaskDescription()
TaskgetTaskDescription in class Taskprotected String getCommandLinePath()
Tasknull if there is not a command-line (or a single command-line)
associated with the task.getCommandLinePath in class Taskprotected ArrayList<String> getCommandLineArguments()
Taskpublic Set<String> getBackends()
TaskgetBackends in class Taskpublic boolean canLaunch(Task taskToBeLaunched, Collection<org.forgerock.i18n.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 void postCommandLine()
Copyright © 2010-2020 Wren Security. All Rights Reserved.