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
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()
Retuns a string key as to what the status is.
|
RequirementSet |
getEffectiveRequirementSet()
Return effective value of
RequirementSet , that is value that is considered when checking which agents and
elastic images can build this Buildable. |
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() |
boolean |
isActive()
Is the plan queued or building?
|
boolean |
isBusy()
Is the
Plan "busy". |
boolean |
isExecuting()
Is the build currently being executed?
|
void |
resetLatestResultsSummary() |
void |
resetLatestResultsSummary(int latestKnownBuildNumber) |
compareTo, equals, exceptionOnModification, getAverageBuildDuration, getBuildKey, getBuildLogger, getBuildName, getDescription, getEffectiveVariables, getFirstBuildNumber, getId, getKey, getLabellings, getLabelNames, getLastBuildNumber, getMasterId, getName, getOid, getPlanKey, getPlanType, getProject, getRelatedLabellings, getType, getVariables, hashCode, hasMaster, isMarkedForDeletion, isSuspendedFromBuilding
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getEntityType
getAverageBuildDuration, getBuildLogger, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getProject, getType, getVariables, hasMaster, isMarkedForDeletion
getBuildKey, getBuildName, getId, getMasterId, 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.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()
ImmutablePlan
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()
resetLatestResultsSummary
in class AbstractImmutablePlan
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
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.