|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.v2.build.CurrentlyBuildingImpl
@ThreadSafe public class CurrentlyBuildingImpl
Constructor Summary | |
---|---|
CurrentlyBuildingImpl(BuildIdentifier buildIdentifier,
BuildChanges buildChanges,
TriggerReason triggerReason,
java.lang.Long buildAverageDuration)
|
Method Summary | |
---|---|
java.lang.Long |
getBuildAgentId()
The current build agent id iff the build is current building on an agent |
java.lang.Long |
getBuildAverageDuration()
How long on average has the build taken in the past. |
BuildCancelledDetails |
getBuildCancelledDetails()
|
BuildChanges |
getBuildChanges()
Changes associated with current build |
BuildHungDetails |
getBuildHangDetails()
Details about the build if it hung. |
BuildIdentifier |
getBuildIdentifier()
The ID of the build |
BuildQueueTimeoutDetails |
getBuildQueueTimeoutDetails()
Details about the build if queue timeout was detected. |
java.lang.Long |
getBuildTime()
How long has the build taken so far since checkout has finished? Method name should be getBuildDuration... |
java.util.Collection<BuildAgent> |
getExecutableBuildAgents()
Get the list of executable agents for this build. |
java.util.Collection<ElasticImageConfiguration> |
getExecutableElasticImages()
Get the list of elastic images that can execute this plan. |
BuildProgressBar |
getProgressBar()
Track our progress of the current build |
java.util.Date |
getQueueTime()
The Date when the build was originally queued |
java.util.Date |
getStartTime()
When was the build was started. |
TriggerReason |
getTriggerReason()
The trigger reason of the current build |
java.util.Date |
getVcsUpdateTime()
The time Date when updating / checking out source repository began |
boolean |
hasExecutableAgents()
Determine whether this plan currently has any agent that can run it. |
boolean |
isCurrentlyQueuedOnly()
Is the build queued? Effectively checks if the CurrentlyBuilding.getBuildAgentId() returns null |
boolean |
isExecutableAgentInfoInitialized()
|
boolean |
isUpdatingVcs()
|
void |
setBuildAgentId(java.lang.Long buildAgentId)
Sets the fact that the build will now be building on an agent |
void |
setBuildCancelledDetails(BuildCancelledDetails buildCancelledDetails)
|
void |
setBuildHangDetails(BuildHungDetails buildHungDetails)
Set the details if the build was detected to be hung. |
void |
setBuildQueueTimeoutDetails(BuildQueueTimeoutDetails buildQueueTimeoutDetails)
Sets build queue timeout details |
void |
setExecutableAgentInfoInitialized(boolean executableAgentInfoInitialized)
|
void |
setExecutableBuildAgents(java.util.Collection<BuildAgent> executableBuildAgents)
Resets the executable build agents |
void |
setExecutableElasticImages(java.util.Collection<ElasticImageConfiguration> executableElasticImages)
Resets the executable build agents |
void |
setVcsUpdateTime(java.util.Date vcsUpdateTime)
|
void |
startTimer()
Starts an internal timer to the currently running build |
void |
stopTimer()
Stops the internal timer for the current running build |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CurrentlyBuildingImpl(BuildIdentifier buildIdentifier, BuildChanges buildChanges, TriggerReason triggerReason, java.lang.Long buildAverageDuration)
Method Detail |
---|
@NotNull public BuildIdentifier getBuildIdentifier()
CurrentlyBuilding
getBuildIdentifier
in interface CurrentlyBuilding
@NotNull public BuildChanges getBuildChanges()
CurrentlyBuilding
getBuildChanges
in interface CurrentlyBuilding
@NotNull public TriggerReason getTriggerReason()
CurrentlyBuilding
getTriggerReason
in interface CurrentlyBuilding
@NotNull public BuildProgressBar getProgressBar()
CurrentlyBuilding
getProgressBar
in interface CurrentlyBuilding
@NotNull public java.lang.Long getBuildAverageDuration()
CurrentlyBuilding
getBuildAverageDuration
in interface CurrentlyBuilding
Long
representing build average duration - in millis@NotNull public java.util.Collection<BuildAgent> getExecutableBuildAgents()
CurrentlyBuilding
getExecutableBuildAgents
in interface CurrentlyBuilding
BuildAgent
which can execute this build.public void setExecutableBuildAgents(@NotNull java.util.Collection<BuildAgent> executableBuildAgents)
CurrentlyBuilding
setExecutableBuildAgents
in interface CurrentlyBuilding
executableBuildAgents
- - a list of BuildAgent
which can execute this build.public boolean hasExecutableAgents()
CurrentlyBuilding
hasExecutableAgents
in interface CurrentlyBuilding
@NotNull public java.util.Collection<ElasticImageConfiguration> getExecutableElasticImages()
CurrentlyBuilding
getExecutableElasticImages
in interface CurrentlyBuilding
ElasticImageConfiguration
which can execute this planpublic void setExecutableElasticImages(@NotNull java.util.Collection<ElasticImageConfiguration> executableElasticImages)
CurrentlyBuilding
setExecutableElasticImages
in interface CurrentlyBuilding
executableElasticImages
- - a list of images that can run this build.@Nullable public java.lang.Long getBuildAgentId()
CurrentlyBuilding
getBuildAgentId
in interface CurrentlyBuilding
public void setBuildAgentId(@NotNull java.lang.Long buildAgentId)
CurrentlyBuilding
setBuildAgentId
in interface CurrentlyBuilding
public boolean isCurrentlyQueuedOnly()
CurrentlyBuilding
CurrentlyBuilding.getBuildAgentId()
returns null
isCurrentlyQueuedOnly
in interface CurrentlyBuilding
@Nullable public java.util.Date getStartTime()
CurrentlyBuilding
getStartTime
in interface CurrentlyBuilding
@Nullable public java.util.Date getQueueTime()
CurrentlyBuilding
Date
when the build was originally queued
getQueueTime
in interface CurrentlyBuilding
@Nullable public java.util.Date getVcsUpdateTime()
CurrentlyBuilding
Date
when updating / checking out source repository began
getVcsUpdateTime
in interface CurrentlyBuilding
public void setVcsUpdateTime(@NotNull java.util.Date vcsUpdateTime)
setVcsUpdateTime
in interface CurrentlyBuilding
@NotNull public java.lang.Long getBuildTime()
CurrentlyBuilding
getBuildTime
in interface CurrentlyBuilding
Long
representing build time - in millis. 0 if not startedpublic boolean isUpdatingVcs()
isUpdatingVcs
in interface CurrentlyBuilding
public void startTimer()
CurrentlyBuilding
startTimer
in interface CurrentlyBuilding
public void stopTimer()
CurrentlyBuilding
stopTimer
in interface CurrentlyBuilding
@Nullable public BuildHungDetails getBuildHangDetails()
CurrentlyBuilding
getBuildHangDetails
in interface CurrentlyBuilding
public void setBuildHangDetails(@Nullable BuildHungDetails buildHungDetails)
CurrentlyBuilding
setBuildHangDetails
in interface CurrentlyBuilding
@Nullable public BuildCancelledDetails getBuildCancelledDetails()
getBuildCancelledDetails
in interface CurrentlyBuilding
public void setBuildCancelledDetails(@Nullable BuildCancelledDetails buildCancelledDetails)
setBuildCancelledDetails
in interface CurrentlyBuilding
public BuildQueueTimeoutDetails getBuildQueueTimeoutDetails()
CurrentlyBuilding
getBuildQueueTimeoutDetails
in interface CurrentlyBuilding
public void setBuildQueueTimeoutDetails(BuildQueueTimeoutDetails buildQueueTimeoutDetails)
CurrentlyBuilding
setBuildQueueTimeoutDetails
in interface CurrentlyBuilding
public boolean isExecutableAgentInfoInitialized()
isExecutableAgentInfoInitialized
in interface CurrentlyBuilding
public void setExecutableAgentInfoInitialized(boolean executableAgentInfoInitialized)
setExecutableAgentInfoInitialized
in interface CurrentlyBuilding
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |