|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.bean.EntityObject com.atlassian.bamboo.core.BambooEntityObject com.atlassian.bamboo.plan.AbstractPlan com.atlassian.bamboo.build.AbstractBuildable
public abstract class AbstractBuildable
Field Summary |
---|
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
Fields inherited from interface com.atlassian.bamboo.plan.Plan |
---|
MAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESS |
Constructor Summary | |
---|---|
AbstractBuildable()
|
Method Summary | |
---|---|
void |
addBuildResultSummary(BuildResultsSummary buildResultsSummary)
Add the given build results summary to the build. |
long |
getAverageBuildDuration()
Returns an average duration of the recent builds |
BuildResultsSummaryManager |
getBuildResultsSummaryManager()
|
java.util.List<BuildResultsSummary> |
getBuildResultSummaries()
Obtains the builds total collection of BuildResultsSummary objects
(oldest first), one for each build. |
java.lang.String |
getCurrentStatus()
Retuns a string key as to what the status is. |
BuildResultsSummary |
getFirstBuildSummary()
Get the first build result |
BuildResultsSummary |
getLatestBuildSummary()
Get the summary from the latest completed build |
ResultsSummary |
getLatestResultsSummary()
Get the summary from the latest completed plan |
BuildResults |
getNextBuildResults(int buildNumber)
|
int |
getNumberOfConcurrentlyRunningBuilds()
Gets the number of currently running concurrent build instances for the build |
BuildResults |
getPreviousBuildResults(int buildNumber)
Gets the first BuildResultsImpl before the passed number |
RequirementSet |
getRequirementSet()
|
boolean |
hasBuildResults()
Has the build got any build results to display? |
boolean |
isActive()
Checks if the plan has an active build(s). |
boolean |
isExecuting()
Is the build currenlty being executed? |
boolean |
isInBuildQueue()
Is the build currently being built? |
void |
removeBuildResultSummary(int buildNumber)
Remove buildResultSummary and all persisted files for given build number |
void |
setBuildExecutionManager(BuildExecutionManager buildExecutionManager)
|
void |
setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)
|
void |
setRequirementSet(RequirementSet requirementSet)
|
ErrorCollection |
validateBuild()
Validates the build's builder and source code locations |
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
getId, setId |
Methods inherited from class com.atlassian.core.bean.EntityObject |
---|
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.plan.Plan |
---|
getBuildDefinition, getBuildDefinitionXml, getBuildKey, getBuildLogger, getBuildName, getFirstBuildNumber, getKey, getLabellings, getLastBuildNumber, getLastVcsRevisionKey, getName, getNextBuildNumber, getPlanKey, getProject, getRelatedLabellings, getSourceCodeDirectory, getType, hasTests, isBusy, isSuspendedFromBuilding, setBuildDefinitionXml, setBuildKey, setBuildName, setFirstBuildNumber, setKey, setLabellings, setLastBuildNumber, setLastVcsRevisionKey, setNextBuildNumber, setProject, setSuspendedFromBuilding |
Methods inherited from interface com.atlassian.bamboo.Describable |
---|
setDescription, setName |
Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider |
---|
getDescription |
Methods inherited from interface com.atlassian.bamboo.deletion.Deletable |
---|
isMarkedForDeletion, setMarkedForDeletion |
Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
---|
getId, setId |
Constructor Detail |
---|
public AbstractBuildable()
Method Detail |
---|
public long getAverageBuildDuration()
Plan
getAverageBuildDuration
in interface Plan
public java.util.List<BuildResultsSummary> getBuildResultSummaries()
Buildable
BuildResultsSummary
objects
(oldest first), one for each build.
getBuildResultSummaries
in interface Buildable
public ResultsSummary getLatestResultsSummary()
Plan
getLatestResultsSummary
in interface Plan
public BuildResultsSummary getLatestBuildSummary()
Buildable
getLatestBuildSummary
in interface Buildable
public int getNumberOfConcurrentlyRunningBuilds()
Buildable
getNumberOfConcurrentlyRunningBuilds
in interface Buildable
public BuildResultsSummary getFirstBuildSummary()
Buildable
getFirstBuildSummary
in interface Buildable
@NotNull public RequirementSet getRequirementSet()
getRequirementSet
in interface Buildable
public void setRequirementSet(RequirementSet requirementSet)
setRequirementSet
in interface Buildable
public void addBuildResultSummary(BuildResultsSummary buildResultsSummary)
Buildable
addBuildResultSummary
in interface Buildable
buildResultsSummary
- The build summarypublic void removeBuildResultSummary(int buildNumber)
Buildable
removeBuildResultSummary
in interface Buildable
public BuildResults getPreviousBuildResults(int buildNumber)
Buildable
BuildResultsImpl
before the passed number
getPreviousBuildResults
in interface Buildable
BuildResultsImpl
. null if no build results can be found before that
numberpublic BuildResults getNextBuildResults(int buildNumber)
getNextBuildResults
in interface Buildable
public boolean hasBuildResults()
Buildable
hasBuildResults
in interface Buildable
public ErrorCollection validateBuild()
Plan
validateBuild
in interface Plan
ErrorCollection
with relevent error messagespublic java.lang.String getCurrentStatus()
Plan
getCurrentStatus
in interface Plan
public boolean isInBuildQueue()
isInBuildQueue
in interface Buildable
public boolean isActive()
Plan
isActive
in interface Plan
public boolean isExecuting()
Plan
isExecuting
in interface Plan
public void setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)
public BuildResultsSummaryManager getBuildResultsSummaryManager()
public void setBuildExecutionManager(BuildExecutionManager buildExecutionManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |