Class UninstallTask
- java.lang.Object
-
- org.nuxeo.connect.update.task.standalone.AbstractTask
-
- org.nuxeo.connect.update.task.standalone.CommandsTask
-
- org.nuxeo.connect.update.task.standalone.UninstallTask
-
- All Implemented Interfaces:
org.nuxeo.connect.update.task.Task
- Direct Known Subclasses:
LiveUninstallTask
public class UninstallTask extends CommandsTask
- Author:
- Bogdan Stefanescu
-
-
Field Summary
-
Fields inherited from class org.nuxeo.connect.update.task.standalone.CommandsTask
commandLog, commands
-
Fields inherited from class org.nuxeo.connect.update.task.standalone.AbstractTask
env, 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, PKG_ID, PKG_NAME, PKG_ROOT, PKG_VERSION, restart, serverPathPrefix, service, updateMgr, updateMgrLoaded
-
-
Constructor Summary
Constructors Constructor Description UninstallTask(org.nuxeo.connect.update.PackageUpdateService pus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doRun(Map<String,String> params)
User parameters are not handled by default.protected void
flush()
protected File
getCommandsFile()
Get the commands file from where to load commands for this task.boolean
isInstallTask()
protected void
rollbackDone()
protected void
taskDone()
-
Methods inherited from class org.nuxeo.connect.update.task.standalone.CommandsTask
addCommand, doRollback, doValidate, getCommandLog, getCommands, initialize, loadCommands, parametrizePaths, readLog, writeLog
-
Methods inherited from class org.nuxeo.connect.update.task.standalone.AbstractTask
createContextMap, getFile, getPackage, getRelativeFilePath, getUpdateManager, isRestartRequired, loadParametrizedFile, rollback, run, saveParams, setRestartRequired, validate, validateInstall
-
-
-
-
Method Detail
-
getCommandsFile
protected File getCommandsFile() throws org.nuxeo.connect.update.PackageException
Description copied from class:CommandsTask
Get the commands file from where to load commands for this task.- Specified by:
getCommandsFile
in classCommandsTask
- Throws:
org.nuxeo.connect.update.PackageException
-
isInstallTask
public boolean isInstallTask()
- Specified by:
isInstallTask
in classAbstractTask
-
rollbackDone
protected void rollbackDone() throws org.nuxeo.connect.update.PackageException
- Specified by:
rollbackDone
in classAbstractTask
- Throws:
org.nuxeo.connect.update.PackageException
-
taskDone
protected void taskDone() throws org.nuxeo.connect.update.PackageException
- Specified by:
taskDone
in classAbstractTask
- Throws:
org.nuxeo.connect.update.PackageException
-
doRun
protected void doRun(Map<String,String> params) throws org.nuxeo.connect.update.PackageException
Description copied from class:CommandsTask
User parameters are not handled by default. You need to implement your own task to do this.- Overrides:
doRun
in classCommandsTask
- Throws:
org.nuxeo.connect.update.PackageException
-
flush
protected void flush() throws org.nuxeo.connect.update.PackageException
- Specified by:
flush
in classCommandsTask
- Throws:
org.nuxeo.connect.update.PackageException
-
-