public class InstallAfterRestart extends Object
Because the Windows OS locks all the jar files loaded by the JVM, we can not do proper installation. So installation is delayed until next restart where installation is done before Nuxeo starts (and loads the jars).
Modifier and Type | Field and Description |
---|---|
static String |
FAKE_VIDOZ |
static String |
FILE_NAME |
protected static org.apache.commons.logging.Log |
log |
protected static List<String> |
pkgNameOrIds |
protected static List<String> |
uninstallpkgNameOrIds |
Constructor and Description |
---|
InstallAfterRestart() |
Modifier and Type | Method and Description |
---|---|
static void |
addPackageForInstallation(String pkgNameOrId) |
static void |
addPackageForUnInstallation(String pkgNameOrId) |
protected static boolean |
isDevMode() |
static boolean |
isMarkedForInstallAfterRestart(String pkgNameOrId) |
static boolean |
isMarkedForUninstallAfterRestart(String pkgName) |
protected static boolean |
isNeededByOs() |
static boolean |
isNeededForPackage(org.nuxeo.connect.update.Package pkg)
Returns true if a restart should be triggered after install
|
protected static boolean |
isVindozBox()
Deprecated.
Since 7.4. Use
SystemUtils.IS_OS_WINDOWS |
protected static void |
savePkgList() |
public static final String FILE_NAME
public static final String FAKE_VIDOZ
protected static final List<String> pkgNameOrIds
protected static final List<String> uninstallpkgNameOrIds
protected static final org.apache.commons.logging.Log log
public InstallAfterRestart()
protected static boolean isNeededByOs()
public static boolean isNeededForPackage(org.nuxeo.connect.update.Package pkg)
protected static boolean isDevMode()
@Deprecated protected static boolean isVindozBox()
SystemUtils.IS_OS_WINDOWS
public static void addPackageForInstallation(String pkgNameOrId)
public static void addPackageForUnInstallation(String pkgNameOrId)
public static boolean isMarkedForInstallAfterRestart(String pkgNameOrId)
protected static void savePkgList()
public static boolean isMarkedForUninstallAfterRestart(String pkgName)
Copyright © 2015 Nuxeo SA. All rights reserved.