Class GlobalBuildStatsPluginSaver

java.lang.Object
hudson.plugins.global_build_stats.business.GlobalBuildStatsPluginSaver

public class GlobalBuildStatsPluginSaver extends Object
Author:
fcamblor Class is intended to provide a unique access point to the GlobalBuildStatsPlugin modifier for save() action
  • Constructor Details

  • Method Details

    • reloadPlugin

      public void reloadPlugin()
    • updatePlugin

      public void updatePlugin(GlobalBuildStatsPluginSaver.BeforeSavePluginCallback callback)
      Single entry point to persist information on GlobalBuildStatsPlugin As the number of builds grow, the time it takes to execute "plugin.save()" become non-trivial, up to the order of minutes or more. So to prevent this from blocking executor threads that execute this callback, we use a separate thread to asynchronously persist them to the disk.