|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.plan.cache.AbstractImmutablePlan
public abstract class AbstractImmutablePlan
Field Summary | |
---|---|
protected com.atlassian.util.concurrent.LazyReference<Long> |
averageBuildDuration
|
protected ResultsSummaryManager |
resultsSummaryManager
|
Fields inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan |
---|
MAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESS |
Fields inherited from interface com.atlassian.bamboo.plan.PlanIdentifier |
---|
getPlanKeyFunction |
Fields inherited from interface com.atlassian.bamboo.plan.PlanKeyProvider |
---|
getPlanKey |
Constructor Summary | |
---|---|
AbstractImmutablePlan(ImmutablePlan plan,
BuildLoggerManager buildLoggerManager,
LabelManager labelManager,
VariableDefinitionManager variableDefinitionManager,
BuildDefinition buildDefinition,
ResultsSummaryManager resultsSummaryManager)
|
Method Summary | |
---|---|
int |
compareTo(ImmutablePlan plan)
|
boolean |
equals(Object o)
|
protected void |
exceptionOnModification()
|
long |
getAverageBuildDuration()
Returns an average duration of the recent builds |
BuildDefinition |
getBuildDefinition()
Returns the BuildDefinition that backs this Plan |
String |
getBuildKey()
This objects specific portion of the key. |
BuildLogger |
getBuildLogger()
Returns the helper object to deal with logging |
String |
getBuildName()
|
String |
getCurrentStatus()
Retuns a string key as to what the status is. |
String |
getDescription()
|
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! |
long |
getId()
|
String |
getKey()
Obtain the plan's unique key (uppercase alphanumeric). |
List<Labelling> |
getLabellings()
|
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) |
long |
getMasterId()
Database id of master of this ChainBranch |
String |
getName()
Returns the full name for the build in the form of "project name - build name" e.g. |
int |
getNextBuildNumber()
The next build number represents the number of the next build result that's to be executed |
PlanKey |
getPlanKey()
Get the PlanKey identifier for this Plan |
PlanType |
getPlanType()
|
Project |
getProject()
Returns the parent Project |
List<Labelling> |
getRelatedLabellings()
|
String |
getType()
Returns the string representation of the type. |
List<VariableDefinition> |
getVariables()
Return list of VariableDefinition s bind to this Plan |
int |
hashCode()
|
boolean |
hasMaster()
|
boolean |
isMarkedForDeletion()
Is the plan set to be deleted in the future |
boolean |
isSuspendedFromBuilding()
Checks if the build has been enabled / disabled. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan |
---|
getLatestResultsSummary, getMaster, isActive, isBusy, isExecuting |
Field Detail |
---|
protected final ResultsSummaryManager resultsSummaryManager
protected com.atlassian.util.concurrent.LazyReference<Long> averageBuildDuration
Constructor Detail |
---|
public AbstractImmutablePlan(@NotNull ImmutablePlan plan, BuildLoggerManager buildLoggerManager, @NotNull LabelManager labelManager, VariableDefinitionManager variableDefinitionManager, @NotNull BuildDefinition buildDefinition, ResultsSummaryManager resultsSummaryManager)
Method Detail |
---|
public long getId()
getId
in interface BambooIdProvider
getId
in interface PlanIdentifier
public String getDescription()
getDescription
in interface DescriptionProvider
@NotNull public PlanKey getPlanKey()
PlanIdentifier
PlanKey
identifier for this Plan
getPlanKey
in interface PlanIdentifier
getPlanKey
in interface PlanKeyProvider
@NotNull public String getKey()
ImmutablePlan
PlanIdentifier.getPlanKey()
getKey
in interface ImmutablePlan
@NotNull public String getBuildKey()
PlanIdentifier
PlanIdentifier.getPlanKey()
.
getBuildKey
in interface PlanIdentifier
@NotNull public String getName()
PlanIdentifier
getName
in interface PlanIdentifier
getName
in interface DescriptionProvider
getName
in interface NameProvider
@NotNull public String getBuildName()
getBuildName
in interface PlanIdentifier
PlanIdentifier.getName()
@NotNull public PlanType getPlanType()
getPlanType
in interface PlanIdentifier
@NotNull public String getType()
ImmutablePlan
PlanType
and used in Freemarker.
getType
in interface ImmutablePlan
public boolean isMarkedForDeletion()
ImmutablePlan
isMarkedForDeletion
in interface ImmutablePlan
public boolean hasMaster()
hasMaster
in interface ImmutablePlan
@NotNull public List<VariableDefinition> getVariables()
ImmutablePlan
VariableDefinition
s bind to this Plan
getVariables
in interface ImmutablePlan
VariableDefinition
@NotNull public List<VariableDefinition> getEffectiveVariables()
ImmutablePlan
VariableDefinition
s bind to this Plan.
For master Plans this will return the same result as ImmutablePlan.getVariables()
.
Non-master plans will produce the sum of:
- all master's variables which keys do not appear in result of ImmutablePlan.getVariables()
- result of ImmutablePlan.getVariables()
getEffectiveVariables
in interface ImmutablePlan
VariableDefinition
public boolean isSuspendedFromBuilding()
PlanIdentifier
isSuspendedFromBuilding
in interface PlanIdentifier
public int getFirstBuildNumber()
ImmutablePlan
getFirstBuildNumber
in interface ImmutablePlan
public int getLastBuildNumber()
ImmutablePlan
getLastBuildNumber
in interface ImmutablePlan
public int getNextBuildNumber()
ImmutablePlan
getNextBuildNumber
in interface ImmutablePlan
@NotNull public BuildDefinition getBuildDefinition()
ImmutablePlan
BuildDefinition
that backs this Plan
getBuildDefinition
in interface ImmutablePlan
BuildDefinition
object.@NotNull public Project getProject()
ImmutablePlan
Project
getProject
in interface ImmutablePlan
getProject
in interface PlanIdentifier
Project
. Never nullpublic long getAverageBuildDuration()
ImmutablePlan
getAverageBuildDuration
in interface ImmutablePlan
public long getMasterId()
PlanIdentifier
getMasterId
in interface PlanIdentifier
@NotNull public List<Labelling> getLabellings()
@NotNull public List<Labelling> getRelatedLabellings()
@NotNull public List<String> getLabelNames()
ImmutablePlan
getLabelNames
in interface ImmutablePlan
@NotNull public String getCurrentStatus()
ImmutablePlan
getCurrentStatus
in interface ImmutablePlan
protected void exceptionOnModification()
@NotNull public BuildLogger getBuildLogger()
ImmutablePlan
getBuildLogger
in interface ImmutablePlan
BuildLogger
. @NotNullpublic int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public int compareTo(ImmutablePlan plan)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |