public interface ImmutablePlan extends PlanIdentifier, ImmutableDeletable, ImmutableEntityWithOid
Plan
that is immutable. Since 3.4, all new uses of Chains should prefer this interface
to improve cacheability.Modifier and Type | Field and Description |
---|---|
static int |
MAX_NUMBER_LOG_ENTRIES |
static int |
MAX_PREVIOUS_BUILD_FOR_AVE |
static String |
STATUS_CURRENTLY_BUILDING |
static String |
STATUS_FAIL |
static String |
STATUS_NO_BUILDS |
static String |
STATUS_NOT_RUN |
static String |
STATUS_SUCCESS |
NAME_DELIMITER
getPlanKey
Modifier and Type | Method and Description |
---|---|
long |
getAverageBuildDuration()
Returns an average duration of the recent builds
|
@NotNull BuildDefinition |
getBuildDefinition()
Returns the
BuildDefinition that backs this Plan |
@NotNull BuildLogger |
getBuildLogger()
Returns the helper object to deal with logging
|
@NotNull String |
getCurrentStatus() |
@NotNull List<VariableDefinition> |
getEffectiveVariables()
Return effective list of
VariableDefinition s bind to this Plan. |
int |
getFirstBuildNumber()
What the number of the first build we have? It may not be 1 as some may have been removed!
|
@NotNull String |
getKey()
Obtain the plan's unique key (uppercase alphanumeric).
|
@NotNull List<String> |
getLabelNames() |
int |
getLastBuildNumber()
What was the number of the latest build (may be being built)
|
@Nullable ImmutableResultsSummary |
getLatestResultsSummary()
Get the latest finished result
|
@Nullable ImmutablePlan |
getMaster()
Return the master plan if one exists.
|
@NotNull Project |
getProject()
Returns the parent
Project |
@NotNull String |
getType()
Deprecated.
Use
PlanIdentifier.getPlanType() instead. Since v4.0. |
@NotNull List<VariableDefinition> |
getVariables()
Return list of
VariableDefinition s bind to this Plan |
boolean |
hasMaster() |
boolean |
isActive()
Deprecated.
since 4.0 use
ChainExecutionAccessor.isActive(PlanKey) |
boolean |
isBusy()
Deprecated.
since 4.0 use
PlanExecutionManager.isBusy(PlanKey) |
boolean |
isExecuting()
Deprecated.
since 6.10 use
ChainExecutionAccessor.isExecuting(PlanKey) |
boolean |
isMarkedForDeletion()
Is the plan set to be deleted in the future
|
getBuildKey, getBuildName, getDatabaseId, getId, getMasterId, getMasterIdIfExists, getName, getPlanKey, getPlanType, isSuspendedFromBuilding
getDescription
getEntityType, getOid
static final int MAX_NUMBER_LOG_ENTRIES
static final int MAX_PREVIOUS_BUILD_FOR_AVE
static final String STATUS_FAIL
static final String STATUS_SUCCESS
static final String STATUS_CURRENTLY_BUILDING
static final String STATUS_NO_BUILDS
static final String STATUS_NOT_RUN
@NotNull @Deprecated @NotNull String getType()
PlanIdentifier.getPlanType()
instead. Since v4.0.PlanType
and used in Freemarker.@NotNull @NotNull String getKey()
PlanIdentifier.getPlanKey()
@NotNull @NotNull String getCurrentStatus()
@Deprecated boolean isExecuting()
ChainExecutionAccessor.isExecuting(PlanKey)
@NotNull @NotNull BuildLogger getBuildLogger()
BuildLogger
.@Deprecated boolean isActive()
ChainExecutionAccessor.isActive(PlanKey)
@Deprecated boolean isBusy()
PlanExecutionManager.isBusy(PlanKey)
Plan
"busy". Busy is defined by the plan having a lock held on it. This is done during change
detection, dependency listner and the likeint getFirstBuildNumber()
int getLastBuildNumber()
long getAverageBuildDuration()
boolean isMarkedForDeletion()
isMarkedForDeletion
in interface ImmutableDeletable
@NotNull @NotNull BuildDefinition getBuildDefinition()
BuildDefinition
that backs this Plan
BuildDefinition
object.@NotNull @NotNull Project getProject()
Project
getProject
in interface PlanIdentifier
Project
. Never null@NotNull @NotNull List<String> getLabelNames()
@Nullable @Nullable ImmutableResultsSummary getLatestResultsSummary()
@NotNull @NotNull List<VariableDefinition> getVariables()
VariableDefinition
s bind to this PlanVariableDefinition
@NotNull @NotNull List<VariableDefinition> getEffectiveVariables()
VariableDefinition
s bind to this Plan.
For master Plans this will return the same result as getVariables()
.
Non-master plans will produce the sum of:
- all master's variables which keys do not appear in result of getVariables()
- result of getVariables()
VariableDefinition
@Nullable @Nullable ImmutablePlan getMaster()
Plan
if one exists.boolean hasMaster()
Copyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.