|
||||||||||
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 com.atlassian.bamboo.plan.cache.ImmutableJobImpl
public class ImmutableJobImpl
Field Summary |
---|
Fields inherited from class com.atlassian.bamboo.plan.cache.AbstractImmutablePlan |
---|
averageBuildDuration, 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 | |
---|---|
ImmutableJobImpl(ImmutableChain parent,
ImmutableChainStage stage,
Job job,
BuildLoggerManager buildLoggerManager,
LabelManager labelManager,
VariableDefinitionManager variableDefinitionManager,
TaskManager taskManager,
ResultsSummaryManager resultsSummaryManager,
BuildDefinition buildDefinition,
CachedPlanManager cachedPlanManager,
ImmutableArtifactManager immutableArtifactManager)
|
Method Summary | |
---|---|
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 |
boolean |
isActive()
Is the plan queued or building? |
boolean |
isBusy()
Is the Plan "busy". |
boolean |
isExecuting()
Is the build currently being executed? |
Methods inherited from class com.atlassian.bamboo.plan.cache.AbstractImmutablePlan |
---|
compareTo, equals, exceptionOnModification, getAverageBuildDuration, getBuildKey, getBuildLogger, getBuildName, getDescription, getEffectiveVariables, getFirstBuildNumber, getId, getKey, getLabellings, getLabelNames, getLastBuildNumber, getMasterId, getName, getNextBuildNumber, getPlanKey, getPlanType, getProject, getRelatedLabellings, getType, getVariables, hashCode, hasMaster, isMarkedForDeletion, isSuspendedFromBuilding |
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 |
---|
getAverageBuildDuration, getBuildLogger, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getNextBuildNumber, getProject, getType, getVariables, hasMaster, isMarkedForDeletion |
Methods inherited from interface com.atlassian.bamboo.plan.PlanIdentifier |
---|
getBuildKey, getBuildName, getId, getMasterId, getName, getPlanKey, getPlanType, isSuspendedFromBuilding |
Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider |
---|
getDescription |
Constructor Detail |
---|
public ImmutableJobImpl(ImmutableChain parent, ImmutableChainStage stage, Job job, BuildLoggerManager buildLoggerManager, LabelManager labelManager, VariableDefinitionManager variableDefinitionManager, TaskManager taskManager, ResultsSummaryManager resultsSummaryManager, BuildDefinition buildDefinition, CachedPlanManager cachedPlanManager, ImmutableArtifactManager immutableArtifactManager)
Method Detail |
---|
@NotNull public ImmutableChain getParent()
getParent
in interface ImmutableJob
@NotNull public ImmutableChainStage getStage()
ImmutableJob
ChainStage
that this Job
is a member of
getStage
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 like
isBusy
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
@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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |