public class StandaloneUpdateService extends Object implements org.nuxeo.connect.update.PackageUpdateService
Modifier and Type | Field and Description |
---|---|
protected Map<String,Class<? extends org.nuxeo.connect.update.task.Command>> |
commands |
protected PackagePersistence |
persistence |
protected static XMap |
xmap |
Constructor and Description |
---|
StandaloneUpdateService(Environment env) |
Modifier and Type | Method and Description |
---|---|
void |
addCommand(String id,
Class<? extends org.nuxeo.connect.update.task.Command> cmd) |
protected void |
addCommands() |
org.nuxeo.connect.update.LocalPackage |
addPackage(File file) |
static XMap |
createXmap() |
org.nuxeo.connect.update.LocalPackage |
getActivePackage(String name) |
File |
getBackupDir() |
org.nuxeo.connect.update.task.Command |
getCommand(String id) |
File |
getDataDir() |
String |
getDefaultInstallTaskType() |
String |
getDefaultUninstallTaskType() |
FileTime |
getInstallDate(String id) |
org.nuxeo.connect.update.LocalPackage |
getPackage(String id) |
List<org.nuxeo.connect.update.LocalPackage> |
getPackages() |
PackagePersistence |
getPersistence() |
File |
getRegistry() |
static XMap |
getXmap() |
void |
initialize() |
boolean |
isStarted(String pkgId) |
org.nuxeo.connect.update.model.PackageDefinition |
loadPackage(File file) |
org.nuxeo.connect.update.model.PackageDefinition |
loadPackage(InputStream in) |
org.nuxeo.connect.update.model.PackageDefinition |
loadPackageFromZip(File file) |
void |
removeCommand(String id) |
void |
removePackage(String id) |
void |
reset() |
void |
restart() |
void |
setPackageState(org.nuxeo.connect.update.LocalPackage pkg,
int state)
Deprecated.
|
void |
setPackageState(org.nuxeo.connect.update.LocalPackage pkg,
org.nuxeo.connect.update.PackageState state) |
void |
shutdown() |
protected void |
startInstalledPackages() |
protected PackagePersistence persistence
public StandaloneUpdateService(Environment env) throws IOException
IOException
public File getDataDir()
getDataDir
in interface org.nuxeo.connect.update.PackageUpdateService
public PackagePersistence getPersistence()
public org.nuxeo.connect.update.LocalPackage addPackage(File file) throws org.nuxeo.connect.update.PackageException
addPackage
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public void removePackage(String id) throws org.nuxeo.connect.update.PackageException
removePackage
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public org.nuxeo.connect.update.LocalPackage getPackage(String id) throws org.nuxeo.connect.update.PackageException
getPackage
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public List<org.nuxeo.connect.update.LocalPackage> getPackages() throws org.nuxeo.connect.update.PackageException
getPackages
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public static XMap createXmap()
public void initialize() throws org.nuxeo.connect.update.PackageException
initialize
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
protected void addCommands()
@Deprecated public void setPackageState(org.nuxeo.connect.update.LocalPackage pkg, int state) throws org.nuxeo.connect.update.PackageException
setPackageState
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public void setPackageState(org.nuxeo.connect.update.LocalPackage pkg, org.nuxeo.connect.update.PackageState state) throws org.nuxeo.connect.update.PackageException
setPackageState
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public void shutdown() throws org.nuxeo.connect.update.PackageException
shutdown
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public org.nuxeo.connect.update.task.Command getCommand(String id) throws org.nuxeo.connect.update.PackageException
getCommand
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public String getDefaultInstallTaskType()
getDefaultInstallTaskType
in interface org.nuxeo.connect.update.PackageUpdateService
public String getDefaultUninstallTaskType()
getDefaultUninstallTaskType
in interface org.nuxeo.connect.update.PackageUpdateService
public void addCommand(String id, Class<? extends org.nuxeo.connect.update.task.Command> cmd)
public void removeCommand(String id)
public org.nuxeo.connect.update.LocalPackage getActivePackage(String name) throws org.nuxeo.connect.update.PackageException
getActivePackage
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public org.nuxeo.connect.update.model.PackageDefinition loadPackageFromZip(File file) throws org.nuxeo.connect.update.PackageException
loadPackageFromZip
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public org.nuxeo.connect.update.model.PackageDefinition loadPackage(File file) throws org.nuxeo.connect.update.PackageException
loadPackage
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public org.nuxeo.connect.update.model.PackageDefinition loadPackage(InputStream in) throws org.nuxeo.connect.update.PackageException
loadPackage
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
protected void startInstalledPackages() throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageException
public void reset() throws org.nuxeo.connect.update.PackageException
reset
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public void restart() throws org.nuxeo.connect.update.PackageException
restart
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public boolean isStarted(String pkgId)
isStarted
in interface org.nuxeo.connect.update.PackageUpdateService
public File getRegistry()
getRegistry
in interface org.nuxeo.connect.update.PackageUpdateService
public File getBackupDir()
getBackupDir
in interface org.nuxeo.connect.update.PackageUpdateService
public FileTime getInstallDate(String id)
getInstallDate
in interface org.nuxeo.connect.update.PackageUpdateService
Copyright © 2015 Nuxeo SA. All rights reserved.