Class JobBuildResultSharder

java.lang.Object
hudson.plugins.global_build_stats.model.JobBuildResultSharder

public class JobBuildResultSharder extends Object
Author:
fcamblor POJO which responsibility is to : - Shard JobBuildResult into several monthly files when saving / loading JobBuildResults - Allow to queue add and remove of job build results before a save
  • Constructor Details

  • Method Details

    • queueResultToAdd

      public void queueResultToAdd(JobBuildResult result)
    • queueResultsToAdd

      public void queueResultsToAdd(List<JobBuildResult> results)
    • queueResultToRemove

      public void queueResultToRemove(JobBuildResult result)
    • queueResultsToRemove

      public void queueResultsToRemove(List<JobBuildResult> results)
    • applyQueuedResultsInFiles

      public void applyQueuedResultsInFiles()
    • load

      public static List<JobBuildResult> load()
    • getJobBuildResults

      public List<JobBuildResult> getJobBuildResults()
    • pendingChanges

      public boolean pendingChanges()