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.void
recordExecution(@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:PerformanceStatsService
Record execution of an action for which performance was measured.- Specified by:
recordExecution
in 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: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 interfacePerformanceStatsService
-
-