public interface ImmutablePlan extends PlanIdentifier, 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 |
getPlanKeyFunction, NAME_DELIMITER
getPlanKey
Modifier and Type | Method and Description |
---|---|
long |
getAverageBuildDuration()
Returns an average duration of the recent builds
|
BuildDefinition |
getBuildDefinition()
Returns the
BuildDefinition that backs this Plan |
BuildLogger |
getBuildLogger()
Returns the helper object to deal with logging
|
String |
getCurrentStatus() |
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!
|
String |
getKey()
Obtain the plan's unique key (uppercase alphanumeric).
|
List<String> |
getLabelNames() |
int |
getLastBuildNumber()
What was the number of the latest build (may be being built)
|
ImmutableResultsSummary |
getLatestResultsSummary()
Get the latest finished result
|
ImmutablePlan |
getMaster()
Return the master plan if one exists.
|
Project |
getProject()
Returns the parent
Project |
String |
getType()
Deprecated.
Use
PlanIdentifier.getPlanType() instead. Since v4.0. |
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 String getType()
PlanIdentifier.getPlanType()
instead. Since v4.0.PlanType
and used in Freemarker.@NotNull String getKey()
PlanIdentifier.getPlanKey()
@NotNull String getCurrentStatus()
@Deprecated boolean isExecuting()
ChainExecutionAccessor.isExecuting(PlanKey)
@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()
@NotNull BuildDefinition getBuildDefinition()
BuildDefinition
that backs this Plan
BuildDefinition
object.@NotNull Project getProject()
Project
getProject
in interface PlanIdentifier
Project
. Never null@NotNull List<String> getLabelNames()
@Nullable ImmutableResultsSummary getLatestResultsSummary()
@NotNull List<VariableDefinition> getVariables()
VariableDefinition
s bind to this PlanVariableDefinition
@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 ImmutablePlan getMaster()
Plan
if one exists.boolean hasMaster()
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.