Package com.atlassian.bamboo.performance
Interface PerformanceStatsService
-
- All Known Implementing Classes:
PerformanceStatsServiceImpl
@Internal @ThreadSafe public interface PerformanceStatsServiceService for registering performance data from this Bamboo instance.
-
-
Method Summary
All Methods Instance Methods Abstract 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
void recordExecution(@NotNull @NotNull ActionIdentifier actionIdentifier, long durationMillis)Record execution of an action for which performance was measured.- Parameters:
actionIdentifier- identifier for the executed actiondurationMillis- time it took the action to complete, in milliseconds
-
getAndClearStatistics
@NotNull @NotNull Map<ActionIdentifier,Stats> getAndClearStatistics()
Obtain statistics from all action executions registered so far. Wipe out all the currently held data. Note: All statistical values are measured in milliseconds.
-
-