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.
|
int |
getNextBuildNumber()
The next build number represents the number of the next build result that's to be executed
|
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() |
compareTo, equals, exceptionOnModification, getAverageBuildDuration, getBuildKey, getBuildLogger, getBuildName, getDescription, getEffectiveVariables, getFirstBuildNumber, getId, getKey, getLabellings, getLabelNames, getLastBuildNumber, getMasterId, getName, getPlanKey, getPlanType, getProject, getRelatedLabellings, getType, getVariables, hashCode, hasMaster, isMarkedForDeletion, isSuspendedFromBuilding
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAverageBuildDuration, getBuildLogger, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getProject, getType, getVariables, hasMaster, isMarkedForDeletion
getBuildKey, getBuildName, getId, getMasterId, getName, getPlanKey, getPlanType, isSuspendedFromBuilding
getDescription
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
@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 int getNextBuildNumber()
ImmutablePlan
getNextBuildNumber
in interface ImmutablePlan
getNextBuildNumber
in class AbstractImmutablePlan
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.