public abstract class AbstractImmutableChain extends AbstractImmutablePlan implements ImmutableChain
averageBuildDuration, resultsSummaryManager
MAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESS
getPlanKeyFunction, NAME_DELIMITER
getPlanKey
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() |
ImmutableVcsBambooSpecsSource |
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, isSuspendedFromBuilding
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getEntityType
getAverageBuildDuration, getBuildDefinition, getBuildLogger, getCurrentStatus, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getProject, getType, getVariables, hasMaster, isMarkedForDeletion
getBuildKey, getBuildName, getDatabaseId, getId, getMasterId, getMasterIdIfExists, getName, getPlanKey, getPlanType, isSuspendedFromBuilding
getDescription
getOid
public 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()
ImmutablePlan
isActive
in interface ImmutablePlan
public boolean isExecuting()
ImmutablePlan
isExecuting
in interface ImmutablePlan
@Nullable public PlanResultKey getLastResultKey()
ImmutableChain
getLastResultKey
in interface ImmutableChain
public ImmutableResultsSummary getLatestResultsSummary()
ImmutablePlan
getLatestResultsSummary
in interface ImmutablePlan
@Internal public void resetLatestResultsSummary(int latestKnownBuildNumber)
resetLatestResultsSummary
in class AbstractImmutablePlan
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 likeisBusy
in interface ImmutablePlan
@NotNull public com.google.common.collect.ImmutableList<ImmutableChainStage> getStages()
ImmutableChain
Note that this excludes ChainStage
s that have been marked for deletion
getStages
in interface ImmutableChain
@NotNull public com.google.common.collect.ImmutableList<ImmutableChainStage> getAllStages()
ImmutableChain
Note that this includes ChainStage
s that have been marked for deletion
getAllStages
in interface ImmutableChain
public int getJobCount()
ImmutableChain
getJobCount
in interface ImmutableChain
@NotNull public com.google.common.collect.ImmutableList<ImmutableJob> getAllJobs()
getAllJobs
in interface ImmutableChain
public boolean containsStage(@Nullable 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 plan@NotNull public List<PlanRepositoryDefinition> getPlanRepositoryDefinitions()
ImmutableChain
getPlanRepositoryDefinitions
in interface ImmutableChain
List
of repositories available to this planpublic NotificationSet getNotificationSet()
ImmutableChain
getNotificationSet
in interface ImmutableChain
NotificationSet
containing notifications for this plan.public ImmutableChain getMaster()
ImmutablePlan
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
public ChainStorageTag getStorageTag()
getStorageTag
in interface ImmutableChain
@Nullable public ImmutableVcsBambooSpecsSource getVcsBambooSpecsSource()
getVcsBambooSpecsSource
in interface ImmutableChain
@NotNull public Date getCreationDate()
getCreationDate
in interface ImmutableChain
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.