public class NewSchemaElementsTask extends Task
Task.State, Task.Type
errorPrintStream, lastException, outPrintStream, returnCode, state
Constructor and Description |
---|
NewSchemaElementsTask(ControlPanelInfo info,
ProgressDialog dlg,
Set<org.forgerock.opendj.ldap.schema.ObjectClass> ocsToAdd,
Set<org.forgerock.opendj.ldap.schema.AttributeType> attrsToAdd)
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 List<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. |
LocalizableMessage |
getTaskDescription()
The description of the task.
|
Task.Type |
getType()
Returns the type of the task.
|
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, startPollingAndInitializeConfiguration, stopPollingAndInitializeConfiguration
public NewSchemaElementsTask(ControlPanelInfo info, ProgressDialog dlg, Set<org.forgerock.opendj.ldap.schema.ObjectClass> ocsToAdd, Set<org.forgerock.opendj.ldap.schema.AttributeType> attrsToAdd)
info
- the control panel information.dlg
- the progress dialog where the task progress will be displayed.ocsToAdd
- the object classes that must be created in order.attrsToAdd
- the attributes that must be created in order.public Set<String> getBackends()
Task
getBackends
in class Task
public boolean canLaunch(Task taskToBeLaunched, Collection<LocalizableMessage> incompatibilityReasons)
Task
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()
Task
public Task.Type getType()
Task
public LocalizableMessage getTaskDescription()
Task
getTaskDescription
in class Task
protected String getCommandLinePath()
Task
null
if there is not a command-line (or a single command-line)
associated with the task.getCommandLinePath
in class Task
protected List<String> getCommandLineArguments()
Task
getCommandLineArguments
in class Task
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.