com.atlassian.bamboo.build
Class DefaultJob

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.plan.AbstractPlan
              extended by com.atlassian.bamboo.build.AbstractBuildable
                  extended by com.atlassian.bamboo.build.DefaultJob
All Implemented Interfaces:
Buildable, Job, BambooObject, Deletable, Describable, Plan, DescriptionProvider, NameProvider, java.lang.Cloneable, java.lang.Comparable<Plan>

public class DefaultJob
extends AbstractBuildable
implements Job


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Fields inherited from interface com.atlassian.bamboo.plan.Plan
MAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESS
 
Constructor Summary
DefaultJob()
           
 
Method Summary
 java.lang.String getName()
          Returns the full name for the build in the form of "project name - build name" e.g.
 Chain getParent()
          The Chain that this Job is a member of
 ChainStage getStage()
          The ChainStage that this Job is a member of
 java.lang.String getType()
           
 boolean isActive()
          Checks if the plan has an active build(s).
 void setStage(ChainStage chainStage)
           
 
Methods inherited from class com.atlassian.bamboo.build.AbstractBuildable
addBuildResultSummary, getAverageBuildDuration, getBuildResultsSummaryManager, getBuildResultSummaries, getCurrentStatus, getFirstBuildSummary, getLatestBuildSummary, getLatestResultsSummary, getNextBuildResults, getNumberOfConcurrentlyRunningBuilds, getPreviousBuildResults, getRequirementSet, hasBuildResults, isExecuting, isInBuildQueue, removeBuildResultSummary, setBuildExecutionManager, setBuildResultsSummaryManager, setRequirementSet, validateBuild
 
Methods inherited from class com.atlassian.bamboo.plan.AbstractPlan
compareTo, equals, getBuildDefinition, getBuildDefinitionXml, getBuildKey, getBuildLogger, getBuildName, getDescription, getDiscriminator, getFirstBuildNumber, getKey, getLabellings, getLastBuildNumber, getLastVcsRevisionKey, getNextBuildNumber, getNotificationSet, getPlanKey, getProject, getRelatedLabellings, getSourceCodeDirectory, getTestClasses, hashCode, hasTests, isBusy, isMarkedForDeletion, isSuspendedFromBuilding, setBuildDefinitionManager, setBuildDefinitionXml, setBuildKey, setBuildLoggerManager, setBuildName, setDescription, setDiscriminator, setFirstBuildNumber, setKey, setLabellings, setLastBuildNumber, setLastVcsRevisionKey, setMarkedForDeletion, setName, setNextBuildNumber, setNotificationSet, setPlanExecutionManager, setProject, setSuspendedFromBuilding, setTestClasses
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
getId, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.build.Buildable
addBuildResultSummary, getBuildResultSummaries, getFirstBuildSummary, getLatestBuildSummary, getNextBuildResults, getNumberOfConcurrentlyRunningBuilds, getPreviousBuildResults, getRequirementSet, hasBuildResults, isInBuildQueue, removeBuildResultSummary, setRequirementSet
 
Methods inherited from interface com.atlassian.bamboo.plan.Plan
getAverageBuildDuration, getBuildDefinition, getBuildDefinitionXml, getBuildKey, getBuildLogger, getBuildName, getCurrentStatus, getFirstBuildNumber, getKey, getLabellings, getLastBuildNumber, getLastVcsRevisionKey, getLatestResultsSummary, getNextBuildNumber, getPlanKey, getProject, getRelatedLabellings, getSourceCodeDirectory, hasTests, isBusy, isExecuting, isSuspendedFromBuilding, setBuildDefinitionXml, setBuildKey, setBuildName, setFirstBuildNumber, setKey, setLabellings, setLastBuildNumber, setLastVcsRevisionKey, setNextBuildNumber, setProject, setSuspendedFromBuilding, validateBuild
 
Methods inherited from interface com.atlassian.bamboo.Describable
setDescription, setName
 
Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider
getDescription
 
Methods inherited from interface com.atlassian.bamboo.deletion.Deletable
isMarkedForDeletion, setMarkedForDeletion
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
getId, setId
 

Constructor Detail

DefaultJob

public DefaultJob()
Method Detail

getType

@NotNull
public java.lang.String getType()
Specified by:
getType in interface Plan
Returns:
a string representation of the implementation type. Used for freemarker.

getParent

@NotNull
public Chain getParent()
Description copied from interface: Job
The Chain that this Job is a member of

Specified by:
getParent in interface Job
Returns:
chain

getStage

@NotNull
public ChainStage getStage()
Description copied from interface: Job
The ChainStage that this Job is a member of

Specified by:
getStage in interface Job
Returns:
stage

setStage

public void setStage(@NotNull
                     ChainStage chainStage)
Specified by:
setStage in interface Job

getName

@NotNull
public java.lang.String getName()
Description copied from interface: Plan
Returns the full name for the build in the form of "project name - build name" e.g. "Confluence - HEAD"

Specified by:
getName in interface Plan
Specified by:
getName in interface DescriptionProvider
Specified by:
getName in interface NameProvider
Overrides:
getName in class AbstractPlan
Returns:
String

isActive

public boolean isActive()
Description copied from interface: Plan
Checks if the plan has an active build(s).

Specified by:
isActive in interface Plan
Overrides:
isActive in class AbstractBuildable
Returns:
true if at least one build request is currently in the queue or being processed


Copyright © 2011 Atlassian. All Rights Reserved.