@ThreadSafe public class CurrentlyBuildingContainer extends Object
CurrentlyBuilding
objects keyed by plan key and buildAgentId.
This bean registers itself as event listener.
Constructor and Description |
---|
CurrentlyBuildingContainer(AgentManager agentManager,
com.atlassian.event.api.EventPublisher eventPublisher,
XStreamFactory xStreamFactory) |
public CurrentlyBuildingContainer(AgentManager agentManager, com.atlassian.event.api.EventPublisher eventPublisher, XStreamFactory xStreamFactory)
@EventListener public void onSentToAgentTimingPoint(@NotNull OutOfBandBuildTimingPoints.SentToAgent event)
@EventListener public void onSentToAgentTimingPoint(@NotNull OutOfBandDeploymentTimingPoints.SentToAgent event)
public List<CurrentlyBuilding> getCurrentlyBuildingByKey(Key key)
public int numberOfCurrentlyBuildingForKey(Key key)
@NotNull public Iterable<CurrentlyBuilding> getCurrentlyExecuting()
@Nullable public CurrentlyBuilding getCurrentlyBuildingByResultKey(@NotNull ResultKey resultKey)
@Nullable public CurrentlyBuilding getCurrentlyBuilding(long agentId)
@NotNull public CurrentlyBuilding setCurrentlyBuilding(@NotNull BuildContext buildContext, @NotNull CurrentlyBuilding currentlyBuilding, Collection<BuildAgent> executableAgents, Collection<ElasticImageConfiguration> executableImages)
public void detachBuildFromAgent(long agentId)
@Nullable public CurrentlyBuilding removeCurrentlyBuilding(@NotNull ResultKey resultKey)
public Set<ResultKey> restoreState(Set<PlanResultKey> pendingBuildKeys)
pendingBuildKeys
- protected void saveState(CurrentlyBuilding currentlyBuilding, boolean saveEvenIfFileExists)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.