Class PerformanceStatsServiceImpl

java.lang.Object
com.atlassian.bamboo.performance.PerformanceStatsServiceImpl
All Implemented Interfaces:
PerformanceStatsService

public class PerformanceStatsServiceImpl extends Object implements PerformanceStatsService
  • Constructor Details

    • PerformanceStatsServiceImpl

      public PerformanceStatsServiceImpl()
  • Method Details

    • recordExecution

      public void recordExecution(@NotNull @NotNull ActionIdentifier actionIdentifier, long durationMillis)
      Description copied from interface: PerformanceStatsService
      Record execution of an action for which performance was measured.
      Specified by:
      recordExecution in interface PerformanceStatsService
      Parameters:
      actionIdentifier - identifier for the executed action
      durationMillis - time it took the action to complete, in milliseconds
    • getAndClearStatistics

      @NotNull public @NotNull Map<ActionIdentifier,Stats> getAndClearStatistics()
      Description copied from interface: PerformanceStatsService
      Obtain statistics from all action executions registered so far. Wipe out all the currently held data. Note: All statistical values are measured in milliseconds.
      Specified by:
      getAndClearStatistics in interface PerformanceStatsService