public abstract class AbstractImmutableChain extends AbstractImmutablePlan implements ImmutableChain
averageBuildDuration, buildDefinition, resultsSummaryManagerMAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESSNAME_DELIMITERgetPlanKey| Constructor and Description |
|---|
AbstractImmutableChain(@NotNull Chain chain,
BuildLoggerManager buildLoggerManager,
ImmutablePlanCacheService immutablePlanCacheService,
ImmutablePlanManager immutablePlanManager,
LabelManager labelManager,
ResultsSummaryManager resultsSummaryManager,
RepositoryDefinitionManager repositoryDefinitionManager,
CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager,
VariableDefinitionManager variableDefinitionManager,
@NotNull BuildDefinition buildDefinition) |
AbstractImmutableChain(EnrichedPlanDto dto,
Pair<ImmutableChain,EnrichedPlanDto> masterWithMasterDto,
List<FlatChainStageDto> chainStages,
Map<Long,List<EnrichedPlanDto>> jobsGroupedByStageId,
Map<Long,EnrichedPlanDto> jobsGroupedById,
BuildLoggerManager buildLoggerManager,
ImmutablePlanCacheService immutablePlanCacheService,
ImmutablePlanManager immutablePlanManager,
ResultsSummaryManager resultsSummaryManager,
RepositoryDefinitionManager repositoryDefinitionManager,
CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager,
VariableDefinitionManager variableDefinitionManager,
BambooSpecsManager bambooSpecsManager,
NotificationManager notificationManager,
BuildDefinitionManager buildDefinitionManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsStage(@Nullable String stageName)
Checks whether or not a stage exists in this chain by stage name.
|
@NotNull com.google.common.collect.ImmutableList<ImmutableJob> |
getAllJobs()
Get list of jobs sorted by
- stage order
- job name (case insensitive)
|
@NotNull com.google.common.collect.ImmutableList<ImmutableChainStage> |
getAllStages()
Get Stages of the Chain
|
@NotNull Date |
getCreationDate() |
@NotNull 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.
|
@Nullable 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.
|
@NotNull List<PlanRepositoryDefinition> |
getPlanRepositoryDefinitions()
Return list of repositories available to the chain.
|
@NotNull com.google.common.collect.ImmutableList<ImmutableChainStage> |
getStages()
Get Stages of the chain.
|
ChainStorageTag |
getStorageTag() |
@NotNull List<TriggerDefinition> |
getTriggerDefinitions() |
@Nullable 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,
boolean resetAverageBuildDuration)
Invalidates the latest result summary for plan
|
void |
resetVcsBambooSpecsSource(@Nullable ImmutableVcsBambooSpecsSource immutableVcsBambooSpecsSource)
Invalidates specs source.
|
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, resetLatestResultsSummaryclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetEntityTypegetAverageBuildDuration, getBuildDefinition, getBuildLogger, getCurrentStatus, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getProject, getType, getVariables, hasMaster, isMarkedForDeletiongetBuildKey, getBuildName, getDatabaseId, getId, getMasterId, getMasterIdIfExists, getName, getPlanKey, getPlanType, isSuspendedFromBuildinggetDescriptiongetOidpublic AbstractImmutableChain(@NotNull
@NotNull Chain chain,
BuildLoggerManager buildLoggerManager,
ImmutablePlanCacheService immutablePlanCacheService,
ImmutablePlanManager immutablePlanManager,
LabelManager labelManager,
ResultsSummaryManager resultsSummaryManager,
RepositoryDefinitionManager repositoryDefinitionManager,
CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager,
VariableDefinitionManager variableDefinitionManager,
@NotNull
@NotNull BuildDefinition buildDefinition)
public AbstractImmutableChain(EnrichedPlanDto dto, Pair<ImmutableChain,EnrichedPlanDto> masterWithMasterDto, List<FlatChainStageDto> chainStages, Map<Long,List<EnrichedPlanDto>> jobsGroupedByStageId, Map<Long,EnrichedPlanDto> jobsGroupedById, BuildLoggerManager buildLoggerManager, ImmutablePlanCacheService immutablePlanCacheService, ImmutablePlanManager immutablePlanManager, ResultsSummaryManager resultsSummaryManager, RepositoryDefinitionManager repositoryDefinitionManager, CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, VariableDefinitionManager variableDefinitionManager, BambooSpecsManager bambooSpecsManager, NotificationManager notificationManager, BuildDefinitionManager buildDefinitionManager)
public boolean isActive()
ImmutablePlanisActive in interface ImmutablePlanpublic boolean isExecuting()
ImmutablePlanisExecuting in interface ImmutablePlan@Nullable public @Nullable PlanResultKey getLastResultKey()
ImmutableChaingetLastResultKey in interface ImmutableChainpublic ImmutableResultsSummary getLatestResultsSummary()
ImmutablePlangetLatestResultsSummary in interface ImmutablePlan@Internal
public void resetLatestResultsSummary(int latestKnownBuildNumber,
boolean resetAverageBuildDuration)
resetLatestResultsSummary in class AbstractImmutablePlan@Internal
public void resetVcsBambooSpecsSource(@Nullable
@Nullable ImmutableVcsBambooSpecsSource immutableVcsBambooSpecsSource)
public 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 @NotNull 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 @NotNull 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 @NotNull com.google.common.collect.ImmutableList<ImmutableJob> getAllJobs()
getAllJobs in interface ImmutableChainpublic boolean containsStage(@Nullable
@Nullable String stageName)
ImmutableChaincontainsStage in interface ImmutableChainstageName - to check for@NotNull public @NotNull com.google.common.collect.ImmutableList<RepositoryDefinition> getEffectiveRepositoryDefinitions()
ImmutableChaingetEffectiveRepositoryDefinitions in interface ImmutableChainList of repositories available to this plan@NotNull public @NotNull 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 @NotNull List<TriggerDefinition> getTriggerDefinitions()
getTriggerDefinitions in interface Triggerablepublic ChainStorageTag getStorageTag()
getStorageTag in interface ImmutableChain@Nullable public @Nullable ImmutableVcsBambooSpecsSource getVcsBambooSpecsSource()
getVcsBambooSpecsSource in interface ImmutableChain@NotNull public @NotNull Date getCreationDate()
getCreationDate in interface ImmutableChainCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.