Package com.atlassian.bamboo.performance
Class PerformanceStatsServiceImpl
java.lang.Object
com.atlassian.bamboo.performance.PerformanceStatsServiceImpl
- All Implemented Interfaces:
PerformanceStatsService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Map<ActionIdentifier,Stats> 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.
-
Constructor Details
-
PerformanceStatsServiceImpl
public PerformanceStatsServiceImpl()
-
-
Method Details
-
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
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
-