public class ImmutableChainStageImpl extends Object implements ImmutableChainStage
Constructor and Description |
---|
ImmutableChainStageImpl(@NotNull ImmutableChain chain,
@NotNull ChainStage mutableStage,
@NotNull ImmutablePlanManager immutablePlanManager,
@NotNull ImmutablePlanCacheService immutablePlanCacheService) |
Modifier and Type | Method and Description |
---|---|
static ImmutableChainStageImpl |
createImmutableChainStageBasedOnFlatData(@NotNull ImmutableChain chain,
@NotNull FlatChainStageDto stageDto,
@NotNull ImmutablePlanManager immutablePlanManager,
@NotNull ImmutablePlanCacheService immutablePlanCacheService,
@NotNull Map<Long,List<EnrichedPlanDto>> jobsGroupedByStageId,
@NotNull Map<Long,EnrichedPlanDto> jobsGroupedById,
boolean isLightWeight) |
@NotNull ImmutableChain |
getChain()
Gets the
Chain that the stage belongs to |
@NotNull Optional<Long> |
getDatabaseId() |
String |
getDescription()
Get the Stage Description
|
long |
getId()
Returns database id of the stage.
|
@NotNull Set<ImmutableJob> |
getJobs()
Gets the
ImmutableJob s associated with this Stage. |
ImmutableChainStage |
getMaster() |
@NotNull String |
getName()
Get the Stage Name
|
BambooEntityOid |
getOid()
OID assigned to this object.
|
boolean |
hasMaster() |
boolean |
isFinal() |
boolean |
isManual() |
boolean |
isMarkedForDeletion() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntityType
public ImmutableChainStageImpl(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull ChainStage mutableStage, @NotNull @NotNull ImmutablePlanManager immutablePlanManager, @NotNull @NotNull ImmutablePlanCacheService immutablePlanCacheService)
public static ImmutableChainStageImpl createImmutableChainStageBasedOnFlatData(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull FlatChainStageDto stageDto, @NotNull @NotNull ImmutablePlanManager immutablePlanManager, @NotNull @NotNull ImmutablePlanCacheService immutablePlanCacheService, @NotNull @NotNull Map<Long,List<EnrichedPlanDto>> jobsGroupedByStageId, @NotNull @NotNull Map<Long,EnrichedPlanDto> jobsGroupedById, boolean isLightWeight)
@NotNull public @NotNull String getName()
ImmutableChainStage
getName
in interface ImmutableChainStage
getName
in interface DescriptionProvider
getName
in interface NameProvider
public String getDescription()
ImmutableChainStage
getDescription
in interface ImmutableChainStage
getDescription
in interface DescriptionProvider
public boolean isManual()
isManual
in interface ImmutableChainStage
public boolean isFinal()
isFinal
in interface ImmutableChainStage
@NotNull public @NotNull ImmutableChain getChain()
ImmutableChainStage
Chain
that the stage belongs togetChain
in interface ImmutableChainStage
@NotNull public @NotNull Set<ImmutableJob> getJobs()
ImmutableChainStage
ImmutableJob
s associated with this Stage. Only deletion code will see
deleted jobs.getJobs
in interface ImmutableChainStage
public ImmutableChainStage getMaster()
getMaster
in interface ImmutableChainStage
public boolean hasMaster()
hasMaster
in interface ImmutableChainStage
public boolean isMarkedForDeletion()
isMarkedForDeletion
in interface ImmutableDeletable
public long getId()
ImmutableChainStage
ImmutableChainStage.getDatabaseId()
should be preferred.getId
in interface ImmutableChainStage
getId
in interface BambooIdProvider
@NotNull public @NotNull Optional<Long> getDatabaseId()
getDatabaseId
in interface ImmutableChainStage
public BambooEntityOid getOid()
ImmutableEntityWithOid
BambooEntityOid.getEntityType()
should be the same as this object's
ImmutableEntityWithOid.getEntityType()
.getOid
in interface ImmutableEntityWithOid
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.