public abstract class AbstractImmutableChain extends AbstractImmutablePlan implements ImmutableChain
averageBuildDuration, resultsSummaryManagerMAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESSgetPlanKeyFunction, NAME_DELIMITERgetPlanKey| Constructor and Description |
|---|
AbstractImmutableChain(Chain chain,
BuildLoggerManager buildLoggerManager,
ImmutablePlanCacheService immutablePlanCacheService,
ImmutablePlanManager immutablePlanManager,
LabelManager labelManager,
ResultsSummaryManager resultsSummaryManager,
RepositoryDefinitionManager repositoryDefinitionManager,
CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager,
VariableDefinitionManager variableDefinitionManager,
BuildDefinition buildDefinition) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsStage(String stageName)
Checks whether or not a stage exists in this chain by stage name.
|
com.google.common.collect.ImmutableList<ImmutableJob> |
getAllJobs()
Get list of jobs sorted by
- stage order
- job name (case insensitive)
|
com.google.common.collect.ImmutableList<ImmutableChainStage> |
getAllStages()
Get Stages of the Chain
|
Date |
getCreationDate() |
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
|
ImmutableResultsSummary |
getLatestResultsSummary()
Get the latest finished result
|
ImmutableChain |
getMaster()
Return the master plan if one exists.
|
NotificationSet |
getNotificationSet()
Get notifications defined for this plan.
|
List<PlanRepositoryDefinition> |
getPlanRepositoryDefinitions()
Return list of repositories available to the chain.
|
com.google.common.collect.ImmutableList<ImmutableChainStage> |
getStages()
Get Stages of the chain.
|
ChainStorageTag |
getStorageTag() |
List<TriggerDefinition> |
getTriggerDefinitions() |
VcsBambooSpecsSource |
getVcsBambooSpecsSource() |
boolean |
isActive()
Is the plan queued or building?
|
boolean |
isBusy()
Is the
Plan "busy". |
boolean |
isExecuting()
Is the build currently being executed?
|
boolean |
isSuspended() |
void |
resetLatestResultsSummary(int latestKnownBuildNumber)
Invalidates the latest result summary for plan
|
compareTo, equals, exceptionOnModification, getAverageBuildDuration, getBuildDefinition, getBuildKey, getBuildLogger, getBuildName, getCurrentStatus, getDatabaseId, getDescription, getEffectiveVariables, getFirstBuildNumber, getId, getKey, getLabellings, getLabelNames, getLastBuildNumber, getMasterId, getMasterIdIfExists, getName, getOid, getPlanKey, getPlanType, getProject, getRelatedLabellings, getType, getVariables, hashCode, hasMaster, isMarkedForDeletion, isSuspendedFromBuildingclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetEntityType, getVcsLocationBambooSpecsStategetAverageBuildDuration, getBuildDefinition, getBuildLogger, getCurrentStatus, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getProject, getType, getVariables, hasMaster, isMarkedForDeletiongetBuildKey, getBuildName, getDatabaseId, getId, getMasterId, getMasterIdIfExists, getName, getPlanKey, getPlanType, isSuspendedFromBuildinggetDescriptiongetOidpublic AbstractImmutableChain(@NotNull
Chain chain,
BuildLoggerManager buildLoggerManager,
ImmutablePlanCacheService immutablePlanCacheService,
ImmutablePlanManager immutablePlanManager,
LabelManager labelManager,
ResultsSummaryManager resultsSummaryManager,
RepositoryDefinitionManager repositoryDefinitionManager,
CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager,
VariableDefinitionManager variableDefinitionManager,
@NotNull
BuildDefinition buildDefinition)
public boolean isActive()
ImmutablePlanisActive in interface ImmutablePlanpublic boolean isExecuting()
ImmutablePlanisExecuting in interface ImmutablePlan@Nullable public PlanResultKey getLastResultKey()
ImmutableChaingetLastResultKey in interface ImmutableChainpublic ImmutableResultsSummary getLatestResultsSummary()
ImmutablePlangetLatestResultsSummary in interface ImmutablePlan@Internal public void resetLatestResultsSummary(int latestKnownBuildNumber)
resetLatestResultsSummary in class AbstractImmutablePlanpublic boolean isBusy()
ImmutablePlanPlan "busy". Busy is defined by the plan having a lock held on it. This is done during change
detection, dependency listner and the likeisBusy in interface ImmutablePlan@NotNull public com.google.common.collect.ImmutableList<ImmutableChainStage> getStages()
ImmutableChain
Note that this excludes ChainStages that have been marked for deletion
getStages in interface ImmutableChain@NotNull public com.google.common.collect.ImmutableList<ImmutableChainStage> getAllStages()
ImmutableChain
Note that this includes ChainStages that have been marked for deletion
getAllStages in interface ImmutableChainpublic int getJobCount()
ImmutableChaingetJobCount in interface ImmutableChain@NotNull public com.google.common.collect.ImmutableList<ImmutableJob> getAllJobs()
getAllJobs in interface ImmutableChainpublic boolean containsStage(@Nullable
String stageName)
ImmutableChaincontainsStage in interface ImmutableChainstageName - to check for@NotNull public com.google.common.collect.ImmutableList<RepositoryDefinition> getEffectiveRepositoryDefinitions()
ImmutableChaingetEffectiveRepositoryDefinitions in interface ImmutableChainList of repositories available to this plan@NotNull public List<PlanRepositoryDefinition> getPlanRepositoryDefinitions()
ImmutableChaingetPlanRepositoryDefinitions in interface ImmutableChainList of repositories available to this planpublic NotificationSet getNotificationSet()
ImmutableChaingetNotificationSet in interface ImmutableChainNotificationSet containing notifications for this plan.public ImmutableChain getMaster()
ImmutablePlangetMaster in interface ImmutableChaingetMaster in interface ImmutablePlanPlan if one exists.public boolean isSuspended()
isSuspended in interface Triggerable@NotNull public List<TriggerDefinition> getTriggerDefinitions()
getTriggerDefinitions in interface Triggerablepublic ChainStorageTag getStorageTag()
getStorageTag in interface ImmutableChain@Nullable public VcsBambooSpecsSource getVcsBambooSpecsSource()
getVcsBambooSpecsSource in interface ImmutableChain@NotNull public Date getCreationDate()
getCreationDate in interface ImmutableChainCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.