public class ConcurrentAgentsAnalyticsServiceImpl extends Object implements ConcurrentAgentsAnalyticsService
BAMBOO_BASE_CONCURRENT_MAX_ALL, BAMBOO_BASE_CONCURRENT_MAX_DEPLOYMENTS, BAMBOO_BASE_CONCURRENT_MAX_JOBS
Constructor and Description |
---|
ConcurrentAgentsAnalyticsServiceImpl(com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
clears all collections used by this service and zeroes counters
|
Map<String,Long> |
getValuesAndReset()
returns max values and resets them to current value
|
void |
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) |
@Inject public ConcurrentAgentsAnalyticsServiceImpl(com.atlassian.event.api.EventPublisher eventPublisher)
public Map<String,Long> getValuesAndReset()
ConcurrentAgentsAnalyticsService
getValuesAndReset
in interface ConcurrentAgentsAnalyticsService
public void clear()
ConcurrentAgentsAnalyticsService
clear
in interface ConcurrentAgentsAnalyticsService
@EventListener public void onBuildAgentAssigned(@NotNull OutOfBandBuildTimingPoints.AgentAssigned event)
@EventListener public void onBuildExecutionFinished(@NotNull OutOfBandBuildTimingPoints.ExecutionFinished event)
@EventListener public void onBuildFinished(@NotNull @NotNull BuildFinishedEvent event)
@EventListener public void onDeploymentAgentAssigned(@NotNull OutOfBandDeploymentTimingPoints.AgentAssigned event)
@EventListener public void onDeploymentExecutionFinished(@NotNull OutOfBandDeploymentTimingPoints.ExecutionFinished event)
@EventListener public void onDeploymentFinished(@NotNull @NotNull DeploymentFinishedEvent event)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.