Package com.atlassian.bamboo.chains
Interface ChainExecutionAccessor
- All Known Subinterfaces:
ChainExecutionManager
- All Known Implementing Classes:
ChainExecutionManagerImpl
public interface ChainExecutionAccessor
Provides read only access to ChainExecution
- Since:
- 5.14
-
Method Summary
Modifier and TypeMethodDescription@Nullable ChainExecution
getChainExecution
(@NotNull PlanResultKey planResultKey) Get the state of the single ChainExecution@NotNull List<ChainExecution>
getExecutingChains
(@NotNull PlanKey planKey) Get the Collection of the state of the ChainExecution or empty collection when no chain is executing@NotNull List<ChainExecution>
getFlatExecutingChains
(@NotNull PlanKey planKey) Get the Collection of the state of the ChainExecution or empty collection when no chain is executing.@Nullable BuildExecution
getJobExecution
(@NotNull PlanResultKey planResultKey) Get the state of a single Job being executedboolean
Checks if theChain
is "active" ie being queued, or buildingboolean
isExecuting
(@NotNull PlanKey planKey) Checks if the Chain is buildingboolean
isExecuting
(@NotNull PlanResultKey planResultKey) Checks ofBuildResultsSummary
represented byPlanResultKey
is currently building (ie started on an agent_void
Log activeChainExecution
sint
int
numberOfChainsExecuting
(@NotNull PlanKey planKey) Determines the number ofChainExecution
s are active for the givenPlanKey
-
Method Details
-
isActive
Checks if theChain
is "active" ie being queued, or building- Parameters:
planKey
-- Returns:
- active
-
isExecuting
Checks if the Chain is building- Parameters:
planKey
-- Returns:
- running
-
isExecuting
Checks ofBuildResultsSummary
represented byPlanResultKey
is currently building (ie started on an agent_- Parameters:
planResultKey
-- Returns:
- executing
-
getExecutingChains
Get the Collection of the state of the ChainExecution or empty collection when no chain is executing- Parameters:
planKey
-- Returns:
- list of chain executions
-
getFlatExecutingChains
Get the Collection of the state of the ChainExecution or empty collection when no chain is executing. Flat means no stages or jobs data is included.- Parameters:
planKey
- plan key- Returns:
- list of flat chain executions
- Since:
- 10.0
-
getChainExecution
Get the state of the single ChainExecution- Parameters:
planResultKey
-- Returns:
-
getJobExecution
Get the state of a single Job being executed- Parameters:
planResultKey
-- Returns:
-
numberOfChainsExecuting
Determines the number ofChainExecution
s are active for the givenPlanKey
- Parameters:
planKey
-- Returns:
-
numberOfChainsExecuting
int numberOfChainsExecuting()- Returns:
- total number of active
ChainExecution
s
-
logChainExecutionState
void logChainExecutionState()Log activeChainExecution
s
-