|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ImmutablePlan
Represents a Plan
that is immutable. Since 3.4, all new uses of Chains should prefer this interface
to improve cacheability.
Field Summary | |
---|---|
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
|
Fields inherited from interface com.atlassian.bamboo.plan.PlanIdentifier |
---|
getPlanKeyFunction |
Fields inherited from interface com.atlassian.bamboo.plan.PlanKeyProvider |
---|
getPlanKey |
Method Summary | |
---|---|
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()
Retuns a string key as to what the status is. |
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()
Returns all the names of related labels with a namesapce of :label |
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. |
int |
getNextBuildNumber()
The next build number represents the number of the next build result that's to be executed |
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 ChainExecutionManager.isActive(PlanKey) |
boolean |
isBusy()
Deprecated. since 4.0 use PlanExecutionManager.isBusy(PlanKey) |
boolean |
isExecuting()
Is the build currently being executed? |
boolean |
isMarkedForDeletion()
Is the plan set to be deleted in the future |
Methods inherited from interface com.atlassian.bamboo.plan.PlanIdentifier |
---|
getBuildKey, getBuildName, getId, getMasterId, getName, getPlanKey, getPlanType, isSuspendedFromBuilding |
Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider |
---|
getDescription |
Field Detail |
---|
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
Method Detail |
---|
@NotNull @Deprecated String getType()
PlanIdentifier.getPlanType()
instead. Since v4.0.
PlanType
and used in Freemarker.
@NotNull String getKey()
PlanIdentifier.getPlanKey()
@NotNull String getCurrentStatus()
boolean isExecuting()
@NotNull BuildLogger getBuildLogger()
BuildLogger
. @NotNull@Deprecated boolean isActive()
ChainExecutionManager.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 like
int getFirstBuildNumber()
int getLastBuildNumber()
int getNextBuildNumber()
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 Plan
VariableDefinition
@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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |