@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 OutOfBandDeploymentTimingPoints.SentToAgent event)
public List<CurrentlyBuilding> getCurrentlyBuildingByKey(Key key)
public int numberOfCurrentlyBuildingForKey(Key key)
@NotNull public @NotNull Iterable<CurrentlyBuilding> getCurrentlyExecuting()
@Nullable public @Nullable CurrentlyBuilding getCurrentlyBuildingByResultKey(@NotNull @NotNull ResultKey resultKey)
@Nullable public @Nullable CurrentlyBuilding getCurrentlyBuilding(long agentId)
@NotNull public @NotNull CurrentlyBuilding setCurrentlyBuilding(@NotNull @NotNull BuildContext buildContext, @NotNull @NotNull CurrentlyBuilding currentlyBuilding, Collection<BuildAgent> executableAgents, Collection<ElasticImageConfiguration> executableImages)
@Nullable public @Nullable CurrentlyBuilding startBuildingOnAgent(@NotNull @NotNull PlanResultKey planResultKey, long agentId)
public void detachBuildFromAgent(long agentId)
@Nullable public @Nullable CurrentlyBuilding removeCurrentlyBuilding(@NotNull @NotNull ResultKey resultKey)
public Set<ResultKey> restoreState(Set<PlanResultKey> pendingBuildKeys)
pendingBuildKeys
- protected void saveState(CurrentlyBuilding currentlyBuilding, boolean saveEvenIfFileExists)
Copyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.