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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GlobalBuildStatsPluginSaver.BeforeSavePluginCallback
-
Constructor Summary
Constructors Constructor Description GlobalBuildStatsPluginSaver(GlobalBuildStatsPlugin plugin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
reloadPlugin()
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.
-
-
-
Constructor Detail
-
GlobalBuildStatsPluginSaver
public GlobalBuildStatsPluginSaver(GlobalBuildStatsPlugin plugin)
-
-
Method Detail
-
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.
-
-