|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.plan.cache.AbstractImmutablePlan com.atlassian.bamboo.plan.cache.AbstractImmutableChain
public class AbstractImmutableChain
Field Summary |
---|
Fields inherited from class com.atlassian.bamboo.plan.cache.AbstractImmutablePlan |
---|
averageBuildDuration, resultsSummaryManager |
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 |
Constructor Summary | |
---|---|
AbstractImmutableChain(Chain chain,
BuildLoggerManager buildLoggerManager,
ImmutablePlanManager immutablePlanManager,
LabelManager labelManager,
ResultsSummaryManager resultsSummaryManager,
RepositoryDefinitionManager repositoryDefinitionManager,
VariableDefinitionManager variableDefinitionManager,
BuildDefinitionManager buildDefinitionManager)
|
Method Summary | |
---|---|
ChainStage |
addNewStage(java.lang.String name,
java.lang.String description,
boolean manual)
Adds a new stage and returns the stage |
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 |
com.google.common.collect.ImmutableList<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 |
ResultsSummary |
getLatestResultsSummary()
Get the latest finished result |
Chain |
getMaster()
Return the master plan if one exists. |
NotificationSet |
getNotificationSet()
Get notifications defined for this plan. |
java.util.List<ChainStage> |
getStages()
Get Stages of the chain. |
boolean |
isActive()
Is the plan queued or building? |
boolean |
isBusy()
Is the Plan "busy". |
boolean |
isExecuting()
Is the build currently being executed? |
void |
removeStage(ChainStage chainStage)
|
void |
setNotificationSet(NotificationSet notificationSet)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.plan.Plan |
---|
getLabellings, getRelatedLabellings, setBuildDefinitionXml, setBuildKey, setBuildName, setFirstBuildNumber, setKey, setLabellings, setLastBuildNumber, setMaster, setNextBuildNumber, setPlanKey, setProject, setSuspendedFromBuilding, validateBuild |
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 |
---|
getAverageBuildDuration, getBuildDefinition, getBuildDefinitionXml, getBuildLogger, getCurrentStatus, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getNextBuildNumber, getProject, getType, getVariables, hasMaster, hasTests, isMarkedForDeletion |
Methods inherited from interface com.atlassian.bamboo.plan.PlanIdentifier |
---|
getBuildKey, getBuildName, getId, getName, getPlanKey, getPlanType, isSuspendedFromBuilding |
Constructor Detail |
---|
public AbstractImmutableChain(@NotNull Chain chain, BuildLoggerManager buildLoggerManager, ImmutablePlanManager immutablePlanManager, LabelManager labelManager, ResultsSummaryManager resultsSummaryManager, RepositoryDefinitionManager repositoryDefinitionManager, VariableDefinitionManager variableDefinitionManager, BuildDefinitionManager buildDefinitionManager)
Method Detail |
---|
public boolean isActive()
ImmutablePlan
isActive
in interface ImmutablePlan
public boolean isExecuting()
ImmutablePlan
isExecuting
in interface ImmutablePlan
public PlanResultKey getLastResultKey()
ImmutableChain
getLastResultKey
in interface ImmutableChain
public ResultsSummary getLatestResultsSummary()
ImmutablePlan
getLatestResultsSummary
in interface ImmutablePlan
public boolean isBusy()
ImmutablePlan
Plan
"busy". Busy is defined by the plan having a lock held on it. This is done during change
detection, dependency listner and the like
isBusy
in interface ImmutablePlan
@NotNull public java.util.List<ChainStage> getStages()
ImmutableChain
ChainStage
s that have been marked for deletion
getStages
in interface Chain
getStages
in interface ImmutableChain
@NotNull public java.util.List<ChainStage> getAllStages()
Chain
ChainStage
s that have been marked for deletion
getAllStages
in interface Chain
getAllStages
in interface ImmutableChain
public int getJobCount()
ImmutableChain
getJobCount
in interface ImmutableChain
@NotNull public java.util.List<Job> getAllJobs()
Chain
getAllJobs
in interface Chain
getAllJobs
in interface ImmutableChain
public boolean containsStage(@Nullable java.lang.String stageName)
ImmutableChain
containsStage
in interface ImmutableChain
stageName
- to check for
@NotNull public com.google.common.collect.ImmutableList<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 Chain getMaster()
ImmutablePlan
getMaster
in interface Chain
getMaster
in interface ImmutablePlan
Plan
if one exists.@NotNull public ChainStage addNewStage(@NotNull java.lang.String name, @NotNull java.lang.String description, boolean manual)
Chain
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 void setNotificationSet(NotificationSet notificationSet)
setNotificationSet
in interface Chain
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |