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 StringFAKE_VIDOZstatic StringFILE_NAMEprotected static Loglogprotected static List<String>pkgNameOrIdsprotected 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 voidaddPackageForInstallation(String pkgNameOrId)static voidaddPackageForUnInstallation(String pkgNameOrId)protected static booleanisDevMode()static booleanisMarkedForInstallAfterRestart(String pkgNameOrId)static booleanisMarkedForUninstallAfterRestart(String pkgName)protected static booleanisNeededByOs()static booleanisNeededForPackage(org.nuxeo.connect.update.Package pkg)Returns true if a restart should be triggered after installprotected static booleanisVindozBox()Deprecated.Since 7.4.protected static voidsavePkgList()
-
-
-
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
-
-