|
||||||||||
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.plan.AbstractChain
public abstract class AbstractChain
Field Summary | |
---|---|
protected Chain |
master
|
static int |
NUMBER_OF_RESULTS
|
Fields inherited from class com.atlassian.bamboo.plan.AbstractPlan |
---|
resultsSummaryManager |
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
Fields inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan |
---|
MAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESS |
Fields inherited from interface com.atlassian.bamboo.plan.PlanIdentifier |
---|
getPlanKeyFunction |
Fields inherited from interface com.atlassian.bamboo.plan.PlanKeyProvider |
---|
getPlanKey |
Constructor Summary | |
---|---|
AbstractChain()
|
Method Summary | |
---|---|
ChainStage |
addNewStage(String name,
String description,
boolean manual)
Adds a new stage and returns the stage |
void |
addStage(ChainStage chainStage)
|
boolean |
containsStage(String stageName)
Checks whether or not a stage exists in this chain by stage name. |
List<Job> |
getAllJobs()
Note: Does not include Jobs that are marked for deletion. |
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 |
String |
getCurrentStatus()
Retuns a string key as to what the status is. |
List<RepositoryDefinition> |
getEffectiveRepositoryDefinitions()
Return list of repositories available to the chain. |
int |
getJobCount()
Note: Does not include Jobs that are marked for deletion. |
PlanResultKey |
getLastResultKey()
Get the latest result key including active (not finished) results |
Chain |
getMaster()
Return the master plan if one exists. |
NotificationSet |
getNotificationSet()
Get notifications defined for this plan. |
NotificationSet |
getNotificationSetField()
Raw access to notification set field used in import/export, upgrade tasks and Hibernate. |
List<ChainStage> |
getStages()
Get Stages of the chain. |
List<TriggerDefinition> |
getTriggerDefinitions()
|
List<BuildStrategy> |
getTriggers()
Returns triggers defined for this object as BuildStrategies. |
boolean |
isActive()
Needed for Dependency Blocking for Chains. |
boolean |
isExecuting()
Is the build currently being executed? |
boolean |
isSuspended()
|
void |
removeStage(long chainStage)
|
void |
setAllStages(List<ChainStage> allStages)
|
void |
setChainExecutionManager(ChainExecutionManager chainExecutionManager)
|
void |
setNotificationSet(NotificationSet notificationSet)
|
void |
setRepositoryDefinitionManager(RepositoryDefinitionManager repositoryDefinitionManager)
|
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 |
---|
getBuildDefinitionXml, getLabellings, getLatestResultsSummary, getRelatedLabellings, setBuildDefinitionXml, setBuildKey, setBuildName, setFirstBuildNumber, setKey, setLabellings, setLastBuildNumber, setMaster, setNextBuildNumber, setPlanKey, setProject, setSuspendedFromBuilding |
Methods inherited from interface com.atlassian.bamboo.Describable |
---|
setDescription, setName |
Methods inherited from interface com.atlassian.bamboo.deletion.Deletable |
---|
setMarkedForDeletion |
Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
---|
setId |
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableDeletable |
---|
isMarkedForDeletion |
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan |
---|
getBuildDefinition, getBuildLogger, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getNextBuildNumber, getProject, getType, getVariables, hasMaster, isBusy, isMarkedForDeletion |
Methods inherited from interface com.atlassian.bamboo.plan.PlanIdentifier |
---|
getBuildKey, getBuildName, getId, getMasterId, getName, getPlanKey, getPlanType, isSuspendedFromBuilding |
Field Detail |
---|
public static final int NUMBER_OF_RESULTS
protected Chain master
Constructor Detail |
---|
public AbstractChain()
Method Detail |
---|
@NotNull public List<ChainStage> getStages()
ImmutableChain
ChainStage
s that have been marked for deletion
getStages
in interface Chain
getStages
in interface ImmutableChain
@NotNull public ChainStage addNewStage(@NotNull String name, @NotNull String description, boolean manual)
Chain
addNewStage
in interface Chain
public void addStage(@NotNull ChainStage chainStage)
addStage
in interface Chain
public void removeStage(long chainStage)
removeStage
in interface Chain
public int getJobCount()
ImmutableChain
getJobCount
in interface ImmutableChain
@NotNull public List<Job> getAllJobs()
Chain
getAllJobs
in interface Chain
getAllJobs
in interface ImmutableChain
public boolean containsStage(@Nullable String stageName)
ImmutableChain
containsStage
in interface ImmutableChain
stageName
- to check for
@NotNull public String getCurrentStatus()
ImmutablePlan
getCurrentStatus
in interface ImmutablePlan
public boolean isExecuting()
ImmutablePlan
isExecuting
in interface ImmutablePlan
public boolean isActive()
isActive
in interface ImmutablePlan
public PlanResultKey getLastResultKey()
ImmutableChain
getLastResultKey
in interface ImmutableChain
public long getAverageBuildDuration()
ImmutablePlan
getAverageBuildDuration
in interface ImmutablePlan
@NotNull public List<RepositoryDefinition> getEffectiveRepositoryDefinitions()
ImmutableChain
getEffectiveRepositoryDefinitions
in interface ImmutableChain
List
of repositories available to this planpublic NotificationSet getNotificationSet()
ImmutableChain
getNotificationSet
in interface ImmutableChain
NotificationSet
containing notifications for this plan.public final void setNotificationSet(NotificationSet notificationSet)
setNotificationSet
in interface Chain
public final NotificationSet getNotificationSetField()
public Chain getMaster()
ImmutablePlan
getMaster
in interface Chain
getMaster
in interface ImmutableChain
getMaster
in interface ImmutablePlan
Plan
if one exists.public boolean isSuspended()
isSuspended
in interface Triggerable
@NotNull public List<TriggerDefinition> getTriggerDefinitions()
getTriggerDefinitions
in interface Triggerable
@NotNull public List<BuildStrategy> getTriggers()
Triggerable
Triggerable.getTriggerDefinitions()
and converting its results. Note that this conversion can be lossy,
as not all trigger types are convertible to BuildStrategies. Items that cannot be converted are skipped.
getTriggers
in interface Triggerable
@NotNull public List<ChainStage> getAllStages()
Chain
ChainStage
s that have been marked for deletion
getAllStages
in interface Chain
getAllStages
in interface ImmutableChain
public void setAllStages(@NotNull List<ChainStage> allStages)
public void setChainExecutionManager(ChainExecutionManager chainExecutionManager)
public void setRepositoryDefinitionManager(RepositoryDefinitionManager repositoryDefinitionManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |