Class 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])
    • Constructor Detail

      • InstallAfterRestart

        public InstallAfterRestart()
    • 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. Use SystemUtils.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