Package com.atlassian.bamboo.plan
Class ExecutionStatusProviderImpl
- java.lang.Object
-
- com.atlassian.bamboo.plan.ExecutionStatusProviderImpl
-
- All Implemented Interfaces:
ExecutionStatusProvider
public class ExecutionStatusProviderImpl extends Object implements ExecutionStatusProvider
-
-
Constructor Summary
Constructors Constructor Description ExecutionStatusProviderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Collection<? extends ExecutionStatus>
getExecutionStatus(@NotNull PlanKey planKey)
Returns a collection of currentExecutionStatus
s forPlanKey
@Nullable ExecutionStatus
getExecutionStatus(@NotNull PlanResultKey planResultKey)
Returns aExecutionStatus
for the givenPlanResultKey
@Nullable BuildExecution
getJobExecution(@NotNull PlanResultKey planResultKey)
Get the state of a single Job being executedint
numberOfExecutions(@NotNull PlanKey planKey)
Returns the number of currentExecutionStatus
s available forPlanKey
-
-
-
Method Detail
-
numberOfExecutions
public int numberOfExecutions(@NotNull @NotNull PlanKey planKey)
Description copied from interface:ExecutionStatusProvider
Returns the number of currentExecutionStatus
s available forPlanKey
- Specified by:
numberOfExecutions
in interfaceExecutionStatusProvider
- Returns:
- noOfExecutions
-
getExecutionStatus
@NotNull public @NotNull Collection<? extends ExecutionStatus> getExecutionStatus(@NotNull @NotNull PlanKey planKey)
Description copied from interface:ExecutionStatusProvider
Returns a collection of currentExecutionStatus
s forPlanKey
- Specified by:
getExecutionStatus
in interfaceExecutionStatusProvider
- Returns:
- executionStatuses
-
getExecutionStatus
@Nullable public @Nullable ExecutionStatus getExecutionStatus(@NotNull @NotNull PlanResultKey planResultKey)
Description copied from interface:ExecutionStatusProvider
Returns aExecutionStatus
for the givenPlanResultKey
- Specified by:
getExecutionStatus
in interfaceExecutionStatusProvider
- Returns:
- executionStatus
-
getJobExecution
@Nullable public @Nullable BuildExecution getJobExecution(@NotNull @NotNull PlanResultKey planResultKey)
Description copied from interface:ExecutionStatusProvider
Get the state of a single Job being executed- Specified by:
getJobExecution
in interfaceExecutionStatusProvider
- Returns:
-
-