public class ImmutableJobImpl extends AbstractImmutablePlan implements ImmutableJob
averageBuildDuration, resultsSummaryManager
MAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESS
getPlanKeyFunction, NAME_DELIMITER
getPlanKey
Constructor and Description |
---|
ImmutableJobImpl(ImmutableChain parent,
ImmutableChainStage stage,
Job job,
BuildLoggerManager buildLoggerManager,
LabelManager labelManager,
VariableDefinitionManager variableDefinitionManager,
TaskManager taskManager,
ResultsSummaryManager resultsSummaryManager,
BuildDefinition buildDefinition,
CachedPlanManager cachedPlanManager,
ImmutableArtifactManager immutableArtifactManager) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<ImmutableArtifactDefinition> |
getArtifactDefinitions() |
com.google.common.collect.ImmutableList<ImmutableArtifactSubscription> |
getArtifactSubscriptions() |
BuildDefinition |
getBuildDefinition()
Returns the
BuildDefinition that backs this Plan |
String |
getCurrentStatus() |
RequirementSet |
getEffectiveRequirementSet()
Return effective value of
RequirementSet , that is value that is considered when checking which agents and
elastic images can build this Buildable. |
List<VariableDefinition> |
getEffectiveVariables()
Return effective list of
VariableDefinition s bind to this Plan. |
ResultsSummary |
getLatestResultsSummary()
Get the latest finished result
|
ImmutableJob |
getMaster()
Return the master plan if one exists.
|
ImmutableChain |
getParent() |
RequirementSet |
getRequirementSet() |
ImmutableChainStage |
getStage()
The
ChainStage that this Job is a member of |
List<TaskDefinition> |
getTaskDefinitions() |
List<VariableDefinition> |
getVariables()
Return list of
VariableDefinition s bind to this Plan |
boolean |
isActive()
Is the plan queued or building?
|
boolean |
isBusy()
Is the
Plan "busy". |
boolean |
isDivergent()
Is part of divergent branch.
|
boolean |
isExecuting()
Is the build currently being executed?
|
void |
resetLatestResultsSummary(int latestKnownBuildNumber) |
compareTo, equals, exceptionOnModification, getAverageBuildDuration, getBuildKey, getBuildLogger, getBuildName, getDatabaseId, getDescription, getFirstBuildNumber, getId, getKey, getLabellings, getLabelNames, getLastBuildNumber, getMasterId, getMasterIdIfExists, getName, getOid, getPlanKey, getPlanType, getProject, getRelatedLabellings, getType, hashCode, hasMaster, isMarkedForDeletion, isSuspendedFromBuilding
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getEntityType
getAverageBuildDuration, getBuildLogger, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getProject, getType, hasMaster, isMarkedForDeletion
getBuildKey, getBuildName, getDatabaseId, getId, getMasterId, getMasterIdIfExists, getName, getPlanKey, getPlanType, isSuspendedFromBuilding
getDescription
getOid
public ImmutableJobImpl(ImmutableChain parent, ImmutableChainStage stage, Job job, BuildLoggerManager buildLoggerManager, LabelManager labelManager, VariableDefinitionManager variableDefinitionManager, TaskManager taskManager, ResultsSummaryManager resultsSummaryManager, BuildDefinition buildDefinition, CachedPlanManager cachedPlanManager, ImmutableArtifactManager immutableArtifactManager)
@NotNull public ImmutableChain getParent()
getParent
in interface ImmutableJob
@NotNull public ImmutableChainStage getStage()
ImmutableJob
ChainStage
that this Job
is a member ofgetStage
in interface ImmutableJob
@NotNull public RequirementSet getRequirementSet()
getRequirementSet
in interface ImmutableBuildable
getRequirementSet
in interface ImmutableJob
@NotNull public RequirementSet getEffectiveRequirementSet()
ImmutableJob
RequirementSet
, that is value that is considered when checking which agents and
elastic images can build this Buildable.getEffectiveRequirementSet
in interface ImmutableBuildable
getEffectiveRequirementSet
in interface ImmutableJob
ImmutableJob.getRequirementSet()
if ImmutablePlan.hasMaster()
is false,
getMaster().getRequirementSet() otherwise.@NotNull public List<VariableDefinition> getVariables()
ImmutablePlan
VariableDefinition
s bind to this PlangetVariables
in interface ImmutablePlan
getVariables
in class AbstractImmutablePlan
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
getEffectiveVariables
in class AbstractImmutablePlan
VariableDefinition
public ImmutableJob getMaster()
ImmutablePlan
getMaster
in interface ImmutableJob
getMaster
in interface ImmutablePlan
Plan
if one exists.public boolean isBusy()
ImmutablePlan
Plan
"busy". Busy is defined by the plan having a lock held on it. This is done during change
detection, dependency listner and the likeisBusy
in interface ImmutablePlan
public boolean isActive()
ImmutablePlan
isActive
in interface ImmutablePlan
@NotNull public String getCurrentStatus()
getCurrentStatus
in interface ImmutablePlan
getCurrentStatus
in class AbstractImmutablePlan
public boolean isExecuting()
ImmutablePlan
isExecuting
in interface ImmutablePlan
public ResultsSummary getLatestResultsSummary()
ImmutablePlan
getLatestResultsSummary
in interface ImmutablePlan
public void resetLatestResultsSummary(int latestKnownBuildNumber)
resetLatestResultsSummary
in class AbstractImmutablePlan
@NotNull public com.google.common.collect.ImmutableList<ImmutableArtifactDefinition> getArtifactDefinitions()
getArtifactDefinitions
in interface ImmutableJob
@NotNull public com.google.common.collect.ImmutableList<ImmutableArtifactSubscription> getArtifactSubscriptions()
getArtifactSubscriptions
in interface ImmutableJob
@NotNull public BuildDefinition getBuildDefinition()
ImmutablePlan
BuildDefinition
that backs this Plan
getBuildDefinition
in interface ImmutablePlan
getBuildDefinition
in class AbstractImmutablePlan
BuildDefinition
object.@NotNull public List<TaskDefinition> getTaskDefinitions()
getTaskDefinitions
in interface TaskContainer
public boolean isDivergent()
ImmutableJob
isDivergent
in interface ImmutableJob
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.