|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.plan.cache.AbstractImmutablePlan
com.atlassian.bamboo.plan.cache.AbstractImmutableChain
public class AbstractImmutableChain
| 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 |
| Constructor Summary | |
|---|---|
AbstractImmutableChain(Chain chain,
BuildLoggerManager buildLoggerManager,
ImmutablePlanCacheService immutablePlanCacheService,
ImmutablePlanManager immutablePlanManager,
LabelManager labelManager,
ResultsSummaryManager resultsSummaryManager,
RepositoryDefinitionManager repositoryDefinitionManager,
VariableDefinitionManager variableDefinitionManager,
BuildDefinitionManager buildDefinitionManager)
|
|
| Method Summary | |
|---|---|
boolean |
containsStage(java.lang.String stageName)
Checks whether or not a stage exists in this chain by stage name. |
com.google.common.collect.ImmutableList<ImmutableJob> |
getAllJobs()
Note: Does not include Jobs that are marked for deletion. |
com.google.common.collect.ImmutableList<ImmutableChainStage> |
getAllStages()
Get Stages of the Chain Note that this includes ChainStages that have been marked for deletion |
com.google.common.collect.ImmutableList<RepositoryDefinition> |
getEffectiveRepositoryDefinitions()
Return list of repositories available to the chain. |
int |
getJobCount()
Note: Does not include Jobs that are marked for deletion. |
PlanResultKey |
getLastResultKey()
Get the latest result key including active (not finished) results |
ImmutableResultsSummary |
getLatestResultsSummary()
Get the latest finished result |
ImmutableChain |
getMaster()
Return the master plan if one exists. |
NotificationSet |
getNotificationSet()
Get notifications defined for this plan. |
com.google.common.collect.ImmutableList<ImmutableChainStage> |
getStages()
Get Stages of the chain. |
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, getBuildDefinition, getBuildDefinitionXml, getBuildKey, getBuildLogger, getBuildName, getCurrentStatus, 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, getBuildDefinition, getBuildDefinitionXml, getBuildLogger, getCurrentStatus, 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 AbstractImmutableChain(@NotNull
Chain chain,
BuildLoggerManager buildLoggerManager,
ImmutablePlanCacheService immutablePlanCacheService,
ImmutablePlanManager immutablePlanManager,
LabelManager labelManager,
ResultsSummaryManager resultsSummaryManager,
RepositoryDefinitionManager repositoryDefinitionManager,
VariableDefinitionManager variableDefinitionManager,
BuildDefinitionManager buildDefinitionManager)
| Method Detail |
|---|
public boolean isActive()
ImmutablePlan
isActive in interface ImmutablePlanpublic boolean isExecuting()
ImmutablePlan
isExecuting in interface ImmutablePlanpublic PlanResultKey getLastResultKey()
ImmutableChain
getLastResultKey in interface ImmutableChainpublic ImmutableResultsSummary getLatestResultsSummary()
ImmutablePlan
getLatestResultsSummary in interface ImmutablePlanpublic 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 like
isBusy in interface ImmutablePlan@NotNull public com.google.common.collect.ImmutableList<ImmutableChainStage> getStages()
ImmutableChainChainStages that have been marked for deletion
getStages in interface ImmutableChain@NotNull public com.google.common.collect.ImmutableList<ImmutableChainStage> getAllStages()
ImmutableChainChainStages that have been marked for deletion
getAllStages in interface ImmutableChainpublic int getJobCount()
ImmutableChain
getJobCount in interface ImmutableChain@NotNull public com.google.common.collect.ImmutableList<ImmutableJob> getAllJobs()
ImmutableChain
getAllJobs in interface ImmutableChain
public boolean containsStage(@Nullable
java.lang.String stageName)
ImmutableChain
containsStage in interface ImmutableChainstageName - to check for
@NotNull public com.google.common.collect.ImmutableList<RepositoryDefinition> getEffectiveRepositoryDefinitions()
ImmutableChain
getEffectiveRepositoryDefinitions in interface ImmutableChainList of repositories available to this planpublic NotificationSet getNotificationSet()
ImmutableChain
getNotificationSet in interface ImmutableChainNotificationSet containing notifications for this plan.public ImmutableChain getMaster()
ImmutablePlan
getMaster in interface ImmutableChaingetMaster in interface ImmutablePlanPlan if one exists.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||