public class UpdateManager extends Object
Constructor and Description |
---|
UpdateManager(File serverRoot,
File regFile) |
Modifier and Type | Method and Description |
---|---|
Entry |
createEntry(String key)
Create a new entry in the registry given the entry key.
|
RollbackOptions |
createRollbackOptions(String pkgId,
String key,
String version) |
RollbackOptions |
createRollbackOptions(UpdateOptions opt,
String key) |
UpdateOptions |
createUpdateOptions(String pkgId,
File file,
File targetDir) |
void |
doUpdate(String key,
Version version,
UpdateOptions opt) |
org.nuxeo.connect.update.impl.task.update.JarUtils.Match<File> |
findBackupJar(String key) |
org.nuxeo.connect.update.impl.task.update.JarUtils.Match<File> |
findInstalledJar(String key) |
File |
getBackupRoot() |
String |
getKey(UpdateOptions opt) |
Map<String,Entry> |
getRegistry() |
String |
getServerRelativePath(File file) |
File |
getServerRoot() |
org.nuxeo.connect.update.task.Task |
getTask() |
String |
getVersionPath(UpdateOptions opt) |
void |
load() |
void |
rollback(RollbackOptions opt)
Perform a rollback.
|
void |
store() |
RollbackOptions |
update(UpdateOptions opt) |
public UpdateOptions createUpdateOptions(String pkgId, File file, File targetDir)
public RollbackOptions createRollbackOptions(String pkgId, String key, String version)
public RollbackOptions createRollbackOptions(UpdateOptions opt, String key)
public File getServerRoot()
public File getBackupRoot()
public org.nuxeo.connect.update.task.Task getTask()
public void load() throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageException
public void store() throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageException
public String getVersionPath(UpdateOptions opt)
public String getKey(UpdateOptions opt)
public RollbackOptions update(UpdateOptions opt) throws org.nuxeo.connect.update.PackageException
opt
- Exception,
- VersionAlreadyExistExceptionorg.nuxeo.connect.update.PackageException
public void rollback(RollbackOptions opt) throws org.nuxeo.connect.update.PackageException
opt
- org.nuxeo.connect.update.PackageException
public Entry createEntry(String key) throws org.nuxeo.connect.update.PackageException
key
- Exception
org.nuxeo.connect.update.PackageException
public org.nuxeo.connect.update.impl.task.update.JarUtils.Match<File> findInstalledJar(String key)
public org.nuxeo.connect.update.impl.task.update.JarUtils.Match<File> findBackupJar(String key)
public void doUpdate(String key, Version version, UpdateOptions opt) throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageException
Copyright © 2011 Nuxeo SA. All Rights Reserved.