Package com.atlassian.bamboo.performance
Class PerformanceStatsServiceImpl
java.lang.Object
com.atlassian.bamboo.performance.PerformanceStatsServiceImpl
- All Implemented Interfaces:
PerformanceStatsService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull Map<ActionIdentifier,
Stats> 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.
-
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 interfacePerformanceStatsService
- Parameters:
actionIdentifier
- identifier for the executed actiondurationMillis
- time it took the action to complete, in milliseconds
-
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
-