public class Rollback extends AbstractCommand
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
deleteOnExit |
static String |
ID |
protected String |
key |
protected static org.apache.commons.logging.Log |
log |
protected String |
pkgId |
protected String |
version |
fail, guardVars, id, ignore| Constructor and Description |
|---|
Rollback() |
Rollback(RollbackOptions opt) |
| Modifier and Type | Method and Description |
|---|---|
protected org.nuxeo.connect.update.task.Command |
doRun(org.nuxeo.connect.update.task.Task task,
Map<String,String> prefs)
Override to implement command actions
|
protected void |
doValidate(org.nuxeo.connect.update.task.Task task,
org.nuxeo.connect.update.ValidationStatus status)
Override to implement validation.
|
RollbackOptions |
getRollbackOptions() |
protected org.nuxeo.connect.update.task.Command |
getUndeployCommand(File targetFile)
Method to be overridden by subclasses to provide a undeploy command for hot reload
|
void |
readFrom(Element element)
Must be implemented to initialize the command arguments from an XML fragment.
|
void |
writeTo(org.nuxeo.connect.update.xml.XmlWriter writer) |
getId, ignore, initialize, isPostInstall, run, setFail, setIgnore, validateprotected static final org.apache.commons.logging.Log log
protected boolean deleteOnExit
public Rollback()
public Rollback(RollbackOptions opt)
public void writeTo(org.nuxeo.connect.update.xml.XmlWriter writer)
public void readFrom(Element element) throws org.nuxeo.connect.update.PackageException
AbstractCommandreadFrom in class AbstractCommandorg.nuxeo.connect.update.PackageExceptionprotected void doValidate(org.nuxeo.connect.update.task.Task task, org.nuxeo.connect.update.ValidationStatus status) throws org.nuxeo.connect.update.PackageException
AbstractCommanddoValidate in class AbstractCommandtask - The task being validatedstatus - Use ValidationStatus.addError(String) or ValidationStatus.addWarning(String) to
provide validation error/warning messagesorg.nuxeo.connect.update.PackageExceptionprotected org.nuxeo.connect.update.task.Command doRun(org.nuxeo.connect.update.task.Task task, Map<String,String> prefs) throws org.nuxeo.connect.update.PackageException
AbstractCommanddoRun in class AbstractCommandorg.nuxeo.connect.update.PackageExceptionpublic RollbackOptions getRollbackOptions()
protected org.nuxeo.connect.update.task.Command getUndeployCommand(File targetFile)
Copyright © 2016 Nuxeo SA. All rights reserved.