Class BuildAgentControllerImpl
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl
-
- All Implemented Interfaces:
BuildAgentController
public class BuildAgentControllerImpl extends Object implements BuildAgentController
-
-
Constructor Summary
Constructors Constructor Description BuildAgentControllerImpl(AgentContext agentContext, AgentQueueAccessor agentQueueAccessor, BuildLoggerManager buildLoggerManager, ResultProcessor resultProcessor, CapabilityContext capabilityContext, RemotedCapabilitySetManager capabilitySetManager, CustomVariableContext customVariableContext, ErrorUpdateHandler errorUpdateHandler, ExecutionPhaseService executionPhaseService, com.atlassian.event.api.EventPublisher eventPublisher, DockerContainerControllerFactory dockerContainerControllerFactory, BuildWarningSummaryCollationService buildWarningSummaryCollationService, BuildLoggingContext buildLoggingContext, SecureXStreamFactory secureXStreamFactory, BuildDirectoryManager buildDirectoryManager, ArtifactManager artifactManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finishBuilding(@NotNull ExecutableBuildAgent buildAgent)
boolean
hasPreviousBuildResultToSend(ExecutableBuildAgent executableBuildAgent)
void
onEvent(ExecutableQueueUpdate executableQueueUpdate)
void
prepareForBuilding(@NotNull ExecutableBuildAgent buildAgent)
boolean
sendPreviousBuildResultIfRequired(ExecutableBuildAgent buildAgent)
void
waitAndPerformBuild(@NotNull ExecutableBuildAgent buildAgent)
Gets the passed build agent to wait for a build and the run the build
-
-
-
Constructor Detail
-
BuildAgentControllerImpl
public BuildAgentControllerImpl(AgentContext agentContext, AgentQueueAccessor agentQueueAccessor, BuildLoggerManager buildLoggerManager, ResultProcessor resultProcessor, CapabilityContext capabilityContext, RemotedCapabilitySetManager capabilitySetManager, CustomVariableContext customVariableContext, ErrorUpdateHandler errorUpdateHandler, ExecutionPhaseService executionPhaseService, com.atlassian.event.api.EventPublisher eventPublisher, DockerContainerControllerFactory dockerContainerControllerFactory, BuildWarningSummaryCollationService buildWarningSummaryCollationService, BuildLoggingContext buildLoggingContext, @Qualifier("remoteCommunicationSecuredXStreamFactory") SecureXStreamFactory secureXStreamFactory, BuildDirectoryManager buildDirectoryManager, ArtifactManager artifactManager)
-
-
Method Detail
-
prepareForBuilding
public void prepareForBuilding(@NotNull @NotNull ExecutableBuildAgent buildAgent)
- Specified by:
prepareForBuilding
in interfaceBuildAgentController
-
finishBuilding
public void finishBuilding(@NotNull @NotNull ExecutableBuildAgent buildAgent)
- Specified by:
finishBuilding
in interfaceBuildAgentController
-
waitAndPerformBuild
public void waitAndPerformBuild(@NotNull @NotNull ExecutableBuildAgent buildAgent)
Description copied from interface:BuildAgentController
Gets the passed build agent to wait for a build and the run the build- Specified by:
waitAndPerformBuild
in interfaceBuildAgentController
-
hasPreviousBuildResultToSend
public boolean hasPreviousBuildResultToSend(ExecutableBuildAgent executableBuildAgent)
- Specified by:
hasPreviousBuildResultToSend
in interfaceBuildAgentController
-
sendPreviousBuildResultIfRequired
public boolean sendPreviousBuildResultIfRequired(ExecutableBuildAgent buildAgent)
- Specified by:
sendPreviousBuildResultIfRequired
in interfaceBuildAgentController
- Returns:
- true if nothing left to process after returning
-
onEvent
@EventListener public void onEvent(ExecutableQueueUpdate executableQueueUpdate)
-
-