|
||||||||||
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.chains.DefaultChain
public class DefaultChain
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 | |
---|---|
DefaultChain()
|
Method Summary | |
---|---|
ChainStage |
addNewStage(java.lang.String name,
java.lang.String description)
|
void |
addStage(ChainStage chainStage)
|
boolean |
containsStage(java.lang.String stageName)
Checks whether or not a stage exists in this chain by stage name. |
java.util.List<Job> |
getAllJobs()
Note: Does not include Jobs that are marked for deletion. |
java.util.List<ChainStage> |
getAllStages()
Get Stages of the Chain Note that this includes ChainStage s that have been marked for deletion |
long |
getAverageBuildDuration()
Returns an average duration of the recent builds |
java.lang.String |
getCurrentStatus()
Retuns a string key as to what the status is. |
int |
getJobCount()
Note: Does not include Jobs that are marked for deletion. |
ResultsSummary |
getLatestResultsSummary()
Get the summary from the latest completed plan |
java.util.List<ChainStage> |
getStages()
Get Stages of the chain. |
java.lang.String |
getType()
|
boolean |
hasTests()
Helper method checking if plan has tests defined |
boolean |
isActive()
Needed for Dependency Blocking for Chains. |
boolean |
isExecuting()
Is the build currenlty being executed? |
void |
removeStage(ChainStage chainStage)
|
void |
setAllStages(java.util.List<ChainStage> allStages)
|
void |
setChainExecutionManager(ChainExecutionManager chainExecutionManager)
|
void |
setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
|
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.TopLevelPlan |
---|
getNotificationSet, setNotificationSet |
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, 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 DefaultChain()
Method Detail |
---|
@NotNull public java.lang.String getType()
getType
in interface Plan
@NotNull public java.util.List<ChainStage> getStages()
Chain
ChainStage
s that have been marked for deletion
getStages
in interface Chain
@NotNull public ChainStage addNewStage(@NotNull java.lang.String name, @NotNull java.lang.String description)
addNewStage
in interface Chain
public void addStage(@NotNull ChainStage chainStage)
addStage
in interface Chain
public void removeStage(@NotNull ChainStage chainStage)
removeStage
in interface Chain
public ErrorCollection validateBuild()
Plan
validateBuild
in interface Plan
ErrorCollection
with relevent error messagespublic java.lang.String getCurrentStatus()
Plan
getCurrentStatus
in interface Plan
public int getJobCount()
Chain
getJobCount
in interface Chain
public java.util.List<Job> getAllJobs()
Chain
getAllJobs
in interface Chain
public boolean containsStage(@Nullable java.lang.String stageName)
Chain
containsStage
in interface Chain
stageName
- to check for
public boolean isExecuting()
Plan
isExecuting
in interface Plan
@Nullable public ResultsSummary getLatestResultsSummary()
Plan
getLatestResultsSummary
in interface Plan
public boolean isActive()
isActive
in interface Plan
public long getAverageBuildDuration()
Plan
getAverageBuildDuration
in interface Plan
public boolean hasTests()
Plan
hasTests
in interface Plan
hasTests
in class AbstractPlan
@NotNull public java.util.List<ChainStage> getAllStages()
Chain
ChainStage
s that have been marked for deletion
getAllStages
in interface Chain
public void setAllStages(@NotNull java.util.List<ChainStage> allStages)
public void setChainExecutionManager(ChainExecutionManager chainExecutionManager)
public void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |