Class ConcurrentAgentsAnalyticsServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.analytics.basedata.collector.service.ConcurrentAgentsAnalyticsServiceImpl
-
- All Implemented Interfaces:
ConcurrentAgentsAnalyticsService
public class ConcurrentAgentsAnalyticsServiceImpl extends Object implements ConcurrentAgentsAnalyticsService
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.analytics.basedata.collector.service.ConcurrentAgentsAnalyticsService
BAMBOO_BASE_CONCURRENT_MAX_ALL, BAMBOO_BASE_CONCURRENT_MAX_DEPLOYMENTS, BAMBOO_BASE_CONCURRENT_MAX_JOBS
-
-
Constructor Summary
Constructors Constructor Description ConcurrentAgentsAnalyticsServiceImpl(com.atlassian.event.api.EventPublisher eventPublisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
clears all collections used by this service and zeroes countersMap<String,Long>
getValuesAndReset()
returns max values and resets them to current valuevoid
onBuildAgentAssigned(OutOfBandBuildTimingPoints.AgentAssigned event)
void
onBuildExecutionFinished(OutOfBandBuildTimingPoints.ExecutionFinished event)
void
onBuildFinished(@NotNull BuildFinishedEvent event)
void
onDeploymentAgentAssigned(OutOfBandDeploymentTimingPoints.AgentAssigned event)
void
onDeploymentExecutionFinished(OutOfBandDeploymentTimingPoints.ExecutionFinished event)
void
onDeploymentFinished(@NotNull DeploymentFinishedEvent event)
-
-
-
Method Detail
-
getValuesAndReset
public Map<String,Long> getValuesAndReset()
Description copied from interface:ConcurrentAgentsAnalyticsService
returns max values and resets them to current value- Specified by:
getValuesAndReset
in interfaceConcurrentAgentsAnalyticsService
-
clear
public void clear()
Description copied from interface:ConcurrentAgentsAnalyticsService
clears all collections used by this service and zeroes counters- Specified by:
clear
in interfaceConcurrentAgentsAnalyticsService
-
onBuildAgentAssigned
@EventListener public void onBuildAgentAssigned(@NotNull OutOfBandBuildTimingPoints.AgentAssigned event)
-
onBuildExecutionFinished
@EventListener public void onBuildExecutionFinished(@NotNull OutOfBandBuildTimingPoints.ExecutionFinished event)
-
onBuildFinished
@EventListener public void onBuildFinished(@NotNull @NotNull BuildFinishedEvent event)
-
onDeploymentAgentAssigned
@EventListener public void onDeploymentAgentAssigned(@NotNull OutOfBandDeploymentTimingPoints.AgentAssigned event)
-
onDeploymentExecutionFinished
@EventListener public void onDeploymentExecutionFinished(@NotNull OutOfBandDeploymentTimingPoints.ExecutionFinished event)
-
onDeploymentFinished
@EventListener public void onDeploymentFinished(@NotNull @NotNull DeploymentFinishedEvent event)
-
-