public abstract class CommandsTask extends AbstractTask
ENV_BUNDLES, ENV_CONFIG, ENV_EAR, ENV_HOME, ENV_HOSTAPP_NAME, ENV_HOSTAPP_VERSION, ENV_LIB, ENV_SERVER_HOME, ENV_SYSLIB, ENV_TEMPLATES, ENV_TIMESTAMP, PKG_ID, PKG_NAME, PKG_ROOT, PKG_VERSION
Constructor and Description |
---|
CommandsTask(org.nuxeo.connect.update.PackageUpdateService pus) |
Modifier and Type | Method and Description |
---|---|
void |
addCommand(org.nuxeo.connect.update.task.Command command)
Adds a command to this task.
|
void |
doValidate(org.nuxeo.connect.update.ValidationStatus status) |
List<org.nuxeo.connect.update.task.Command> |
getCommandLog()
Gets the command log.
|
List<org.nuxeo.connect.update.task.Command> |
getCommands()
Gets the commands to execute.
|
void |
initialize(org.nuxeo.connect.update.LocalPackage pkg,
boolean restart) |
String |
parametrizePaths(String content) |
void |
readLog(Reader reader) |
void |
writeLog(File file) |
getFile, getPackage, getRelativeFilePath, getUpdateManager, isInstallTask, isRestartRequired, rollback, run, setRestartRequired, validate
public CommandsTask(org.nuxeo.connect.update.PackageUpdateService pus)
public void initialize(org.nuxeo.connect.update.LocalPackage pkg, boolean restart) throws org.nuxeo.connect.update.PackageException
initialize
in interface org.nuxeo.connect.update.task.Task
initialize
in class AbstractTask
org.nuxeo.connect.update.PackageException
public List<org.nuxeo.connect.update.task.Command> getCommands()
public List<org.nuxeo.connect.update.task.Command> getCommandLog()
public void addCommand(org.nuxeo.connect.update.task.Command command)
public void doValidate(org.nuxeo.connect.update.ValidationStatus status) throws org.nuxeo.connect.update.PackageException
doValidate
in class AbstractTask
org.nuxeo.connect.update.PackageException
public void writeLog(File file) throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageException
public void readLog(Reader reader) throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageException
Copyright © 2015 Nuxeo SA. All rights reserved.