|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.build.CurrentlyBuildingContainer
@ThreadSafe public class CurrentlyBuildingContainer
A class that allows thread safe maps of CurrentlyBuilding
objects keyed by plan key and buildAgentId.
This is implemented with a copy-on-write strategy that allows wait-free reads and lock-free updates.
This bean registers itself as event listener via afterPropertiesSet()
method.
Constructor Summary | |
---|---|
CurrentlyBuildingContainer(com.atlassian.event.api.EventPublisher eventPublisher)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CurrentlyBuildingContainer(com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail |
---|
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
@EventListener public void onAgentAssignedTimingPoint(@NotNull BuildTimingPoints.AgentAssigned event)
@NotNull @Deprecated public java.util.List<CurrentlyBuilding> getCurrentlyBuildingByPlanKey(java.lang.String planKey)
getCurrentlyBuildingByKey(Key)
public java.util.List<CurrentlyBuilding> getCurrentlyBuildingByKey(Key key)
@Deprecated public int numberOfCurrentlyBuildingForPlanKey(java.lang.String planKey)
numberOfCurrentlyBuildingForKey(com.atlassian.bamboo.Key)
public int numberOfCurrentlyBuildingForKey(Key key)
@NotNull public java.util.List<CurrentlyBuilding> getCurrentlyExecutingBuilds()
@Deprecated @Nullable public CurrentlyBuilding getCurrentlyBuildingByBuildResultKey(@NotNull java.lang.String buildResultKey)
getCurrentlyBuildingByResultKey(com.atlassian.bamboo.ResultKey)
@Nullable public CurrentlyBuilding getCurrentlyBuildingByResultKey(@NotNull ResultKey resultKey)
@Nullable public CurrentlyBuilding getCurrentlyBuilding(long agentId)
@NotNull public CurrentlyBuilding setCurrentlyBuilding(@NotNull BuildContext buildContext, @NotNull CurrentlyBuilding currentlyBuilding, java.util.Collection<BuildAgent> executableAgents, java.util.Collection<ElasticImageConfiguration> executableImages, boolean executableAgentInfoInitialized)
@NotNull public CurrentlyBuilding startBuildingOnAgent(@NotNull PlanResultKey planResultKey, long agentId)
@Deprecated public CurrentlyBuilding removeCurrentlyBuilding(@NotNull java.lang.String buildResultKey)
@Nullable public CurrentlyBuilding removeCurrentlyBuilding(@NotNull ResultKey resultKey)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |