|
||||||||||
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
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.bamboo.v2.build.CurrentlyBuilding |
---|
CurrentlyBuilding.ExecutableInfo |
Constructor Summary | |
---|---|
CurrentlyBuildingImpl(BuildIdentifier buildIdentifier,
BuildChanges buildChanges,
TriggerReason triggerReason,
java.lang.Long averageDuration)
|
Method Summary | |
---|---|
long |
getAverageDuration()
Estimated total execution time of a task. |
java.lang.Long |
getBuildAgentId()
The current build agent id iff the build is current building on an agent |
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... |
long |
getElapsedTime()
How long the task has taken up to now. |
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. |
PlanResultKey |
getPlanResultKey()
|
BuildProgressBar |
getProgressBar()
Track progress of the current build |
java.util.Date |
getQueueTime()
The Date when the build was originally queued |
java.util.Date |
getStartTime()
When was the execution 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 |
setExecutableInfo(CurrentlyBuilding.ExecutableInfo executableInfo)
Set the information about the current agents and elastic images. |
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 |
boolean |
tryToFinish()
Attempt to mark this object for operation requiring exclusive access: i.e. |
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 averageDuration)
Method Detail |
---|
@NotNull public PlanResultKey getPlanResultKey()
@NotNull public BuildIdentifier getBuildIdentifier()
ExecutionStatus
getBuildIdentifier
in interface ExecutionStatus
@NotNull public BuildChanges getBuildChanges()
ExecutionStatus
getBuildChanges
in interface ExecutionStatus
@NotNull public TriggerReason getTriggerReason()
ExecutionStatus
getTriggerReason
in interface ExecutionStatus
@NotNull public BuildProgressBar getProgressBar()
ExecutionStatus
getProgressBar
in interface ExecutionStatus
public long getAverageDuration()
ExecutionStatus
getAverageDuration
in interface ExecutionStatus
public boolean tryToFinish()
CurrentlyBuilding
tryToFinish
in interface CurrentlyBuilding
public void setExecutableInfo(@NotNull CurrentlyBuilding.ExecutableInfo executableInfo)
CurrentlyBuilding
setExecutableInfo
in interface CurrentlyBuilding
executableInfo
- to set.@NotNull public java.util.Collection<BuildAgent> getExecutableBuildAgents()
CurrentlyBuilding
getExecutableBuildAgents
in interface CurrentlyBuilding
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 boolean isExecutableAgentInfoInitialized()
isExecutableAgentInfoInitialized
in interface CurrentlyBuilding
@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()
ExecutionStatus
getStartTime
in interface ExecutionStatus
@NotNull public java.util.Date getQueueTime()
CurrentlyBuilding
Date
when the build was originally queued
getQueueTime
in interface ExecutionStatus
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 long getElapsedTime()
ExecutionStatus
getElapsedTime
in interface ExecutionStatus
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |