Class LiveInstallTask
- java.lang.Object
-
- org.nuxeo.connect.update.task.standalone.AbstractTask
-
- org.nuxeo.connect.update.task.standalone.CommandsTask
-
- org.nuxeo.connect.update.task.standalone.InstallTask
-
- org.nuxeo.connect.update.task.live.LiveInstallTask
-
- All Implemented Interfaces:
org.nuxeo.connect.update.task.Task
public class LiveInstallTask extends InstallTask
- 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 LiveInstallTask(org.nuxeo.connect.update.PackageUpdateService pus)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
doRun(Map<String,String> params)
User parameters are not handled by default.protected void
flush()
protected static void
reloadComponent(String name)
Deprecated.since 5.6: seereloadComponents(LocalPackage)
protected static void
reloadComponents(org.nuxeo.connect.update.LocalPackage localPackage)
Deprecated.since 5.6: this way of reloading components is smarter because the package installed can declare what needs to be reloaded exactly, but this is too complicated to handle, and risky given potential dependency issues => make components listen for the "flush" event instead, @seeReloadService
protected void
taskDone()
-
Methods inherited from class org.nuxeo.connect.update.task.standalone.InstallTask
getCommandsFile, isInstallTask, rollbackDone
-
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
-
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 classInstallTask
- Throws:
org.nuxeo.connect.update.PackageException
-
taskDone
protected void taskDone() throws org.nuxeo.connect.update.PackageException
- Overrides:
taskDone
in classInstallTask
- Throws:
org.nuxeo.connect.update.PackageException
-
reloadComponents
@Deprecated protected static void reloadComponents(org.nuxeo.connect.update.LocalPackage localPackage) throws org.nuxeo.connect.update.PackageException
Deprecated.since 5.6: this way of reloading components is smarter because the package installed can declare what needs to be reloaded exactly, but this is too complicated to handle, and risky given potential dependency issues => make components listen for the "flush" event instead, @seeReloadService
- Throws:
org.nuxeo.connect.update.PackageException
-
reloadComponent
@Deprecated protected static void reloadComponent(String name) throws org.nuxeo.connect.update.PackageException
Deprecated.since 5.6: seereloadComponents(LocalPackage)
- Throws:
org.nuxeo.connect.update.PackageException
-
flush
protected void flush() throws org.nuxeo.connect.update.PackageException
- Overrides:
flush
in classInstallTask
- Throws:
org.nuxeo.connect.update.PackageException
-
-