com.atlassian.bamboo.plan
Class ExecutionStatusProviderImpl

java.lang.Object
  extended by com.atlassian.bamboo.plan.ExecutionStatusProviderImpl
All Implemented Interfaces:
ExecutionStatusProvider

public class ExecutionStatusProviderImpl
extends java.lang.Object
implements ExecutionStatusProvider


Constructor Summary
ExecutionStatusProviderImpl(CurrentlyBuildingContainer currentlyBuildingContainer, ChainExecutionManager chainExecutionManager)
           
 
Method Summary
 java.util.Collection<? extends ExecutionStatus> getExecutionStatus(PlanKey planKey)
          Returns a collection of current ExecutionStatuss for PlanKey
 ExecutionStatus getExecutionStatus(PlanResultKey planResultKey)
          Returns a ExecutionStatus for the given PlanResultKey
 BuildExecution getJobExecution(PlanResultKey planResultKey)
          Get the state of a single Job being executed
 int numberOfExecutions(PlanKey planKey)
          Returns the number of current ExecutionStatuss available for PlanKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionStatusProviderImpl

public ExecutionStatusProviderImpl(CurrentlyBuildingContainer currentlyBuildingContainer,
                                   ChainExecutionManager chainExecutionManager)
Method Detail

numberOfExecutions

public int numberOfExecutions(@NotNull
                              PlanKey planKey)
Description copied from interface: ExecutionStatusProvider
Returns the number of current ExecutionStatuss available for PlanKey

Specified by:
numberOfExecutions in interface ExecutionStatusProvider
Returns:
noOfExecutions

getExecutionStatus

@NotNull
public java.util.Collection<? extends ExecutionStatus> getExecutionStatus(@NotNull
                                                                                  PlanKey planKey)
Description copied from interface: ExecutionStatusProvider
Returns a collection of current ExecutionStatuss for PlanKey

Specified by:
getExecutionStatus in interface ExecutionStatusProvider
Returns:
executionStatuses

getExecutionStatus

@Nullable
public ExecutionStatus getExecutionStatus(@NotNull
                                                   PlanResultKey planResultKey)
Description copied from interface: ExecutionStatusProvider
Returns a ExecutionStatus for the given PlanResultKey

Specified by:
getExecutionStatus in interface ExecutionStatusProvider
Returns:
executionStatus

getJobExecution

@Nullable
public BuildExecution getJobExecution(@NotNull
                                               PlanResultKey planResultKey)
Description copied from interface: ExecutionStatusProvider
Get the state of a single Job being executed

Specified by:
getJobExecution in interface ExecutionStatusProvider
Returns:


Copyright © 2012 Atlassian. All Rights Reserved.