public class ImmutableJobImpl extends AbstractImmutablePlan implements ImmutableJob
averageBuildDuration, resultsSummaryManagerMAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESSgetPlanKeyFunction, NAME_DELIMITERgetPlanKey| 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
VariableDefinitions 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
VariableDefinitions bind to this Plan |
boolean |
isActive()
Is the plan queued or building?
|
boolean |
isBusy()
Is the
Plan "busy". |
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, isSuspendedFromBuildingclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetEntityTypegetAverageBuildDuration, getBuildLogger, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getProject, getType, hasMaster, isMarkedForDeletiongetBuildKey, getBuildName, getDatabaseId, getId, getMasterId, getMasterIdIfExists, getName, getPlanKey, getPlanType, isSuspendedFromBuildinggetDescriptiongetOidpublic 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()
ImmutableJobChainStage that this Job is a member ofgetStage in interface ImmutableJob@NotNull public RequirementSet getRequirementSet()
getRequirementSet in interface ImmutableBuildablegetRequirementSet in interface ImmutableJob@NotNull public RequirementSet getEffectiveRequirementSet()
ImmutableJobRequirementSet, that is value that is considered when checking which agents and
elastic images can build this Buildable.getEffectiveRequirementSet in interface ImmutableBuildablegetEffectiveRequirementSet in interface ImmutableJobImmutableJob.getRequirementSet() if ImmutablePlan.hasMaster() is false,
getMaster().getRequirementSet() otherwise.@NotNull public List<VariableDefinition> getVariables()
ImmutablePlanVariableDefinitions bind to this PlangetVariables in interface ImmutablePlangetVariables in class AbstractImmutablePlanVariableDefinition@NotNull public List<VariableDefinition> getEffectiveVariables()
ImmutablePlanVariableDefinitions 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 ImmutablePlangetEffectiveVariables in class AbstractImmutablePlanVariableDefinitionpublic ImmutableJob getMaster()
ImmutablePlangetMaster in interface ImmutableJobgetMaster in interface ImmutablePlanPlan if one exists.public boolean isBusy()
ImmutablePlanPlan "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 ImmutablePlanpublic boolean isActive()
ImmutablePlanisActive in interface ImmutablePlan@NotNull public String getCurrentStatus()
getCurrentStatus in interface ImmutablePlangetCurrentStatus in class AbstractImmutablePlanpublic boolean isExecuting()
ImmutablePlanisExecuting in interface ImmutablePlanpublic ResultsSummary getLatestResultsSummary()
ImmutablePlangetLatestResultsSummary in interface ImmutablePlanpublic 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()
ImmutablePlanBuildDefinition that backs this PlangetBuildDefinition in interface ImmutablePlangetBuildDefinition in class AbstractImmutablePlanBuildDefinition object.@NotNull public List<TaskDefinition> getTaskDefinitions()
getTaskDefinitions in interface TaskContainerCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.