|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.build.DefaultBuildExecutionManager
public class DefaultBuildExecutionManager
This class is registered as event listener afterPropertiesSet()
Constructor Summary | |
---|---|
DefaultBuildExecutionManager(org.quartz.Scheduler scheduler)
|
Method Summary | |
---|---|
CurrentlyBuilding |
addToCurrentlyBuilding(BuildContext buildContext)
Denotes that the passed build context is beginning the build process. |
void |
afterPropertiesSet()
|
void |
execute(BuildContext buildContext)
Executes the given BuildContext
At this point a BuildResultsSummary exists that matches the given BuildContext |
void |
finishBuild(PlanResultKey planResultKey)
Calls removeCurrentlyBuilding & finishProcess |
BuildLogger |
getBuildLogger(PlanKey key)
Deprecated. since 5.0 use respective method from BuildLoggerManager |
BuildLogger |
getBuildLogger(PlanResultKey resultKey)
Deprecated. since 5.0 use respective method from BuildLoggerManager |
BuildLogger |
getBuildLogger(java.lang.String planOrResultKey)
Deprecated. since 5.0 use respective method from BuildLoggerManager |
CurrentlyBuilding |
getBuildRunningOnAgent(java.lang.Long buildAgentId)
|
java.util.List<CurrentlyBuilding> |
getCurrentlyBuilding(Key key)
|
java.util.List<CurrentlyBuilding> |
getCurrentlyBuilding(java.lang.String planKey)
|
CurrentlyBuilding |
getCurrentlyBuildingByBuildResult(BuildIdentifier buildIdentifier)
Returns CurrentlyBuilding instance for build identifier (or BuildContext ). |
CurrentlyBuilding |
getCurrentlyBuildingByBuildResultKey(java.lang.String buildResultKey)
Returns CurrentlyBuilding instance for build identified by buildResultKey. |
CurrentlyBuilding |
getCurrentlyBuildingByPlanResultKey(ResultKey resultKey)
Returns CurrentlyBuilding instance for build identified by buildResultKey. |
java.util.List<CurrentlyBuilding> |
getCurrentlyExecutingBuilds()
Retrieves a list of all builds being executed (i.e not just queued). |
java.util.List<CurrentlyBuilding> |
getCurrentlyExecutingBuilds(java.lang.String planKey)
Retrieves a list of all builds being executed (i.e not just queued) that belong to the specified planKey. |
BuildLogger |
getLogger(Key key)
Deprecated. since 5.0 use respective method from BuildLoggerManager |
BuildLogger |
getLogger(ResultKey resultKey)
Deprecated. since 5.0 use respective method from BuildLoggerManager |
void |
onExecutionCancelledTimingPoint(BuildTimingPoints.ExecutionCancelled event)
|
void |
onExecutionFinishedTimingPoint(BuildTimingPoints.ExecutionFinished event)
|
void |
onExecutionStartedTimingPoint(BuildTimingPoints.ExecutionStarted event)
|
void |
onQueuedTimingPoint(BuildTimingPoints.Queued event)
|
void |
onVcsSyncStartedTimingPoint(BuildTimingPoints.VcsSyncStarted event)
|
void |
removeBuildLogger(PlanKey planKey)
Deprecated. since 5.0 use respective method from BuildLoggerManager |
void |
removeBuildLogger(PlanResultKey buildResultKey)
Deprecated. since 5.0 use respective method from BuildLoggerManager |
CurrentlyBuilding |
removeCurrentlyBuilding(ResultKey resultKey)
|
CurrentlyBuilding |
removeCurrentlyBuilding(java.lang.String planKey)
|
void |
removeLogger(LoggerId loggerId)
Deprecated. since 5.0 use respective method from BuildLoggerManager |
void |
setAuthorCreatorService(AuthorCreatorService authorCreatorService)
|
void |
setBuildFinish(BuildContext buildContext,
TimingPoint timingPoint)
Deprecated. |
void |
setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
|
void |
setBuildRunningOnAgent(BuildContext buildContext,
java.lang.Long buildAgentId)
Deprecated. |
void |
setBuildStart(BuildContext buildContext,
TimingPoint timingPoint)
Deprecated. |
void |
setBuildStopAcknowledge(java.lang.String buildResultKey,
boolean hasCancellingStarted)
Deprecated. |
void |
setCurrentlyBuilding(BuildContext buildContext,
java.util.Collection<BuildAgent> executableAgents,
java.util.Collection<ElasticImageConfiguration> executableImages)
Denotes that the passed build context is beginning the build process. |
void |
setCurrentlyBuildingContainer(CurrentlyBuildingContainer currentlyBuildingContainer)
|
void |
setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
|
void |
setPendingBuildResultsCleanup(PendingBuildResultsCleanup pendingBuildResultsCleanup)
|
void |
setPlanManager(PlanManager planManager)
|
void |
setPlanStatePersisterService(PlanStatePersisterService planStatePersisterService)
|
void |
setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultBuildExecutionManager(org.quartz.Scheduler scheduler)
Method Detail |
---|
public void execute(@NotNull BuildContext buildContext)
BuildExecutionManager
BuildContext
At this point a BuildResultsSummary
exists that matches the given BuildContext
execute
in interface BuildExecutionManager
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
@NotNull public java.util.List<CurrentlyBuilding> getCurrentlyExecutingBuilds()
BuildExecutionManager
getCurrentlyExecutingBuilds
in interface BuildExecutionManager
@NotNull public java.util.List<CurrentlyBuilding> getCurrentlyExecutingBuilds(java.lang.String planKey)
BuildExecutionManager
getCurrentlyExecutingBuilds
in interface BuildExecutionManager
@NotNull public java.util.List<CurrentlyBuilding> getCurrentlyBuilding(@NotNull java.lang.String planKey)
getCurrentlyBuilding
in interface BuildExecutionManager
@NotNull public java.util.List<CurrentlyBuilding> getCurrentlyBuilding(@NotNull Key key)
getCurrentlyBuilding
in interface BuildExecutionManager
@Nullable public CurrentlyBuilding getCurrentlyBuildingByBuildResultKey(@NotNull java.lang.String buildResultKey)
BuildExecutionManager
CurrentlyBuilding
instance for build identified by buildResultKey.
Should be used only if BuildIdentifier
is not available - basically in actions
getCurrentlyBuildingByBuildResultKey
in interface BuildExecutionManager
@Nullable public CurrentlyBuilding getCurrentlyBuildingByPlanResultKey(@NotNull ResultKey resultKey)
BuildExecutionManager
CurrentlyBuilding
instance for build identified by buildResultKey.
Should be used only if BuildIdentifier
is not available - basically in actions
getCurrentlyBuildingByPlanResultKey
in interface BuildExecutionManager
@Nullable public CurrentlyBuilding getCurrentlyBuildingByBuildResult(@NotNull BuildIdentifier buildIdentifier)
BuildExecutionManager
CurrentlyBuilding
instance for build identifier (or BuildContext
).
getCurrentlyBuildingByBuildResult
in interface BuildExecutionManager
public void setCurrentlyBuilding(@NotNull BuildContext buildContext, @NotNull java.util.Collection<BuildAgent> executableAgents, @NotNull java.util.Collection<ElasticImageConfiguration> executableImages)
setCurrentlyBuilding
in interface BuildExecutionManager
buildContext
- executableAgents
- - a list of agents on which this build can be run.executableImages
- - a list of images on which the build can be run.@NotNull public CurrentlyBuilding addToCurrentlyBuilding(@NotNull BuildContext buildContext)
addToCurrentlyBuilding
in interface BuildExecutionManager
buildContext
- @Nullable public CurrentlyBuilding getBuildRunningOnAgent(@NotNull java.lang.Long buildAgentId)
getBuildRunningOnAgent
in interface BuildExecutionManager
public void finishBuild(@NotNull PlanResultKey planResultKey)
BuildExecutionManager
finishBuild
in interface BuildExecutionManager
planResultKey
- identifies plan resultpublic CurrentlyBuilding removeCurrentlyBuilding(@NotNull java.lang.String planKey)
removeCurrentlyBuilding
in interface BuildExecutionManager
public CurrentlyBuilding removeCurrentlyBuilding(@NotNull ResultKey resultKey)
removeCurrentlyBuilding
in interface BuildExecutionManager
@EventListener public void onQueuedTimingPoint(@NotNull BuildTimingPoints.Queued event)
@EventListener public void onVcsSyncStartedTimingPoint(@NotNull BuildTimingPoints.VcsSyncStarted event)
@EventListener public void onExecutionStartedTimingPoint(@NotNull BuildTimingPoints.ExecutionStarted event)
@EventListener public void onExecutionCancelledTimingPoint(@NotNull BuildTimingPoints.ExecutionCancelled event)
@EventListener public void onExecutionFinishedTimingPoint(@NotNull BuildTimingPoints.ExecutionFinished event)
@Deprecated @NotNull public BuildLogger getBuildLogger(@NotNull PlanKey key)
BuildLoggerManager
BuildLoggerManager
BuildLogger
for the given plan
getBuildLogger
in interface BuildLoggerManager
@Deprecated @NotNull public BuildLogger getBuildLogger(@NotNull PlanResultKey resultKey)
BuildLoggerManager
BuildLoggerManager
BuildLogger
for the given result
getBuildLogger
in interface BuildLoggerManager
@Deprecated @NotNull public BuildLogger getLogger(@NotNull Key key)
BuildLoggerManager
BuildLoggerManager
BuildLogger
for the given plan
getLogger
in interface BuildLoggerManager
@Deprecated @NotNull public BuildLogger getLogger(@NotNull ResultKey resultKey)
BuildLoggerManager
BuildLoggerManager
BuildLogger
for the given result
getLogger
in interface BuildLoggerManager
@NotNull public BuildLogger getBuildLogger(@NotNull java.lang.String planOrResultKey)
BuildLoggerManager
BuildLoggerManager
BuildLogger
for the given plan or result key. If it's detected
that the AgentContext
is building something, passing the plan key String will switch to log to the result log
getBuildLogger
in interface BuildLoggerManager
@Deprecated public void removeBuildLogger(PlanKey planKey)
BuildLoggerManager
BuildLoggerManager
removeBuildLogger
in interface BuildLoggerManager
@Deprecated public void removeBuildLogger(PlanResultKey buildResultKey)
BuildLoggerManager
BuildLoggerManager
removeBuildLogger
in interface BuildLoggerManager
@Deprecated public void removeLogger(LoggerId loggerId)
BuildLoggerManager
BuildLoggerManager
removeLogger
in interface BuildLoggerManager
loggerId
- of the logger to remove@Deprecated public void setBuildRunningOnAgent(@NotNull BuildContext buildContext, java.lang.Long buildAgentId)
setBuildRunningOnAgent
in interface BuildExecutionUpdateManager
@Deprecated public void setBuildStart(@NotNull BuildContext buildContext, @NotNull TimingPoint timingPoint)
setBuildStart
in interface BuildExecutionUpdateManager
@Deprecated public void setBuildFinish(@NotNull BuildContext buildContext, @NotNull TimingPoint timingPoint)
setBuildFinish
in interface BuildExecutionUpdateManager
@Deprecated public void setBuildStopAcknowledge(@NotNull java.lang.String buildResultKey, boolean hasCancellingStarted)
setBuildStopAcknowledge
in interface BuildExecutionUpdateManager
public void setPlanManager(PlanManager planManager)
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
public void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
public void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
public void setPendingBuildResultsCleanup(PendingBuildResultsCleanup pendingBuildResultsCleanup)
public void setAuthorCreatorService(AuthorCreatorService authorCreatorService)
public void setCurrentlyBuildingContainer(CurrentlyBuildingContainer currentlyBuildingContainer)
public void setPlanStatePersisterService(PlanStatePersisterService planStatePersisterService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |