Interface ChainExecutionAccessor

All Known Subinterfaces:
ChainExecutionManager
All Known Implementing Classes:
ChainExecutionManagerImpl

public interface ChainExecutionAccessor
Provides read only access to ChainExecution
Since:
5.14
  • Method Details

    • isActive

      boolean isActive(@NotNull @NotNull PlanKey planKey)
      Checks if the Chain is "active" ie being queued, or building
      Parameters:
      planKey -
      Returns:
      active
    • isExecuting

      boolean isExecuting(@NotNull @NotNull PlanKey planKey)
      Checks if the Chain is building
      Parameters:
      planKey -
      Returns:
      running
    • isExecuting

      boolean isExecuting(@NotNull @NotNull PlanResultKey planResultKey)
      Checks of BuildResultsSummary represented by PlanResultKey is currently building (ie started on an agent_
      Parameters:
      planResultKey -
      Returns:
      executing
    • getExecutingChains

      @NotNull @NotNull List<ChainExecution> getExecutingChains(@NotNull @NotNull PlanKey planKey)
      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

      @NotNull @NotNull List<ChainExecution> getFlatExecutingChains(@NotNull @NotNull PlanKey planKey)
      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

      @Nullable @Nullable ChainExecution getChainExecution(@NotNull @NotNull PlanResultKey planResultKey)
      Get the state of the single ChainExecution
      Parameters:
      planResultKey -
      Returns:
    • getJobExecution

      @Nullable @Nullable BuildExecution getJobExecution(@NotNull @NotNull PlanResultKey planResultKey)
      Get the state of a single Job being executed
      Parameters:
      planResultKey -
      Returns:
    • numberOfChainsExecuting

      int numberOfChainsExecuting(@NotNull @NotNull PlanKey planKey)
      Determines the number of ChainExecutions are active for the given PlanKey
      Parameters:
      planKey -
      Returns:
    • numberOfChainsExecuting

      int numberOfChainsExecuting()
      Returns:
      total number of active ChainExecutions
    • logChainExecutionState

      void logChainExecutionState()
      Log active ChainExecutions