com.atlassian.bamboo.v2.build
Interface CurrentlyBuilding

All Known Implementing Classes:
CurrentlyBuildingImpl

@ThreadSafe
public interface CurrentlyBuilding

This object encapsulates the BuildContext that'd being built and the BuildAgent id it's related to


Method Summary
 java.lang.Long getBuildAgentId()
           
 java.lang.Long getBuildAverageDuration()
          How long on average has the build taken in the past.
 BuildChanges getBuildChanges()
           
 BuildIdentifier getBuildIdentifier()
           
 java.lang.Long getBuildTime()
          How long has the build taken so far?
 java.util.Collection<BuildAgent> getExecutableBuildAgents()
          Get the list of executable agents for this build.
 BuildProgressBar getProgressBar()
          Track our progress
 java.util.Date getStartTime()
          When was the build was started
 TriggerReason getTriggerReason()
           
 boolean hasExecutableAgents()
          Determine whether this plan currently has any agent that can run it.
 boolean isCurrentlyQueuedOnly()
           
 void setBuildAgentId(java.lang.Long agentId)
           
 void startTimer()
          Starts an internal timer to the currently running build
 void stopTimer()
          Stops the internal timer for the current running build
 

Method Detail

getBuildIdentifier

BuildIdentifier getBuildIdentifier()

getBuildAgentId

@Nullable
java.lang.Long getBuildAgentId()

setBuildAgentId

void setBuildAgentId(@NotNull
                     java.lang.Long agentId)

isCurrentlyQueuedOnly

boolean isCurrentlyQueuedOnly()

getTriggerReason

TriggerReason getTriggerReason()

getBuildChanges

BuildChanges getBuildChanges()

getStartTime

@Nullable
java.util.Date getStartTime()
When was the build was started

Returns:
Date - when this CurrentBuildResult was generated

startTimer

void startTimer()
Starts an internal timer to the currently running build


stopTimer

void stopTimer()
Stops the internal timer for the current running build


getProgressBar

BuildProgressBar getProgressBar()
Track our progress

Returns:

getBuildTime

java.lang.Long getBuildTime()
How long has the build taken so far?

Returns:
Long representing build time - in millis

getBuildAverageDuration

java.lang.Long getBuildAverageDuration()
How long on average has the build taken in the past. Used by the build progress bar.

Returns:
Long representing build average duration - in millis

getExecutableBuildAgents

@NotNull
java.util.Collection<BuildAgent> getExecutableBuildAgents()
Get the list of executable agents for this build. This mirrors the agent id's in the JMS message on the queue.

Returns:

hasExecutableAgents

boolean hasExecutableAgents()
Determine whether this plan currently has any agent that can run it. True if at least one agent: meets all of the plans requirements is enabled is active (i.e. online)

Returns:


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.