Package org.nuxeo.connect.client.vindoz
Class InstallAfterRestart
- java.lang.Object
-
- org.nuxeo.connect.client.vindoz.InstallAfterRestart
-
public class InstallAfterRestart extends Object
Helper class used to manage packages installation issue under windows systems.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).
- Author:
- Tiry ([email protected])
-
-
Field Summary
Fields Modifier and Type Field Description static String
FAKE_VIDOZ
static String
FILE_NAME
protected static Log
log
protected static List<String>
pkgNameOrIds
protected static List<String>
uninstallpkgNameOrIds
-
Constructor Summary
Constructors Constructor Description InstallAfterRestart()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method 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 installprotected static boolean
isVindozBox()
Deprecated.Since 7.4.protected static void
savePkgList()
-
-
-
Field Detail
-
FILE_NAME
public static final String FILE_NAME
- See Also:
- Constant Field Values
-
FAKE_VIDOZ
public static final String FAKE_VIDOZ
- See Also:
- Constant Field Values
-
log
protected static final Log log
-
-
Method Detail
-
isNeededByOs
protected static boolean isNeededByOs()
-
isNeededForPackage
public static boolean isNeededForPackage(org.nuxeo.connect.update.Package pkg)
Returns true if a restart should be triggered after install
-
isDevMode
protected static boolean isDevMode()
-
isVindozBox
@Deprecated protected static boolean isVindozBox()
Deprecated.Since 7.4. UseSystemUtils.IS_OS_WINDOWS
-
addPackageForInstallation
public static void addPackageForInstallation(String pkgNameOrId)
-
addPackageForUnInstallation
public static void addPackageForUnInstallation(String pkgNameOrId)
-
isMarkedForInstallAfterRestart
public static boolean isMarkedForInstallAfterRestart(String pkgNameOrId)
-
savePkgList
protected static void savePkgList()
-
isMarkedForUninstallAfterRestart
public static boolean isMarkedForUninstallAfterRestart(String pkgName)
- Since:
- 5.6
-
-