Class CoreUpdateChecker

    • Constructor Detail

      • CoreUpdateChecker

        public CoreUpdateChecker()
    • Method Detail

      • doUsageStats

        public static void doUsageStats()
      • doUsageStatsSupport

        protected void doUsageStatsSupport()
      • initialize

        public void initialize​(PluginInterface _plugin_interface)
        Description copied from interface: Plugin
        This method is called when the Plugin is loaded by the client
        Specified by:
        initialize in interface Plugin
        Parameters:
        _plugin_interface - the interface that the plugin must use to communicate with the client
      • displayUserMessage

        private void displayUserMessage​(java.util.Map reply)
        Log and display a user message if contained within reply.
        Parameters:
        reply - from server
      • installUpdate

        protected void installUpdate​(UpdateChecker checker,
                                     Update update,
                                     ResourceDownloader rd,
                                     java.lang.String filename,
                                     java.lang.String version,
                                     java.io.InputStream data)
      • handleZIPUpdate

        protected void handleZIPUpdate​(UpdateChecker checker,
                                       java.io.InputStream data)
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • launchUpdate

        protected void launchUpdate​(java.io.File file,
                                    java.lang.String[] args)
      • findCommand

        private static java.lang.String findCommand​(java.lang.String name)
      • runCommand

        private static void runCommand​(java.lang.String[] command,
                                       boolean wait)
                                throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • shouldUpdate

        protected static boolean shouldUpdate​(java.lang.String current_version,
                                              java.lang.String latest_version)
      • main

        public static void main​(java.lang.String[] args)