Package com.atlassian.bamboo.performance
Class PerformanceStatsServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.performance.PerformanceStatsServiceImpl
-
- All Implemented Interfaces:
PerformanceStatsService
public class PerformanceStatsServiceImpl extends Object implements PerformanceStatsService
-
-
Constructor Summary
Constructors Constructor Description PerformanceStatsServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Map<ActionIdentifier,Stats>getAndClearStatistics()Obtain statistics from all action executions registered so far.voidrecordExecution(@NotNull ActionIdentifier actionIdentifier, long durationMillis)Record execution of an action for which performance was measured.
-
-
-
Method Detail
-
recordExecution
public void recordExecution(@NotNull @NotNull ActionIdentifier actionIdentifier, long durationMillis)Description copied from interface:PerformanceStatsServiceRecord execution of an action for which performance was measured.- Specified by:
recordExecutionin interfacePerformanceStatsService- Parameters:
actionIdentifier- identifier for the executed actiondurationMillis- time it took the action to complete, in milliseconds
-
getAndClearStatistics
@NotNull public @NotNull Map<ActionIdentifier,Stats> getAndClearStatistics()
Description copied from interface:PerformanceStatsServiceObtain 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:
getAndClearStatisticsin interfacePerformanceStatsService
-
-